Skip to content

How to add a Diagnostic to a DiagnosticCollection: Error: Can't resolve '@theia/plugin' #14389

Answered by msujew
scharf asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @scharf,

The @theia/plugin package/API isn't designed to be used by Theia applications, but rather Theia plugins (more commonly known as VS Code extensions).

You could either write a VS Code extension that contributes that feature to your IDE (the Diagnostic API is available there without going through the hoops of building a language server) and include that in your Theia app, or use the underlying Theia API (which would be the @theia/markers package) in your Theia extension.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by scharf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants