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.

VS Code Extension API does not work across Extension Host Boundaries

See original GitHub issue

A VS Code extension can provide API to other extensions by returning an API object from their activate function (see https://code.visualstudio.com/api/references/vscode-api#extensions.getExtension). This works fine when the extensions run in the same process, but when the extensions run in their own sidecar, I think this will not work. This is relevant to Che: some very basic extensions like yaml support (https://github.com/redhat-developer/vscode-yaml) use this facility to communicate with other extensions like tekton support.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (17 by maintainers)

github_iconTop GitHub Comments

1reaction
benoitfcommented, Jan 28, 2020

@ibuziuk I would say editor as it’s related to che/theia ?

1reaction
tsmaedercommented, Jan 28, 2020

It seems (from my testing at least) that only one instance of vscode-yaml will succeed at activating.

And that is the correct behaviour. Duplicate instances of plugins are bad.

Read more comments on GitHub >

github_iconTop Results From Across the Web

VS Code API | Visual Studio Code Extension API
VS Code API. VS Code API is a set of JavaScript APIs that you can invoke in your Visual Studio Code extension. This...
Read more >
Source map debugging not working for built in extensions #486
open VSCode on the vscode folder; select Attach to Extension Host launch config; Attach debugger; open bufferSyncSupport.ts and set a breakpoint ...
Read more >
Our Approach to Extensibility - vscode-docs
Extensions are wonderful but extensions can also affect startup performance or the overall stability of VS Code itself. To avoid these problems, VS...
Read more >
yo - vscode's first extension tutorial: command not listed ...
It went away after installing the recommended extensions ( eamodio/vscode-tsl-problem-matcher and Microsoft/vscode-eslint ). The Extension host ...
Read more >
GitLab Workflow extension for VS Code
You can decrease context switching and do more day-to-day tasks in Visual Studio Code, such as: View issues. Run common commands from the...
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