Skip to content

Commit d51b522

Browse files
authored
docs: update attribute name from SyntaxContextType to EntityContextType in README (#149)
- Corrected the attribute name 'SyntaxContextType' to 'EntityContextType' in the README - Ensures documentation is consistent with the latest API
1 parent 3275599 commit d51b522

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

README-zh_CN.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)