Extract a common DiagnosticsAdapter

This commit is contained in:
Alex Dima 2021-11-17 10:32:04 +01:00
parent 54a4ae36e8
commit 0312af769b
No known key found for this signature in database
GPG key ID: 39563C1504FDD0C9
5 changed files with 163 additions and 237 deletions

View file

@ -83,7 +83,7 @@ export function setupMode(defaults: LanguageServiceDefaults): IDisposable {
);
}
if (modeConfiguration.diagnostics) {
providers.push(new languageFeatures.DiagnosticsAdapter(languageId, worker, defaults));
providers.push(new languageFeatures.JSONDiagnosticsAdapter(languageId, worker, defaults));
}
if (modeConfiguration.selectionRanges) {
providers.push(