Skip to content
Discussion options

You must be logged in to vote

Hey @luan-xiaokun

it's not necessarily related to your implementation, but rather what you're importing. You seem to be importing from vscode which is the source of the error, see:

Error: Cannot find module 'vscode'

It's only available in the extension host process. Since language servers run in a separate process, the vscode dependency isn't actually exposed to the node.js runtime. Be aware that the vscode import isn't a "real" import/package, but is rather injected into the process by vscode.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@luan-xiaokun
Comment options

Answer selected by luan-xiaokun
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