From a1335b9fc770f81d1b5a35192059e750830bf318 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=80=E9=97=AA=E4=B8=80=E9=97=AA=E4=BA=AE=E6=99=B6?= Date: Mon, 14 Oct 2024 15:25:55 +0800 Subject: [PATCH] docs: update attribute name from SyntaxContextType to EntityContextType in README - Corrected the attribute name 'SyntaxContextType' to 'EntityContextType' in the README - Ensures documentation is consistent with the latest API --- README-zh_CN.md | 6 +++--- README.md | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README-zh_CN.md b/README-zh_CN.md index 08b858f9..9e3e08a6 100644 --- a/README-zh_CN.md +++ b/README-zh_CN.md @@ -100,7 +100,7 @@ npm install monaco-sql-languages LanguageIdEnum, CompletionService, ICompletionItem, - SyntaxContextType + EntityContextType } from 'monaco-sql-languages'; const completionService: CompletionService = function ( @@ -125,11 +125,11 @@ npm install monaco-sql-languages let syntaxCompletionItems: ICompletionItem[] = []; syntax.forEach((item) => { - if (item.syntaxContextType === SyntaxContextType.DATABASE) { + if (item.syntaxContextType === EntityContextType.DATABASE) { const databaseCompletions: ICompletionItem[] = []; // some completions about databaseName syntaxCompletionItems = [...syntaxCompletionItems, ...databaseCompletions]; } - if (item.syntaxContextType === SyntaxContextType.TABLE) { + if (item.syntaxContextType === EntityContextType.TABLE) { const tableCompletions: ICompletionItem[] = []; // some completions about tableName syntaxCompletionItems = [...syntaxCompletionItems, ...tableCompletions]; } diff --git a/README.md b/README.md index 5069f904..e346ed38 100644 --- a/README.md +++ b/README.md @@ -100,7 +100,7 @@ npm install monaco-sql-languages LanguageIdEnum, CompletionService, ICompletionItem, - SyntaxContextType + EntityContextType } from 'monaco-sql-languages'; const completionService: CompletionService = function ( @@ -125,11 +125,11 @@ npm install monaco-sql-languages let syntaxCompletionItems: ICompletionItem[] = []; syntax.forEach((item) => { - if (item.syntaxContextType === SyntaxContextType.DATABASE) { + if (item.syntaxContextType === EntityContextType.DATABASE) { const databaseCompletions: ICompletionItem[] = []; // some completions about databaseName syntaxCompletionItems = [...syntaxCompletionItems, ...databaseCompletions]; } - if (item.syntaxContextType === SyntaxContextType.TABLE) { + if (item.syntaxContextType === EntityContextType.TABLE) { const tableCompletions: ICompletionItem[] = []; // some completions about tableName syntaxCompletionItems = [...syntaxCompletionItems, ...tableCompletions]; }