mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-24 23:05:29 +08:00
CB-3372 feat: codemirror6 autocomplete (#1646)
* CB-3372 feat: codemirror6 autocomplete * CB-3372 feat: autocomplete icons * CB-3371 feat: sql editor syntax highlight * CB-3371 fix: syntax highlight blinking * CB-3371 fix: editor extensions state * CB-3372 chore: code cleanup * CB-3372 fix: remove useSqlDIalectAutocompletion * CB-3372 fix: add useSqlDIalectAutocompletion * CB-3372 feat: experimental context menu * CB-3372 feat: use new sql editor * CB-3372 chore: remove sql script parser * CB-3372 fix: rounded menu * CB-3372 fix: event preventDefault on dialog * CB-3372 fix: context menu styles * CB-3372 feat: remove old codemirror * CB-3372 fix: numbers completion & extensions caching * CB-3372 fix: table display * CB-3372 fix: decrease sql editor font size * CB-3372 fix: copy in readonly mode & autocompletion in safari on MacOS * CB-3372 fix: value panel styles * CB-3372 fix: menu bar styles * CB-3372 fix: menu bar and inline editor styles * CB-3372 fix: menu and inline editor styles * CB-3372 chore: update bundle --------- Co-authored-by: dariamarutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
@@ -15,7 +15,6 @@ import { LocalStorageSaveService } from '@cloudbeaver/core-settings';
|
||||
interface IDevToolsSettings {
|
||||
enabled: boolean;
|
||||
distributed: boolean;
|
||||
codemirror: boolean;
|
||||
}
|
||||
|
||||
const DEVTOOLS = 'devtools';
|
||||
@@ -30,10 +29,6 @@ export class DevToolsService {
|
||||
return this.settings.distributed;
|
||||
}
|
||||
|
||||
get isCodemirror(): boolean {
|
||||
return this.settings.codemirror;
|
||||
}
|
||||
|
||||
private readonly settings: IDevToolsSettings;
|
||||
|
||||
constructor(
|
||||
@@ -59,10 +54,6 @@ export class DevToolsService {
|
||||
this.syncDistributedMode();
|
||||
}
|
||||
|
||||
setCodemirror(value: boolean) {
|
||||
this.settings.codemirror = value;
|
||||
}
|
||||
|
||||
private syncDistributedMode() {
|
||||
if (this.isEnabled) {
|
||||
if (this.serverConfigResource.data) {
|
||||
@@ -76,6 +67,5 @@ function getDefaultDevToolsSettings(): IDevToolsSettings {
|
||||
return {
|
||||
enabled: false,
|
||||
distributed: false,
|
||||
codemirror: false,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user