mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-23 11:49:38 +00:00
[json] update diagnostics when schema changes. Fixes #137309
This commit is contained in:
@@ -255,7 +255,11 @@ export function startServer(connection: Connection, runtime: RuntimeEnvironment)
|
||||
|
||||
// A schema has changed
|
||||
connection.onNotification(SchemaContentChangeNotification.type, uri => {
|
||||
languageService.resetSchema(uri);
|
||||
if (languageService.resetSchema(uri)) {
|
||||
for (const doc of documents.all()) {
|
||||
triggerValidation(doc);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
// Retry schema validation on all open documents
|
||||
|
||||
Reference in New Issue
Block a user