From 2ccacfe150db739cbf6a2fc2509cdf84ce799983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20M=C3=A4der?= Date: Fri, 2 Dec 2022 14:23:31 +0100 Subject: [PATCH] fix tests and linting MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Thomas Mäder --- packages/plugin-ext/src/common/plugin-api-rpc.ts | 2 +- packages/plugin-ext/src/plugin/type-converters.spec.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/plugin-ext/src/common/plugin-api-rpc.ts b/packages/plugin-ext/src/common/plugin-api-rpc.ts index 2969fb3bc35b6..9ec9307f24ad5 100644 --- a/packages/plugin-ext/src/common/plugin-api-rpc.ts +++ b/packages/plugin-ext/src/common/plugin-api-rpc.ts @@ -1444,7 +1444,7 @@ export interface CommandProperties { }; } -export type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean' +export type TaskGroupKind = 'build' | 'test' | 'rebuild' | 'clean'; export interface TaskDto { type: string; taskType?: 'shell' | 'process' | 'customExecution'; // the task execution type diff --git a/packages/plugin-ext/src/plugin/type-converters.spec.ts b/packages/plugin-ext/src/plugin/type-converters.spec.ts index f7ad3e364301f..314fc01a11c01 100644 --- a/packages/plugin-ext/src/plugin/type-converters.spec.ts +++ b/packages/plugin-ext/src/plugin/type-converters.spec.ts @@ -22,7 +22,6 @@ import * as model from '../common/plugin-api-rpc-model'; import { MarkdownString } from './markdown-string'; import { MarkdownString as MarkdownStringInterface } from '@theia/core/lib/common/markdown-rendering'; import { TaskDto } from '../common/plugin-api-rpc'; -import { TaskGroup } from './types-impl'; describe('Type converters:', () => { @@ -185,7 +184,7 @@ describe('Type converters:', () => { const args = ['run', 'build']; const cwd = '/projects/theia'; const additionalProperty = 'some property'; - const group = TaskGroup.Build; + const group = new types.TaskGroup('build', 'Build'); const shellTaskDto: TaskDto = { type: shellType,