1
0
mirror of https://github.com/salexdv/bsl_console.git synced 2024-11-28 08:48:48 +02:00

Сниппеты для режима СКД

This commit is contained in:
salexdv 2021-03-21 09:27:28 +03:00
parent f61d32bc38
commit 8d5cbacb42
2 changed files with 9 additions and 0 deletions

View File

@ -2768,6 +2768,7 @@ class bslHelper {
this.getCommonCompletition(suggestions, bslDCS.functions, monaco.languages.CompletionItemKind.Function, true);
this.getCommonCompletition(suggestions, bslQuery.functions, monaco.languages.CompletionItemKind.Function, true);
this.getCustomObjectsCompletition(suggestions, bslMetadata.customObjects, monaco.languages.CompletionItemKind.Enum);
this.getSnippets(suggestions, DCSSnippets);
if (suggestions.length)
return { suggestions: suggestions }

View File

@ -1136,4 +1136,12 @@ define([], function () {
}
}
DCSSnippets = {
"Выбор": {
"prefix": "ВЫБОР",
"body": "ВЫБОР\n\tКОГДА ${1:Условие}\n\t\tТОГДА $2\n\tИНАЧЕ $0\nКОНЕЦ",
"description": "ВЫБОР"
}
}
});