-
Notifications
You must be signed in to change notification settings - Fork 6.3k
feat(lib/vscode): add log out to application menu #2922
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
Conversation
3f5b16c
to
5274816
Compare
d77243a
to
6a05889
Compare
@oxy
oxy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just a newline at the end of lib/vscode/src/vs/server/common/cookie.ts
should be all that's needed.
So I was wondering why tsc
was "failing" to use outDir
...
Turns out it was, but since we import from lib/vscode
in src
now, what used to be out/node/entry.js
has now become out/src/node/entry.js
(and there's an out/lib/vscode/.../cookie.js
).
Since our build script, ./ci/steps/build-code-server.sh
looks for out/node/entry.js
, it fails.
I think it might be best to just duplicate the key
cookie.
I think it might be best to just duplicate the key cookie.
Ah okay. Yeah it doesn't seem worth it to have to fix everything else for one thing to not be duplicated 😂 thanks for looking into this! I'll convert to draft and fix!
6a05889
to
c23215f
Compare
@oxy
oxy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
d80bcdf
to
7958d52
Compare
1697e49
to
5596f97
Compare
Love this!
This adds a new option to the Application Menu called Log out. It deletes the code-server cookie and logs a user out.
806022a
to
090687d
Compare
binaryfire
commented
Mar 24, 2021
Nice! Just a thought - can you also add it to the profile icon at the bottom of the left sidebar? That seems like the most intuitive place to look for it.
@binaryfire thanks for the suggestion! There's some issues with the profile icon (see #2913) but when we work on that, we can consider it! Feel free to leave more thoughts there
Dual-0
commented
May 10, 2021
nice feature! Hope it is okay to put this in here...
At my new installed code-server instance this button isn't working right.
When I click on the button the site is reloading but I'm still logged in.
Cookie is still present.
thanks
@dual-oo there were a couple bugs fixed in #3277
We're cutting a new release this week so make sure to upgrade and if you have issues, please open a bug report!
Uh oh!
There was an error while loading. Please reload this page.
This adds a new option to the Application Menu called Log out. It deletes the code-server cookie and logs a user out.
Screenshot
2021年03月17日 15 31 46
TODOs
Cookie
to be inlib/vscode
so we can use itCookie
and don't share betweenlib/vscode
Fixes #778