-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Add back removed ignore-last-opened
functionality
#4487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
ignore-last-opened
functionality (actually the last opened functionality is missing entirely)ignore-last-opened
functionality
Raw NotesGet the last opened directory (folder or workspace).
This is where it used to be: https://github.com/cdr/code-server/blob/v3.12.0/src/node/vscode.ts#L39-L56 We could write to vscode settings. How do we do that? Maybe the `sett This is how you get the Settings (StorageService) If query variables are set, use those instead. Write that to settings.
Priority
Implementation
Testing
|
We believe this has been fixed via coder/vscode#18 but assigning to @code-asher to confirm and close. |
There is still no way to force code-server to always open to an empty/no
workspace which is the feature this flag enables.
|
Ahhh okay so we need to implement this still then. |
We think this may be in If you pass that flag, it should open a blank editor (even if you open a new folder - without the folder param, it should be blank). If you pass that flag as well as give a default directory on the command line, instead of blank, it should always open that workspace. # should open previously opened
code-server
# should always open blank
code-server --ignore-last-opened
# should always open the default directory
code-server --ignore-last-opened . code-server # should always open last opened
code-server --ignore-last-opened # should always show blank/no workspace (purple bar)
code-server --ignore-last-opened . # should always open current directory
"Economists hate this one trick..." |
I tested the above cases and here is what the results where. ✅ Running code-server should open previously opened directoryThis works as expected. Steps to reproduce:
✅ Running
|
Add back removed
ignore-last-opened
functionality (actually the last opened functionality is missing entirely)The text was updated successfully, but these errors were encountered: