mirror of
https://github.com/salexdv/bsl_console.git
synced 2024-11-28 08:48:48 +02:00
Сниппеты для режима СКД
This commit is contained in:
parent
f61d32bc38
commit
8d5cbacb42
@ -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 }
|
||||
|
@ -1136,4 +1136,12 @@ define([], function () {
|
||||
}
|
||||
}
|
||||
|
||||
DCSSnippets = {
|
||||
"Выбор": {
|
||||
"prefix": "ВЫБОР",
|
||||
"body": "ВЫБОР\n\tКОГДА ${1:Условие}\n\t\tТОГДА $2\n\tИНАЧЕ $0\nКОНЕЦ",
|
||||
"description": "ВЫБОР"
|
||||
}
|
||||
}
|
||||
|
||||
});
|
Loading…
Reference in New Issue
Block a user