-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Closed
Labels
bugSomething isn't working correctlySomething isn't working correctlyfix availablethere is a fix available in a third party library that needs to be mergedthere is a fix available in a third party library that needs to be mergedlsprelated to the language serverrelated to the language serverupstreamChanges in upstream are required to solve these issuesChanges in upstream are required to solve these issues
Milestone
Description
I am getting the following lsp error in my project when I comment out the below code in vscode.
Starting Deno language server...
version: 1.8.0 (release, x86_64-apple-darwin)
Connected to "Visual Studio Code" 1.54.1
language server initialized
Server ready.
Error getting actions from TypeScript: TypeError: Cannot read property 'kind' of undefined
at Object.isImportClause (deno:cli/tsc/00_typescript.js:27154:21)
at Object.deleteDeclaration (deno:cli/tsc/00_typescript.js:135890:32)
at _loop_9 (deno:cli/tsc/00_typescript.js:135398:47)
at ChangeTracker.finishDeleteDeclarations (deno:cli/tsc/00_typescript.js:135405:21)
at ChangeTracker.getChanges (deno:cli/tsc/00_typescript.js:135425:22)
at Function.ChangeTracker.with (deno:cli/tsc/00_typescript.js:134880:32)
at Object.getCodeActions (deno:cli/tsc/00_typescript.js:140773:69)
at deno:cli/tsc/00_typescript.js:136053:77
at Object.flatMap (deno:cli/tsc/00_typescript.js:709:25)
at Object.getFixes (deno:cli/tsc/00_typescript.js:136053:23)
[Error - 13:47:06] Request textDocument/codeAction failed.
Message: Internal error
Code: -32603
I don't know exactly what is causing this issue, but it occurs when I comment out the following code. I can't reproduce it with a minimal example. Maybe it has something to do with generic types.
type InferCommandWithParent<C extends Command, P extends Command> = C extends
Command<infer O, infer A, infer G, infer PG, any> ? Command<O, A, G, PG, P>
: never;
wiremoons
Metadata
Metadata
Assignees
Labels
bugSomething isn't working correctlySomething isn't working correctlyfix availablethere is a fix available in a third party library that needs to be mergedthere is a fix available in a third party library that needs to be mergedlsprelated to the language serverrelated to the language serverupstreamChanges in upstream are required to solve these issuesChanges in upstream are required to solve these issues