We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a39901f commit 6bd7659Copy full SHA for 6bd7659
src/index.ts
@@ -23,6 +23,7 @@ import logger from "./common/logger";
23
24
// lsp initialize
25
connection.onInitialize((param: InitializeParams) => {
26
+ const renamePrepareSupport = param.capabilities.textDocument && param.capabilities.textDocument.rename && param.capabilities.textDocument.rename.prepareSupport === true;
27
const { initializationOptions = {} } = param;
28
const {
29
isNeovim,
@@ -93,9 +94,9 @@ connection.onInitialize((param: InitializeParams) => {
93
94
},
95
definitionProvider: true,
96
referencesProvider: true,
- renameProvider: {
97
+ renameProvider: renamePrepareSupport ? {
98
prepareProvider: true,
- },
99
+ } : true,
100
101
};
102
});
0 commit comments