File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ npm install monaco-sql-languages
100100 LanguageIdEnum,
101101 CompletionService,
102102 ICompletionItem,
103- SyntaxContextType
103+ EntityContextType
104104 } from 'monaco-sql-languages';
105105
106106 const completionService: CompletionService = function (
@@ -125,11 +125,11 @@ npm install monaco-sql-languages
125125 let syntaxCompletionItems: ICompletionItem[] = [];
126126
127127 syntax.forEach((item) => {
128- if (item.syntaxContextType === SyntaxContextType .DATABASE) {
128+ if (item.syntaxContextType === EntityContextType .DATABASE) {
129129 const databaseCompletions: ICompletionItem[] = []; // some completions about databaseName
130130 syntaxCompletionItems = [...syntaxCompletionItems, ...databaseCompletions];
131131 }
132- if (item.syntaxContextType === SyntaxContextType .TABLE) {
132+ if (item.syntaxContextType === EntityContextType .TABLE) {
133133 const tableCompletions: ICompletionItem[] = []; // some completions about tableName
134134 syntaxCompletionItems = [...syntaxCompletionItems, ...tableCompletions];
135135 }
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ npm install monaco-sql-languages
100100 LanguageIdEnum,
101101 CompletionService,
102102 ICompletionItem,
103- SyntaxContextType
103+ EntityContextType
104104 } from 'monaco-sql-languages';
105105
106106 const completionService: CompletionService = function (
@@ -125,11 +125,11 @@ npm install monaco-sql-languages
125125 let syntaxCompletionItems: ICompletionItem[] = [];
126126
127127 syntax.forEach((item) => {
128- if (item.syntaxContextType === SyntaxContextType .DATABASE) {
128+ if (item.syntaxContextType === EntityContextType .DATABASE) {
129129 const databaseCompletions: ICompletionItem[] = []; // some completions about databaseName
130130 syntaxCompletionItems = [...syntaxCompletionItems, ...databaseCompletions];
131131 }
132- if (item.syntaxContextType === SyntaxContextType .TABLE) {
132+ if (item.syntaxContextType === EntityContextType .TABLE) {
133133 const tableCompletions: ICompletionItem[] = []; // some completions about tableName
134134 syntaxCompletionItems = [...syntaxCompletionItems, ...tableCompletions];
135135 }
You can’t perform that action at this time.
0 commit comments