Update tests
parent
8176a1a607
commit
c9e4b0bb2d
|
@ -73,18 +73,22 @@ monaco.languages.registerCompletionItemProvider('mySpecialLanguage', {
|
||||||
}, {
|
}, {
|
||||||
label: 'testing',
|
label: 'testing',
|
||||||
kind: monaco.languages.CompletionItemKind.Keyword,
|
kind: monaco.languages.CompletionItemKind.Keyword,
|
||||||
insertText:'testing({{condition}})'
|
insertText: {
|
||||||
|
value: 'testing(${1:condition})'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'ifelse',
|
label: 'ifelse',
|
||||||
kind: monaco.languages.CompletionItemKind.Snippet,
|
kind: monaco.languages.CompletionItemKind.Snippet,
|
||||||
insertText: [
|
insertText: {
|
||||||
'if ({{condition}}) {',
|
value: [
|
||||||
'\t{{}}',
|
'if (${1:condition}) {',
|
||||||
'} else {',
|
'\t$0',
|
||||||
'\t',
|
'} else {',
|
||||||
'}'
|
'\t',
|
||||||
].join('\n'),
|
'}'
|
||||||
|
].join('\n')
|
||||||
|
},
|
||||||
documentation: 'If-Else Statement'
|
documentation: 'If-Else Statement'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue