Skip to content
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

CodeLens / Intellisense? #6

Open
shshaw opened this issue Dec 2, 2020 · 1 comment
Open

CodeLens / Intellisense? #6

shshaw opened this issue Dec 2, 2020 · 1 comment

Comments

@shshaw
Copy link

shshaw commented Dec 2, 2020

The monaco HTML/CSS/JavaScript packages include CodeLens/Intellisense, but loading the grammars with this method doesn't have that data. I assume something like https://github.com/microsoft/vscode/blob/master/extensions/css-language-features/ needs to be loaded, but is that even possible in Monaco at this point?

Just wondering if you have any guidance since you dove so deep into the grammar setup. I suspect I'll need to break down how the languageFeatures work in the monaco packages. https://github.com/microsoft/monaco-html/blob/master/src/languageFeatures.ts

@bolinfest
Copy link
Owner

I believe you are talking about the support that comes from a web worker? For example, for TypeScript, I believe you include this:

import 'monaco-editor/esm/vs/language/typescript/monaco.contribution.js';

but NOT this:

import 'monaco-editor/esm/vs/basic-languages/typescript/typescript.contribution.js';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants