From 9506aef6183a683465e324e992ef79603c0ecc08 Mon Sep 17 00:00:00 2001 From: Kai Schlamp Date: Sat, 4 Sep 2021 13:50:57 +0000 Subject: [PATCH 1/2] Add custom tags option --- index.d.ts | 5 +++++ src/workerManager.ts | 1 + 2 files changed, 6 insertions(+) diff --git a/index.d.ts b/index.d.ts index c40f0e0..019d100 100644 --- a/index.d.ts +++ b/index.d.ts @@ -61,6 +61,11 @@ declare module 'monaco-editor/esm/vs/editor/editor.api' { */ readonly isKubernetes?: boolean; + /** + * A list of custom tags. + */ + readonly customTags?: Array + readonly format?: boolean; } diff --git a/src/workerManager.ts b/src/workerManager.ts index 0a5ecb2..18ddfed 100644 --- a/src/workerManager.ts +++ b/src/workerManager.ts @@ -42,6 +42,7 @@ export function createWorkerManager( enableSchemaRequest: defaults.diagnosticsOptions.enableSchemaRequest, prefix: defaults.diagnosticsOptions.prefix, isKubernetes: defaults.diagnosticsOptions.isKubernetes, + customTags: defaults.diagnosticsOptions.customTags, }, }); From 04ba90907bc1a42d1427a888ea438cb3464292f9 Mon Sep 17 00:00:00 2001 From: Kai Schlamp Date: Sun, 5 Sep 2021 10:39:30 +0200 Subject: [PATCH 2/2] Fix ESLint issues --- index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 019d100..c5c7aaf 100644 --- a/index.d.ts +++ b/index.d.ts @@ -64,7 +64,7 @@ declare module 'monaco-editor/esm/vs/editor/editor.api' { /** * A list of custom tags. */ - readonly customTags?: Array + readonly customTags?: string[]; readonly format?: boolean; }