Extension activation error: Cannot get Typescript APIs
See original GitHub issueI’m setting up Deno for the first time in a new project and the VSCode extension host log shows this error:
[2020-08-30 14:35:30.746] [exthost] [error] Activating extension denoland.vscode-deno failed due to an error:
[2020-08-30 14:35:30.753] [exthost] [error] Error: Cannot get typescript APIs. try restart Visual Studio Code.
at getTypescriptAPI (/Users/petepetrash/.vscode/extensions/denoland.vscode-deno-2.0.16/client/out/client/src/extension.js:31:17)
at Extension.activate (/Users/petepetrash/.vscode/extensions/denoland.vscode-deno-2.0.16/client/out/client/src/extension.js:268:28)
at Function._callActivateOptional (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:877:509)
at Function._callActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:877:160)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:875:492
at processTicksAndRejections (internal/process/task_queues.js:85:5)
at async Promise.all (index 2)
I’ve tried the following steps to fix the issue to no avail:
- Reinstalled Deno
- Reinstalled Typescript
- Reinstalled VSCode
- Reinstalled VSCode Deno extension
Versions
vscode: 1.48.2
deno: 1.3.2
node: 11.4.0
extension: 2.2.0
tsc: 4.0.2
OS: MacOS Catalina 10.15.6
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Why is Typescript VSC extension not working? - Stack Overflow
If I create an extension with Javascript and not Typescript everything works fine and I can run the command without an error. extensions.ts...
Read more >How to set up TypeScript
To do this, run npm install -g typescript . This will install the latest version (currently 4.9).
Read more >Activation Events | Visual Studio Code Extension API
This activation event is emitted and interested extensions will be activated whenever a system-wide Uri for that extension is opened. The Uri scheme...
Read more >Visual Studio IntelliCode - VS Code extension - Microsoft Learn
To get AI-assisted IntelliSense for Java, you need Java 8 Update 151 or higher. (If you have a previous Java 8 version, you'll...
Read more >Writing VS Code extensions in JavaScript - LogRocket Blog
Learn how to set up a project and write your first VS code extension in JavaScript, and take a look at some examples...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@petekp Can you take a look at your builtin
vscode.typescript-language-features
is enabled or not?I’m reading the docs:
And I don’t know what else other than
vscode.typescript-language-features
been disabled will causegetExtension
return undefined@petekp Please close your issue, I don’t have permission