code-server/test
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
..
e2e Use upstream server (#4414) 2021-11-09 23:28:31 -06:00
scripts feat(brew-bump): add check for cleanup step 2021-09-28 16:07:01 -07:00
unit Add separate function for VS Code arguments (#4599) 2021-12-10 12:01:35 -06:00
utils Proxy path fixes (#4548) 2021-12-01 18:21:52 -06:00
package.json chore(deps): upgrade json-schema version to 0.4.0 (#4543) 2021-11-22 19:36:04 +00:00
playwright.config.ts fix(testing): revert change & fix playwright tests (#4310) 2021-10-28 15:27:17 -05:00
tsconfig.json refactor: move jest around and add code coverage 2021-01-22 14:18:45 -07:00
yarn.lock chore(deps): upgrade json-schema version to 0.4.0 (#4543) 2021-11-22 19:36:04 +00:00