question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Extension activation error: Cannot get Typescript APIs

See original GitHub issue

I’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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
CGQAQcommented, Sep 10, 2020

@petekp Can you take a look at your builtin vscode.typescript-language-features is enabled or not? issue4

I’m reading the docs:

Namespace for dealing with installed extensions. Extensions are represented by an extension-interface which enables reflection on them. image

And I don’t know what else other than vscode.typescript-language-features been disabled will cause getExtension return undefined

0reactions
CGQAQcommented, Sep 11, 2020

@petekp Please close your issue, I don’t have permission

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found