Closed anthonyjclark closed 3 months ago
That's not an error (at least not one on our side). The vscode dependency used in there is a very special runtime dependency that implements the whole vscode API on top of monaco. It is not intended to be used in vscode extensions.
In order to build a vscode extension, you will need to split the generated project into multiple npm workspaces. It might make sense to add this to the yeoman generator by default, but the behavior exhibited here is correct. One could argue that vsce is at fault here, since it shows a false positive.
Thank you for the input. I am not sure I understand your comment about splitting into different npm workspaces, but I will look into it.
When following the Building an Extension tutorial, I ran into the following error message:
Langium version: langium@3.0.0
Steps To Reproduce
vsce package
commandThe current behavior
The error described above.
The expected behavior
Building an extension for VS Code.
Possible Solution
I was able to fix the issue by moving this line:
To
devDependencies
.The error seems to have been introduced by #1205.