diff --git a/typescript-deno-plugin/src/index.ts b/typescript-deno-plugin/src/index.ts index cf3ef6b7..57b23e76 100644 --- a/typescript-deno-plugin/src/index.ts +++ b/typescript-deno-plugin/src/index.ts @@ -55,6 +55,27 @@ class Plugin implements ts.server.PluginModule { // ); return scriptFiles; }); + + const findRenameLocations = ( + fileName: string, + position: number, + findInStrings: boolean, + findInComments: boolean, + providePrefixAndSuffixTextForRename?: boolean | undefined, + ) => { + const { enable } = getSettings(this.project); + if (enable) { + return undefined; + } else { + return ls.findRenameLocations( + fileName, + position, + findInStrings, + findInComments, + providePrefixAndSuffixTextForRename, + ); + } + }; const getCompletionsAtPosition = ( fileName: string, @@ -150,6 +171,7 @@ class Plugin implements ts.server.PluginModule { return { ...ls, + findRenameLocations, getCompletionsAtPosition, getDefinitionAndBoundSpan, getDocumentHighlights,