-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Syntax highlighting not working in extension mode #4979
Comments
You should add @theia/textmate-grammars to your app. |
Closing thanks to eclipse-theia/generator-theia-extension#31 |
I get a node-gyp error trying to build @theia/node-pty when trying to install @theia/textmate-grammars so I can't check that this solution fixes syntax highlighting in my case. I've used https://www.theia-ide.org/doc/Composing_Applications.html and I still got no syntax highlighting (javascript). I find it strange that in the theia repository itself, examples/browser/package.json doesn't reference @theia/textmate-grammars, but if I run theia there I get syntax highlighting. |
@quirinpa
Syntax-highlighting is now contributed by vscode plugins. |
Thanks for the information @vince-fugnitto. In that case shouldn't the "vscode-builtin-javascript" give me js syntax highlighting? It is listed in my package.json theiaPlugins.. |
Given you have plugin support (through the appropriate extensions), the Line 112 in 43a6b62
|
Thanks. I have copied and pasted the second example package.json file in https://www.theia-ide.org/doc/Composing_Applications.html. So i got the "@theia/plugin-ext-vscode" extension.. Shouldn't this be enough? |
It should be, you can confirm you actually have the plugin present under the |
It is present. But I have no syntax highlighting. Weird. Maybe I messed up somehow, but I simply followed the tutorial. Thank you very much for your quick replies. Should I open a new issue? |
@quirinpa I was able to confirm the example works on my end:
In the and I have syntax highlighting present: |
Theia wasn't seeing any plugins. I was doing "yarn theia start" without arguments so that's why. I'm sorry for the rookie mistake. Running "yarn start" fixes this. Thanks. |
when using these steps to build theia IDE
https://www.theia-ide.org/doc/Composing_Applications.html
everything works fine
however, when build a hello-world extension described here:
https://www.theia-ide.org/doc/Authoring_Extensions.html
the syntax highlighting is not working, at least for Java, Javascript. Seems like JSON is working fine
OS: Mac
@theia/core version: 0.5.0
The text was updated successfully, but these errors were encountered: