Skip to content

The default project directory seems to be not working correctly #1123

@webarchymeta

Description

@webarchymeta
  • code-server 2.1655-vsc1.39.2
  • OS Version: ubuntu 18.0.4 server

Description

We run multiple code server instances each of which has a default project directory specified using the path command line argument, e.g. run

[path to]/code-server --host x.x.x.x --port 8447 --auth none .

in the corresponding directory. It was ok in 2.1523-vsc1.38.1. But now default project directories seem always be set by the first opened instance

Steps to Reproduce

(in separate systemd services)

cd dir1
[path to]/code-server --host x.x.x.x --port 8443 --auth none .
cd dir2
[path to]/code-server --host x.x.x.x --port 8444 --auth none .
cd dir3
[path to]/code-server --host x.x.x.x --port 8445 --auth none .

then

  1. open http://x.x.x.x:8443, which opens directory dir1
  2. open http://x.x.x.x:8444. It opens dir1 directory again, instead of dir2

the same happens to opening http://x.x.x.x:8445

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions