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

Подсказка для объекта метаданных - реквизит

This commit is contained in:
salexdv 2022-07-29 17:39:56 +03:00
parent c00260a9c9
commit f1f98eb91c
2 changed files with 8 additions and 3 deletions

View File

@ -864,7 +864,8 @@ define([], function () {
"name_en":"Attributes",
"description":"Коллекция объектов метаданных, описывающих реквизиты данного объекта метаданных.",
"ref":"types.КоллекцияОбъектовМетаданных",
"list": "properties"
"list": "properties",
"type": "metadataObjectCollection.Реквизит"
},
"СерииКодов":{
"name":"СерииКодов",

View File

@ -1420,6 +1420,9 @@ class bslHelper {
else if (itemName == 'universalObjects' && this.objectHasProperties(bslGlobals, itemName, subItemName)) {
this.getUniversalObjectSuggestions(suggestions, bslGlobals[itemName][subItemName], parentRef);
}
else if (itemName == 'metadataObjectCollection' && this.objectHasProperties(bslGlobals, itemName, subItemName)) {
this.getUniversalObjectSuggestions(suggestions, bslGlobals[itemName][subItemName], parentRef);
}
else {
if (isQueryMode() || isDCSMode()) {
@ -1828,12 +1831,13 @@ class bslHelper {
ref = pvalue.ref;
if (pvalue.hasOwnProperty('list') && item) {
let list_name = pvalue.list;
let list_name = pvalue.list;
let type = pvalue.hasOwnProperty('type') ? pvalue.type : '';
if (item.child.hasOwnProperty(list_name)) {
for (const [lkey, lvalue] of Object.entries(item.child[list_name])) {
list.push({
name: lkey,
ref: '',
ref: type,
kind: monaco.languages.CompletionItemKind.Field,
});
};