Skip to content

Commit

Permalink
fix: remove supportsDefinitionsForAdditionalPaths function
Browse files Browse the repository at this point in the history
This check is not necessary
  • Loading branch information
aminya committed Jun 10, 2021
1 parent e7e7828 commit 47773e9
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions lib/auto-languageclient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -705,7 +705,7 @@ export default class AutoLanguageClient {
point
)

if (query !== null && this.supportsDefinitionsForAdditionalPaths && server.additionalPaths !== undefined) {
if (query !== null && server.additionalPaths !== undefined) {
// populate additionalPaths based on definitions
// 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) {
Expand Down Expand Up @@ -1000,14 +1000,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<T extends keyof ServerAdapters>(
server: ActiveServer,
adapter: T
Expand Down

0 comments on commit 47773e9

Please sign in to comment.