Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/src/node/routes
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
..
apps.ts plugin: Fixes for CI 2020-11-06 10:13:01 -05:00
domainProxy.ts refactor: make ensureAuthenticated async 2021-06-08 14:33:14 -07:00
errors.ts Fix issue where 404 errors are mistaken for server errors. (#4534) 2021-11-19 18:14:13 -05:00
health.ts Fix health socket not getting client messages 2021-02-16 15:01:46 -06:00
index.ts Fix /vscode route being shadowed by / (#4522) 2021-11-17 10:20:01 -06:00
login.ts Fix relative paths (#4594) 2021-12-08 15:52:15 -06:00
logout.ts Fix relative paths (#4594) 2021-12-08 15:52:15 -06:00
pathProxy.ts chore: replace eslint-import-resolver-alias with eslint-import-resolver-typescript (#4546) 2021-12-07 14:39:01 -07:00
update.ts vscode: Show notification when upgrade is available 2020-11-24 12:13:21 -05:00
vscode.ts Add separate function for VS Code arguments (#4599) 2021-12-10 12:01:35 -06:00