mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
[json] update diagnostics when schema changes. Fixes #137309
This commit is contained in:
parent
35a8a61140
commit
9f1e991680
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue