mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
fix(plugin-sql-editor): CB-755 syntax highlight
This commit is contained in:
@@ -80,7 +80,7 @@ export class NavTreeResource extends CachedMapResource<string, string[]> {
|
||||
}));
|
||||
|
||||
permissionsResource.require(this, EPermission.public);
|
||||
this.preloadResource(connectionInfo, () => CachedMapAllKey);
|
||||
// this.preloadResource(connectionInfo, () => CachedMapAllKey);
|
||||
|
||||
this.onNodeRefresh = new Executor<string>(null, (a, b) => a === b);
|
||||
|
||||
|
||||
+7
-7
@@ -53,13 +53,7 @@ export class SQLCodeEditorController {
|
||||
|
||||
if (this.dialect?.dataTypes) {
|
||||
for (const key of this.dialect.dataTypes) {
|
||||
keywords[key.toLowerCase()] = true;
|
||||
}
|
||||
}
|
||||
|
||||
if (this.dialect?.reservedWords) {
|
||||
for (const key of this.dialect.reservedWords) {
|
||||
keywords[key.toLowerCase()] = true;
|
||||
builtin[key.toLowerCase()] = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,6 +63,12 @@ export class SQLCodeEditorController {
|
||||
}
|
||||
}
|
||||
|
||||
if (this.dialect?.reservedWords) {
|
||||
for (const key of this.dialect.reservedWords) {
|
||||
keywords[key.toLowerCase()] = true;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
name,
|
||||
keywords,
|
||||
|
||||
Reference in New Issue
Block a user