Skip to content

Commit 47773e9

Browse files
committed
fix: remove supportsDefinitionsForAdditionalPaths function
This check is not necessary
1 parent e7e7828 commit 47773e9

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

lib/auto-languageclient.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,7 @@ export default class AutoLanguageClient {
705705
point
706706
)
707707

708-
if (query !== null && this.supportsDefinitionsForAdditionalPaths && server.additionalPaths !== undefined) {
708+
if (query !== null && server.additionalPaths !== undefined) {
709709
// populate additionalPaths based on definitions
710710
// Indicates that the language server can support LSP functionality for out of project files indicated by `textDocument/definition` responses.
711711
for (const def of query.definitions) {
@@ -1000,14 +1000,6 @@ export default class AutoLanguageClient {
10001000
.forEach((line) => this.logger.warn(`stderr ${line}`))
10011001
}
10021002

1003-
/**
1004-
* Indicates that the language server can support LSP functionality for out of project files indicated by
1005-
* `textDocument/definition` responses. Set it to `true` if the server supports this feature.
1006-
*
1007-
* @default `false`
1008-
*/
1009-
protected supportsDefinitionsForAdditionalPaths: boolean = false
1010-
10111003
private getServerAdapter<T extends keyof ServerAdapters>(
10121004
server: ActiveServer,
10131005
adapter: T

0 commit comments

Comments
 (0)