mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 18:19:12 +01:00
adopt latest API
This commit is contained in:
@@ -11,7 +11,7 @@ import { DocumentSelector } from '../utils/documentSelector';
|
||||
import * as typeConverters from '../utils/typeConverters';
|
||||
|
||||
|
||||
class TypeScriptOnTypeRenameProvider implements vscode.OnTypeRenameProvider {
|
||||
class TypeScriptOnTypeRenameProvider implements vscode.OnTypeRenameRangeProvider {
|
||||
|
||||
private static enabledKinds = new Set<string>([
|
||||
Kind.let, Kind.const, Kind.localVariable, Kind.parameter, Kind.typeParameter
|
||||
@@ -67,7 +67,7 @@ export function register(
|
||||
return conditionalRegistration([
|
||||
requireSomeCapability(client, ClientCapability.EnhancedSyntax, ClientCapability.Semantic),
|
||||
], () => {
|
||||
return vscode.languages.registerOnTypeRenameProvider(selector.syntax,
|
||||
return vscode.languages.registerOnTypeRenameRangeProvider(selector.syntax,
|
||||
new TypeScriptOnTypeRenameProvider(client));
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user