Monaco-editor: Curly brackets when typing ""

Created on 13 Jul 2017  路  3Comments  路  Source: microsoft/monaco-editor

monaco-editor version: 0.9.0
Browser: Edge
OS: Windows
Steps or JS usage snippet reproducing the issue:

When I press "enter" on suggestion "==" I get == "{{}}"
How to disable these curly brackets?

thanks!

Most helpful comment

The latest monaco editor version v0.9.0 discontinued support for the custom built in snippet syntax. (one of which was the {{}} syntax)
Whoever owns the Kusto language service for monaco will need to update their SuggestAdapter to use the TextMate style snippet syntax instead, see:
https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax

All 3 comments

Can you provide some more details about how I can get == suggestions?

Yes.
for example:
curlyexample1

curlyexample2


another example:
screenshot 17

in older version:
screenshot 19

in current version:
screenshot 18


In older version of the editor, when I press enter to accept the suggestion: "==" I got : " =="" " and the cursor would blinking between the quotation marks.

I debugged that and saw that every suggestion has a "insertText" attribute and for the older version, the insert text for == was =="" and for this version is =="{{}}".

I hope I made it clear this time.
also, I'm using "Kusto" language for the Monaco editor.

How can I change/disable this behavior of those curly brackets?

The latest monaco editor version v0.9.0 discontinued support for the custom built in snippet syntax. (one of which was the {{}} syntax)
Whoever owns the Kusto language service for monaco will need to update their SuggestAdapter to use the TextMate style snippet syntax instead, see:
https://code.visualstudio.com/docs/editor/userdefinedsnippets#_snippet-syntax

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ststeiger picture ststeiger  路  3Comments

PinkyJie picture PinkyJie  路  3Comments

robclive picture robclive  路  3Comments

brandalorian picture brandalorian  路  3Comments

aarinsmith picture aarinsmith  路  3Comments