monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

Custom language

Open hanChao-IsBigPenisBoy opened this issue 1 year ago • 1 comments

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

hanChao-IsBigPenisBoy avatar Jul 06 '24 01:07 hanChao-IsBigPenisBoy

Find an example here with a Person class and several attributes (id, sexe, name) like you described in your issue :

LINK TO PLAYGROUND

RomainGuarinoni avatar Jul 12 '24 13:07 RomainGuarinoni