-
Notifications
You must be signed in to change notification settings - Fork 5.7k
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
settings.json seems not functioning as expected #4263
Comments
I don't know if casing is important. Your file is called Also, those service worker errors happen if you're running code-server in an insecure environment (i.e. not using HTTPS). |
to reproduce, I think all you need to do is open it in incog mode. I think it's reading the setting from browser storage, instead of the server side. (Or maybe it got overriden due to certain timing difference.) Please let me know if you can reproduce it via incog mode. |
Okay I just tested in incognito and I cannot reproduce :( I wonder if it's related to you not using a secure environment. Can you please try with code-server running via HTTPS? You can use Screen.Recording.2021-09-29.at.12.22.16.PM.mov |
Hi @jsjoeio , I made an example of how to reproduce and sent an email to Let me know if you can reproduce with the link I sent. |
@OliverwengFiltered ahh... do you mind posting here instead? That way, it's all documented in public and others will be able to see it. (that's my personal email and shouldn't be used, I only use it for commits so everything is tied to the same address. [email protected] should be used but only if I ask you too) |
@OliverwengFiltered Okay I took a look and I see what you mean but until we resolve other issues, I don't think we can isolate this down. Can you please try using HTTPS and seeing if the issue persists? Remember, you're telling VS Code to use a |
@jsjoeio , I'm sorry for the email thing. Back to the topic: I have a proxy on my local and it's https enabled, but can still produce the same issue. and also if I downgrade the version of the code server to previous one, it works fine. |
it almost feels like this issue happens again: #2274 |
No worries at all! Happens all the time. Thanks for understanding!
Interesting...so when you use the proxy + https, do the service workers go away?
argh. that's no good. Hmm...is there anything else about your setup that might be related? i.e. what does your I think @code-asher fixed an issue with this in the past. Maybe he has an idea |
I was not able to replicate on 3.12.0.
What I did:
1. Launch 3.12.0
2. File > Preferences > Settings > search for workbench.startupEditor > set to `readme`
3. Open terminal
4. `mkdir with-readme && without-readme`
5. `echo '#readme' > with-readme/README.md`
6. File > Open > select with-readme
7. Verify readme shows
6. File > Open > select without-readme
8. Verify welcome shows
Few more notes: I ran this on Linux over localhost. I also opened `~/.local/share/code-server/User/settings.json` to make sure the setting had been saved properly. I also cleared my cookies and reload to make sure the settings file was being read.
|
I'm facing a similar issue.
Have the following in User/setting.json
It goes to the Getting Started walkthrough page at the start if I try the code-server on an incognito window. @jsjoeio @code-asher |
Looks like you have a typo -> should be Otherwise, @code-asher just fixed this in our e2e test suite with that same setting and it worked. See here. There could be something else at play |
Thanks for the reply.
My bad, it's settings.json.
Will check once the new release is available. |
Sorry, you shouldn't have to wait for a release to check this! We haven't added anything new. I'm saying that he fixed it in an e2e test meaning I know it's currently working as expected |
I tried with the codercom/code-server:latest docker image. Still, the behavior is the same. 720.movOnce I clear the cache, the welcome page pops up for the first time even with the I'm not sure if it's the same code-server version that is used in your e2e tests. Is there a way to access the version that is used in your e2e tests environment? |
Hmm this is very strange 🤔
Our e2e tests use the latest version (which isn't released). It will be 4.0.0 when it comes out.
You could download the # download folder
cd release-packages
# example: macOS
tar -xzf code-server-3.12.0-macos-amd64.tar.gz
./code-server-3.12.0-macos-amd64/ <pass flags here> |
@prabushi #4263 (comment) (Repeated Getting Started walkthrough) has to do with #4212. With 'incognito mode'/'private windows' there is no way to skip the Getting Started walkthrough page, as this prevents storing browser data. |
This is an interesting comment: Looks like there are some conditions in which the welcome page will always show up regardless of |
Per @code-asher's comment, and this line https://github.com/microsoft/vscode/blob/25d0e27e292fad4454151b85521014d4c92a3aa7/src/vs/workbench/contrib/welcome/page/browser/welcomePage.ts#L55, I would assume disabling telemetry would disable the welcome screen even for first-load incognito. Seems to work for me.
|
Closing since I think this is working as intended at the moment. But let me know if I missed something. |
OS/Web Information
code-server --version
: 3.12.0Steps to Reproduce
/home/xxx/.local/share/code-server/User/settings.json
Expected
the welcome page should not show up when the folder has the read me.
Actual
the welcome page showed up regardless of the
"workbench.startupEditor": "readme"
The text was updated successfully, but these errors were encountered: