code-server/src/node
Asher 9e583fa562
Add separate function for VS Code arguments (#4599)
The problem before was that the pop() caused the open in existing
instance functionality to break because the arguments no longer
contained the file.

We could simply remove the pop() but since `workspace` and `folder` are
not CLI arguments I think it makes sense to handle them in a separate
function which can be called at the point where they are needed.  This
also lets us de-duplicate some logic since we create these arguments in
two spots and lets us skip this logic when we do not need it.

The pop() is still avoided because manipulating a passed-in object
in-place seems like a risky move.  If we really need to do this we
should copy the positional argument array instead.
2021-12-10 12:01:35 -06:00
..
routes Add separate function for VS Code arguments (#4599) 2021-12-10 12:01:35 -06:00
app.ts fix(testing): revert change & fix playwright tests (#4310) 2021-10-28 15:27:17 -05:00
cli.ts Add separate function for VS Code arguments (#4599) 2021-12-10 12:01:35 -06:00
coder_cloud.ts fix(testing): revert change & fix playwright tests (#4310) 2021-10-28 15:27:17 -05:00
constants.ts Use upstream server (#4414) 2021-11-09 23:28:31 -06:00
entry.ts Fix spawning code-server within code-server (#4590) 2021-12-07 18:20:57 -06:00
heart.ts heart.ts: Fix leak when server closes 2021-01-20 02:06:44 -05:00
http.ts Fix relative paths (#4594) 2021-12-08 15:52:15 -06:00
main.ts Add separate function for VS Code arguments (#4599) 2021-12-10 12:01:35 -06:00
plugin.ts Refactor vscode endpoints to use fork directly. 2021-09-30 19:14:17 -04:00
proxy.ts Update proxy path passthrough documentation 2021-02-05 11:44:38 -05:00
proxy_agent.ts Refactor vscode endpoints to use fork directly. 2021-09-30 19:14:17 -04:00
settings.ts Refactor vscode endpoints to use fork directly. 2021-09-30 19:14:17 -04:00
socket.ts chore: update CHANGELOG 2021-05-13 12:10:22 -07:00
update.ts Refactor vscode endpoints to use fork directly. 2021-09-30 19:14:17 -04:00
util.ts Fix relative paths (#4594) 2021-12-08 15:52:15 -06:00
wrapper.ts Fix: use pipe to spawn child process to re-enable file logging (#4293) 2021-10-05 10:55:40 -05:00
wsRouter.ts chore: replace eslint-import-resolver-alias with eslint-import-resolver-typescript (#4546) 2021-12-07 14:39:01 -07:00