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 2022-05-05 08:59:08 +03:00
parent 546f5cce0d
commit eeb0e37a91

View File

@ -4778,11 +4778,15 @@ class bslHelper {
if (this.isSuitablePlaceForQueryAlias()) {
let position = this.position;
while (!this.model.getWordUntilPosition(position).word && 1 < position.column) {
position = new monaco.Position(position.lineNumber, position.column - 1);
}
let data = this.model.getValueInRange({
startLineNumber: this.lineNumber,
startLineNumber: position.lineNumber,
startColumn: 1,
endLineNumber: this.lineNumber,
endColumn: this.column - this.lastExpression.length - 1
endLineNumber: position.lineNumber,
endColumn: position.column - this.lastExpression.length - 1
}).trim().split('.');
let label = data.pop().replace(/[\(\)]/g, '');
suggestions.push({