monaco-editor
monaco-editor copied to clipboard
Custom language
Context
- [X] This issue is not a bug report. (please use a different template for reporting a bug)
- [X] This issue is not a duplicate of an existing issue. (please use the search to find existing issues)
Description
I want to know if there are any experts who have customized constants, such as entering 'Persion.'` So it will prompt operations such as'. name,. id,. sex '. I have seen that the API needs to use' registerCompletionItemProvider 'with' triggerCharacters', but I cannot see how to use them specifically. Please guide me
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Find an example here with a Person class and several attributes (id, sexe, name) like you described in your issue :