Skip to content

Commit

Permalink
Issue 524
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaticusgreen committed Mar 10, 2024
1 parent 439e1b8 commit 78469d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/datasource/sql-query/sql-query-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ export class SqlQueryHelper {
}
}
if (done === 0) {
throw { message: '$conditionalTest macros error cannot find referenced variable: ' + param2 };
// TODO: Refactor logic
// throw { message: '$conditionalTest macros error cannot find referenced variable: ' + param2 };
break;
}
openMacros = query.indexOf(macros);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export const initiateEditor = (templateVariables: any, monacoInstance: any) => {
array.map(item => createCompletionItem(item, kind, item, range));
// @ts-ignore
const mapMacroToCompletionItems = (array: Array<{ name: string; def: string; docText: string }>, kind: monacoInstance.languages.CompletionItemKind) =>
array.map(item => createCompletionItem(item.name, kind, item.def, rangeMacros, item.docText));
array.map(item => createCompletionItem(item.name, kind, item.name, rangeMacros, item.docText));
// @ts-ignore
const mapFunctionToCompletionItems = (array: Array<{ name: string; def: string; docText: string }>, kind: monacoInstance.languages.CompletionItemKind) =>
array.map(item => createCompletionItem(item.name, kind, item.def, range, item.docText));
Expand Down

0 comments on commit 78469d1

Please sign in to comment.