diff --git a/lib/auto-languageclient.ts b/lib/auto-languageclient.ts index 81220f74..f456eaad 100644 --- a/lib/auto-languageclient.ts +++ b/lib/auto-languageclient.ts @@ -705,7 +705,11 @@ export default class AutoLanguageClient { point ) - if (query !== null && this.supportsDefinitionsForAdditionalPaths && server.additionalPaths !== undefined) { + if (query !== null && server.additionalPaths !== undefined) { + /* + * Indicates that the language server can support LSP functionality for out of project files indicated by + * `textDocument/definition` responses. + */ for (const def of query.definitions) { considerAdditionalPath(server as ActiveServer & { additionalPaths: Set }, path.dirname(def.path)) } @@ -998,14 +1002,6 @@ export default class AutoLanguageClient { .forEach((line) => this.logger.warn(`stderr ${line}`)) } - /** - * Indicates that the language server can support LSP functionality for out of project files indicated by - * `textDocument/definition` responses. Set it to `true` if the server supports this feature. - * - * @default `false` - */ - protected supportsDefinitionsForAdditionalPaths: boolean = false - private getServerAdapter( server: ActiveServer, adapter: T