Skip to content
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

Regression: Problems loading reference schemaservice #206

Open
mehdigmira opened this issue Sep 19, 2023 · 0 comments
Open

Regression: Problems loading reference schemaservice #206

mehdigmira opened this issue Sep 19, 2023 · 0 comments

Comments

@mehdigmira
Copy link

Hello,

I Think there as been a recent regression. I'm using VScode 1.82.2 (Universal).
I have a devcontainer with a root folder named /code and the following config:

"json.schemas": [
	{
		"fileMatch": [
			"/code/path/inside/my/code/**/*.json"
		],
		"url": "/code/environment.schema.json"
	}
],

/code/environment.schema.json exists. And VScode even seems to partially work when opening up a json file: autocomplete as well as field descriptions are displayed.
However errors are not underline and the following message is siplayed

Problems loading reference 'schemaservice://combinedschema/untitled:environment.schema.json': Unable to load schema from 'schemaservice://combinedschema/untitled:environment.schema.json': cannot open schemaservice://combinedschema/untitled%3Aenvironment.schema.json. Detail: Unable to resolve resource schemaservice://combinedschema/untitled%3Aenvironment.schema.json.(768)

Note that when filling "$schema": "/code/environment.schema.json" inside a json file, the message disappears. and everything works well.

I'm pretty sure this same configuration used to work seamlessly and that this was introduces in a recent update of Vscode.

@mehdigmira mehdigmira changed the title Problems loading reference schemaservice Regression: Problems loading reference schemaservice Sep 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant