fix(plugin-sql-editor): CB-755 syntax highlight

This commit is contained in:
Wroud
2021-10-05 12:22:03 +03:00
parent ffc04ef1d9
commit fb3a1cb296
2 changed files with 8 additions and 8 deletions
@@ -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);
@@ -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,