Skip to content

Commit caa05dd

Browse files
committed
Remove extra gating around selector
A registration should only need to if it targets all files, or just those on disk
1 parent d361a53 commit caa05dd

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

extensions/typescript-language-features/src/languageProvider.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import * as vscode from 'vscode';
88
import { DiagnosticKind } from './features/diagnostics';
99
import FileConfigurationManager from './features/fileConfigurationManager';
1010
import { CachedResponse } from './tsServer/cachedResponse';
11-
import { ClientCapability } from './typescriptService';
1211
import TypeScriptServiceClient from './typescriptServiceClient';
1312
import { CommandManager } from './utils/commandManager';
1413
import { Disposable } from './utils/dispose';
@@ -50,12 +49,7 @@ export default class LanguageProvider extends Disposable {
5049
}
5150
}
5251

53-
if (this.client.capabilities.has(ClientCapability.EnhancedSyntax)) {
54-
return { semantic, syntax };
55-
}
56-
57-
// If we don't have a
58-
return { semantic, syntax: semantic };
52+
return { semantic, syntax };
5953
}
6054

6155
private async registerProviders(): Promise<void> {

0 commit comments

Comments
 (0)