Steps to Reproduce:

I have edited in JSON settings and saved the file but it still not working for me. Take a look

After saving. Again shows error!! What????????

Liveserver is not working as it in previous versions.
I'm seeing this error sprinkled throughout the settings page. I do not have Live Server installed, so I don't think it's related to that. For example, the GitLens "Heatmap: Age Threshold" setting gives this error, and setting it to an empty string does not remove the error.
I've been trying to isolate this for the past couple of days, and backed out most all of my extension installs, and even reinstalled VSCode (MacOS 10.14.6) FWIW, but these errors still appear, and do not resolve by adding a value in settings.json.
Also, FWIW, I have passed both my User and Workspace settings.json through JSONLint to make sure there isn't a syntax error.
Unfortunately, I can't pin down WHEN they began to appear. I'm new (~week) to VSCode and these error flags may have been lurking in my settings all along...
Thank You ! But I need some help to fix that.
Happens the same to me, looks like it detects that 1.23.4 etc. is not a string. If you write localhost there, it will most likely stop showing an issue. We have a setting that has a value like 0.9.0 and that is also shown as not a string despite actually being a string.
https://github.com/microsoft/vscode/commit/5d8cb8a6a30e2123d0dca80b2cf4e4bbd7d1518b fixed this issue as well as https://github.com/microsoft/vscode/issues/97192? Actually, there are further modifications in the preference validation in the latest master: https://github.com/microsoft/vscode/blob/306235b1e6780216df21da373965323f7a921888/src/vs/workbench/services/preferences/common/preferencesValidation.ts
This issue may not happen on the latest master.
So now what should i do to fix that issue?
- VSCode Version: 1.45.0
- OS Version: Windows 10 1903
Steps to Reproduce:
- Settings > Liveserver
- Settings : Host
- Edit in JSON settings:json
- I have edited in JSON settings and saved the file but it still not working for me. Take a look
- After saving. Again shows error!! What????????
- Liveserver is not working as it in previous versions.
Uninstall VS Code fully > delete .vscode and Code folder then install the user setup not the system setup file. Then install the live server. It works fine in both win 7 and 10 with latest chrome v81.
Try and reply.
@elspnm I have same issue with other random extension - vscode-phpstan. I tried uninstalling vscode and removing /c/Users/User/.vscode, then installing the "Insiders" build: v1.46.0-insider dated 2020-05-07 and the issue does not seem to be fixed there yet.

The issue seems to be exactly what's described here: "phpstan.memoryLimit": "123" gets reported as Setting has an invalid type, expected "string". Fix in JSON, but if I type "adsasd123" instead, error disappears, though it's of course not a valid value for the extension config.
If that helps, I'd like to also note that editor shows these errors even on config parameters that I did not specify in the settings.json - the check seems to be applied even on the extension's default values, which are numeric strings.
Upd.: where exactly is /Code/ folder you said to remove supposed to be located? Were you talking about C:\Users\User\AppData\Roaming\Code? Tried removing it and installing normal vscode build - v1.45.0 (user setuo), but that did not help either.
- VSCode Version: 1.45.0
- OS Version: Windows 10 1903
Steps to Reproduce:
- Settings > Liveserver
- Settings : Host
- Edit in JSON settings:json
- I have edited in JSON settings and saved the file but it still not working for me. Take a look
- After saving. Again shows error!! What????????
- Liveserver is not working as it in previous versions.
Have you tried to run the VSCode in compatibility mode (win7) . In win 7 there is no issue at all.
But when it comes to win10 lot of issue for different people. Ofcourse this extension needs to fix those bugs.
This is also happening in Linux 5.6.11-arch1-1 x86_64. I'll leave some info here, hope it helps somehow. If anything else is needed, let me know and I'll be glad to help further :smiley:
Environment
Linux 5.6.11-arch1-1 x86_64visual-studio-code-bin (AUR), via yay$ code --version: 1.45.0 d69a79b73808559a91206d73d7717ff5f798f23c x64Other information
Not sure when this started happening -- I noticed this for the first time today (May 11, 2020). However, I don't usually tweak my settings, so it might have been happening for a while and I simply didn't notice it.
I did notice, tho, that only settings related to Java extensions have this behavior (in my case). Not sure if it's a coincidence or not, but earlier today I added both java.home and java.semanticHighlighting.enabled to my settings.json file.
note: the java extensions I have enabled are from the Java Extension Pack.
Also, note that the settings which the errors refer to, are NOT set in the settings.json file. See below :point_down:
settings.json
{
"workbench.colorTheme": "Dracula",
"workbench.iconTheme": "material-icon-theme",
"editor.fontFamily": "Fira Code",
"editor.renderWhitespace": "all",
"editor.tabSize": 2,
"files.trimTrailingWhitespace": true,
"files.insertFinalNewline": true,
"editor.fontLigatures": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.rulers": [
100
],
"window.zoomLevel": 0,
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"sync.gist": "3d5eafa3aa57d371f3c166c7ce273635",
"go.useLanguageServer": true,
"java.home": "/usr/lib/jvm/java-13-openjdk/",
"java.semanticHighlighting.enabled": true,
}
Screenshot

Sorry everyone. This is fixed in https://github.com/microsoft/vscode/issues/97192. Will be in the next release this week.
This is still broken.
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:27:22.494Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.0-33-generic snap
Also broken on OSX:
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:33:47.663Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 18.6.0
The duplicate issue noted that there is another case where this appears, and is currently fixed in Insiders and will be in the next release - https://github.com/microsoft/vscode/issues/97192#issuecomment-629373359
Most helpful comment
I'm seeing this error sprinkled throughout the settings page. I do not have Live Server installed, so I don't think it's related to that. For example, the GitLens "Heatmap: Age Threshold" setting gives this error, and setting it to an empty string does not remove the error.
I've been trying to isolate this for the past couple of days, and backed out most all of my extension installs, and even reinstalled VSCode (MacOS 10.14.6) FWIW, but these errors still appear, and do not resolve by adding a value in settings.json.
Also, FWIW, I have passed both my User and Workspace settings.json through JSONLint to make sure there isn't a syntax error.
Unfortunately, I can't pin down WHEN they began to appear. I'm new (~week) to VSCode and these error flags may have been lurking in my settings all along...