mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 10:08:49 +01:00
Update linked editing file name (#179643)
Also make sure we are enabled in all syntax files
This commit is contained in:
@@ -10,7 +10,7 @@ import * as typeConverters from '../typeConverters';
|
||||
import { ClientCapability, ITypeScriptServiceClient } from '../typescriptService';
|
||||
import { conditionalRegistration, requireMinVersion, requireSomeCapability } from './util/dependentRegistration';
|
||||
|
||||
class JsxLinkedEditingSupport implements vscode.LinkedEditingRangeProvider {
|
||||
class LinkedEditingSupport implements vscode.LinkedEditingRangeProvider {
|
||||
|
||||
public static readonly minVersion = API.v510;
|
||||
|
||||
@@ -40,10 +40,10 @@ export function register(
|
||||
client: ITypeScriptServiceClient
|
||||
) {
|
||||
return conditionalRegistration([
|
||||
requireMinVersion(client, JsxLinkedEditingSupport.minVersion),
|
||||
requireMinVersion(client, LinkedEditingSupport.minVersion),
|
||||
requireSomeCapability(client, ClientCapability.Syntax),
|
||||
], () => {
|
||||
return vscode.languages.registerLinkedEditingRangeProvider(selector.semantic,
|
||||
new JsxLinkedEditingSupport(client));
|
||||
return vscode.languages.registerLinkedEditingRangeProvider(selector.syntax,
|
||||
new LinkedEditingSupport(client));
|
||||
});
|
||||
}
|
||||
@@ -75,7 +75,7 @@ export default class LanguageProvider extends Disposable {
|
||||
import('./languageFeatures/implementations').then(provider => this._register(provider.register(selector, this.client))),
|
||||
import('./languageFeatures/inlayHints').then(provider => this._register(provider.register(selector, this.description, this.client, this.fileConfigurationManager))),
|
||||
import('./languageFeatures/jsDocCompletions').then(provider => this._register(provider.register(selector, this.description, this.client, this.fileConfigurationManager))),
|
||||
import('./languageFeatures/jsxLinkedEditing').then(provider => this._register(provider.register(selector, this.client))),
|
||||
import('./languageFeatures/linkedEditing').then(provider => this._register(provider.register(selector, this.client))),
|
||||
import('./languageFeatures/organizeImports').then(provider => this._register(provider.register(selector, this.client, this.commandManager, this.fileConfigurationManager, this.telemetryReporter))),
|
||||
import('./languageFeatures/quickFix').then(provider => this._register(provider.register(selector, this.client, this.fileConfigurationManager, this.commandManager, this.client.diagnosticsManager, this.telemetryReporter))),
|
||||
import('./languageFeatures/refactor').then(provider => this._register(provider.register(selector, this.client, this.fileConfigurationManager, this.commandManager, this.telemetryReporter))),
|
||||
|
||||
Reference in New Issue
Block a user