Update tests

pull/497/head
Sam El-Husseini 2017-07-05 23:49:14 +03:00
parent 8176a1a607
commit c9e4b0bb2d
1 changed files with 12 additions and 8 deletions

View File

@ -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'
} }
] ]