File tree 2 files changed +6
-6
lines changed 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
100
100
LanguageIdEnum,
101
101
CompletionService,
102
102
ICompletionItem,
103
- SyntaxContextType
103
+ EntityContextType
104
104
} from 'monaco-sql-languages';
105
105
106
106
const completionService: CompletionService = function (
@@ -125,11 +125,11 @@ npm install monaco-sql-languages
125
125
let syntaxCompletionItems: ICompletionItem[] = [];
126
126
127
127
syntax.forEach((item) => {
128
- if (item.syntaxContextType === SyntaxContextType .DATABASE) {
128
+ if (item.syntaxContextType === EntityContextType .DATABASE) {
129
129
const databaseCompletions: ICompletionItem[] = []; // some completions about databaseName
130
130
syntaxCompletionItems = [...syntaxCompletionItems, ...databaseCompletions];
131
131
}
132
- if (item.syntaxContextType === SyntaxContextType .TABLE) {
132
+ if (item.syntaxContextType === EntityContextType .TABLE) {
133
133
const tableCompletions: ICompletionItem[] = []; // some completions about tableName
134
134
syntaxCompletionItems = [...syntaxCompletionItems, ...tableCompletions];
135
135
}
Original file line number Diff line number Diff line change @@ -100,7 +100,7 @@ npm install monaco-sql-languages
100
100
LanguageIdEnum,
101
101
CompletionService,
102
102
ICompletionItem,
103
- SyntaxContextType
103
+ EntityContextType
104
104
} from 'monaco-sql-languages';
105
105
106
106
const completionService: CompletionService = function (
@@ -125,11 +125,11 @@ npm install monaco-sql-languages
125
125
let syntaxCompletionItems: ICompletionItem[] = [];
126
126
127
127
syntax.forEach((item) => {
128
- if (item.syntaxContextType === SyntaxContextType .DATABASE) {
128
+ if (item.syntaxContextType === EntityContextType .DATABASE) {
129
129
const databaseCompletions: ICompletionItem[] = []; // some completions about databaseName
130
130
syntaxCompletionItems = [...syntaxCompletionItems, ...databaseCompletions];
131
131
}
132
- if (item.syntaxContextType === SyntaxContextType .TABLE) {
132
+ if (item.syntaxContextType === EntityContextType .TABLE) {
133
133
const tableCompletions: ICompletionItem[] = []; // some completions about tableName
134
134
syntaxCompletionItems = [...syntaxCompletionItems, ...tableCompletions];
135
135
}
You can’t perform that action at this time.
0 commit comments