bolinfest / monaco-tm

Attempt to get TextMate grammars working in standalone Monaco
MIT License
123 stars 29 forks source link

CodeLens / Intellisense? #6

Open shshaw opened 3 years ago

shshaw commented 3 years ago

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 commented 3 years ago

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';