Closed rick-chou closed 1 year ago
I’m not really sure I understand. Can you post a screenshot / screencast to show the problem? Or ideally a repo to reproduce it.
Sorry , I'm still a novice English speaker, thank you very much for your reply!
What I mean is that the code hints work when the language of monaco-editor is html / css, but not when the language is typescript.
language : html -- works
language : typescript -- not work
My question is, is it possible to set the language of monaco-editor to typescript and still have the syntax prompt?
Sorry , I'm still a novice English speaker, thank you very much for your reply!
No problem! So far it’s not that bad actually.
Ah, I think I understand the problem.
For HTML
b
For MDX
b
For TypeScript you’re seeing the same behaviour as for MDX?
Yes, that's what I meant. But I'm using Macos. Press Ctrl + Space triggers the switching of input method
BTW, Why does mdx needs an extra button Ctrl to show the pop up?
CompletionItemProvider
accepts an optional array triggerCharacters
. As far as I’m aware, this is supposed to determine after which character the completions show up automatically. I don’t understand why this behaviour is currently different between HTML and MDX.
I’m not going to look into this for now, but you can if you want. Feel free to ask if you have any questions.
Anyway thanks a lot!
Hey, I'm trying to build my own React REPL in which I've built in tailwind syntax, but it seems that after
monaco-editor
is configured with typescript language, the library doesn't support syntax hints, but you can still see the content on mouse hover, for examplehttps://monaco-tailwindcss.js.org/#mdx