diff --git a/src/languageFeatures.ts b/src/languageFeatures.ts index 47f0f2f..cac81be 100644 --- a/src/languageFeatures.ts +++ b/src/languageFeatures.ts @@ -1,7 +1,5 @@ import type { ParseError } from 'dt-sql-parser'; -import { - EntityContext, -} from 'dt-sql-parser/dist/parser/common/entityCollector'; +import { EntityContext } from 'dt-sql-parser/dist/parser/common/entityCollector'; import { WordPosition } from 'dt-sql-parser/dist/parser/common/textAndWord'; import * as monaco from 'monaco-editor'; @@ -15,7 +13,7 @@ import { MarkerSeverity, Position, Range, - Uri, + Uri } from './fillers/monaco-editor-core'; import type { LanguageServiceDefaults } from './monaco.contribution'; @@ -207,7 +205,8 @@ export class CompletionAdapter export class DefinitionAdapter implements languages.DefinitionProvider { constructor( private readonly _worker: WorkerAccessor, - private readonly _defaults: LanguageServiceDefaults) {} + private readonly _defaults: LanguageServiceDefaults + ) {} provideDefinition( model: editor.IReadOnlyModel, position: Position, diff --git a/src/languages/flink/flink.contribution.ts b/src/languages/flink/flink.contribution.ts index fa1462f..b43ed3f 100644 --- a/src/languages/flink/flink.contribution.ts +++ b/src/languages/flink/flink.contribution.ts @@ -18,5 +18,5 @@ setupLanguageFeatures(LanguageIdEnum.FLINK, { completionItems: true, diagnostics: true, references: true, - definitions: true, + definitions: true }); diff --git a/src/languages/hive/hive.contribution.ts b/src/languages/hive/hive.contribution.ts index 9becbd5..462a837 100644 --- a/src/languages/hive/hive.contribution.ts +++ b/src/languages/hive/hive.contribution.ts @@ -18,5 +18,5 @@ setupLanguageFeatures(LanguageIdEnum.HIVE, { completionItems: true, diagnostics: true, references: true, - definitions: true, + definitions: true }); diff --git a/src/languages/impala/impala.contribution.ts b/src/languages/impala/impala.contribution.ts index 6167a6d..8ba80c7 100644 --- a/src/languages/impala/impala.contribution.ts +++ b/src/languages/impala/impala.contribution.ts @@ -18,5 +18,5 @@ setupLanguageFeatures(LanguageIdEnum.IMPALA, { completionItems: true, diagnostics: true, references: true, - definitions: true, + definitions: true }); diff --git a/src/languages/mysql/mysql.contribution.ts b/src/languages/mysql/mysql.contribution.ts index 964b204..34d772b 100644 --- a/src/languages/mysql/mysql.contribution.ts +++ b/src/languages/mysql/mysql.contribution.ts @@ -18,5 +18,5 @@ setupLanguageFeatures(LanguageIdEnum.MYSQL, { completionItems: true, diagnostics: true, references: true, - definitions: true, + definitions: true }); diff --git a/src/languages/pgsql/pgsql.contribution.ts b/src/languages/pgsql/pgsql.contribution.ts index 51e6b7e..46978f4 100644 --- a/src/languages/pgsql/pgsql.contribution.ts +++ b/src/languages/pgsql/pgsql.contribution.ts @@ -18,5 +18,5 @@ setupLanguageFeatures(LanguageIdEnum.PG, { completionItems: true, diagnostics: true, references: true, - definitions: true, + definitions: true }); diff --git a/src/languages/spark/spark.contribution.ts b/src/languages/spark/spark.contribution.ts index db0c112..8efd836 100644 --- a/src/languages/spark/spark.contribution.ts +++ b/src/languages/spark/spark.contribution.ts @@ -18,5 +18,5 @@ setupLanguageFeatures(LanguageIdEnum.SPARK, { completionItems: true, diagnostics: true, references: true, - definitions: true, + definitions: true }); diff --git a/src/languages/trino/trino.contribution.ts b/src/languages/trino/trino.contribution.ts index a7aa8b4..c1822d0 100644 --- a/src/languages/trino/trino.contribution.ts +++ b/src/languages/trino/trino.contribution.ts @@ -13,5 +13,5 @@ setupLanguageFeatures(LanguageIdEnum.TRINO, { completionItems: true, diagnostics: true, references: true, - definitions: true, + definitions: true }); diff --git a/src/monaco.contribution.ts b/src/monaco.contribution.ts index 03cce1d..c1a2cdc 100644 --- a/src/monaco.contribution.ts +++ b/src/monaco.contribution.ts @@ -1,16 +1,6 @@ -import { - EntityContext, - Suggestions, -} from 'dt-sql-parser'; - -import { - editor, - Emitter, - IEvent, - IRange, - languages, - Position, -} from './fillers/monaco-editor-core'; +import { EntityContext, Suggestions } from 'dt-sql-parser'; + +import { editor, Emitter, IEvent, IRange, languages, Position } from './fillers/monaco-editor-core'; /** * A completion item. diff --git a/src/setupLanguageFeatures.ts b/src/setupLanguageFeatures.ts index 66bfdab..44cb3f6 100644 --- a/src/setupLanguageFeatures.ts +++ b/src/setupLanguageFeatures.ts @@ -1,15 +1,12 @@ import { LanguageIdEnum } from './common/constants'; -import { - IDisposable, - languages, -} from './fillers/monaco-editor-core'; +import { IDisposable, languages } from './fillers/monaco-editor-core'; import { CompletionOptions, LanguageServiceDefaults, LanguageServiceDefaultsImpl, ModeConfiguration, modeConfigurationDefault, - PreprocessCode, + PreprocessCode } from './monaco.contribution'; export interface FeatureConfiguration { @@ -122,13 +119,13 @@ function processConfiguration( : (defaults?.modeConfiguration.completionItems.triggerCharacters ?? modeConfigurationDefault.completionItems.triggerCharacters); const references = - typeof configuration.references === 'boolean' - ? configuration.references - : (defaults?.modeConfiguration.references ?? modeConfigurationDefault.references); + typeof configuration.references === 'boolean' + ? configuration.references + : (defaults?.modeConfiguration.references ?? modeConfigurationDefault.references); const definitions = - typeof configuration.definitions === 'boolean' - ? configuration.definitions - : (defaults?.modeConfiguration.definitions ?? modeConfigurationDefault.definitions); + typeof configuration.definitions === 'boolean' + ? configuration.definitions + : (defaults?.modeConfiguration.definitions ?? modeConfigurationDefault.definitions); return { diagnostics, @@ -138,6 +135,6 @@ function processConfiguration( triggerCharacters }, references, - definitions, + definitions }; } diff --git a/src/setupLanguageMode.ts b/src/setupLanguageMode.ts index 77e96aa..7c57539 100644 --- a/src/setupLanguageMode.ts +++ b/src/setupLanguageMode.ts @@ -1,9 +1,5 @@ import type { BaseSQLWorker } from './baseSQLWorker'; -import { - IDisposable, - languages, - Uri, -} from './fillers/monaco-editor-core'; +import { IDisposable, languages, Uri } from './fillers/monaco-editor-core'; import * as languageFeatures from './languageFeatures'; import { LanguageServiceDefaults } from './monaco.contribution'; import { WorkerManager } from './workerManager';