You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[json] schemas in workspace settings also apply to external files #178008
I have a workspace open with the correct JSON schemas configuration in the workspace's settings.json, but the JSON file in question is outside of this workspace, even though it's open in the workspace's window and matches fileMatch (or at least used to). So, the workspace's settings must have applied to such files before, but not any more. Is this scenario still supported in some other way?
look at the workspace settings: all files foo.json are associated with schema ./foo-schema.json. Note that this is a relative path to the workspace file
open files foo.json in the folder check that code completion gives back property foo-folder1. You can also click on the JSON language selector ({ } next to JSON in the status bar) to see the schema that is associated
open external ../folder1/foo.json and check that code completion also gives back property foo-folder1
open workspace test-schema-in-workspace/test-schema.code-workspace
look at the workspace settings: all files ws.json are associated with schema ./folder2/ws-schema.json. Note that this is a relative path to the workspace file
open all files folder1/ws.json, folder2/ws.json and test-schema-in-workspace/ws.json (external file) and check that code completion gives back property ws-folder2.
open both files foo.json files and check that code completion gives back property foo-folder1, but only when in folder1.
Activity
aeschli commentedon Mar 22, 2023
To verify:
test-schema-in-workspace/folder1foo.jsonare associated with schema./foo-schema.json. Note that this is a relative path to the workspace filefoo.jsonin the folder check that code completion gives back propertyfoo-folder1. You can also click on the JSON language selector ({ }next to JSON in the status bar) to see the schema that is associated../folder1/foo.jsonand check that code completion also gives back propertyfoo-folder1To verify that the issue did not break #124491
test-schema-in-workspace/test-schema.code-workspacews.jsonare associated with schema./folder2/ws-schema.json. Note that this is a relative path to the workspace filefolder1/ws.json,folder2/ws.jsonandtest-schema-in-workspace/ws.json(external file) and check that code completion gives back propertyws-folder2.foo.jsonfiles and check that code completion gives back propertyfoo-folder1, but only when in folder1.aeschli commentedon Mar 23, 2023
Fixed by #178010