Skip to content

Commit b967cdd

Browse files
authored
use imported asArray (microsoft#226499)
use imported asArray
1 parent ed4db37 commit b967cdd

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/vs/workbench/api/common/extHostTask.ts

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ import { ILogService } from 'vs/platform/log/common/log';
2828
import { IExtHostApiDeprecationService } from 'vs/workbench/api/common/extHostApiDeprecationService';
2929
import { USER_TASKS_GROUP_KEY } from 'vs/workbench/contrib/tasks/common/tasks';
3030
import { ErrorNoTelemetry, NotSupportedError } from 'vs/base/common/errors';
31+
import { asArray } from 'vs/base/common/arrays';
3132

3233
export interface IExtHostTask extends ExtHostTaskShape {
3334

@@ -793,13 +794,3 @@ export class WorkerExtHostTask extends ExtHostTaskBase {
793794
}
794795

795796
export const IExtHostTask = createDecorator<IExtHostTask>('IExtHostTask');
796-
797-
function asArray(value: string | string[] | undefined): string[] {
798-
if (value === undefined) {
799-
return [];
800-
}
801-
if (Array.isArray(value)) {
802-
return value;
803-
}
804-
return [value];
805-
}

0 commit comments

Comments
 (0)