File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed
src/vs/workbench/api/common Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ import { ILogService } from 'vs/platform/log/common/log';
28
28
import { IExtHostApiDeprecationService } from 'vs/workbench/api/common/extHostApiDeprecationService' ;
29
29
import { USER_TASKS_GROUP_KEY } from 'vs/workbench/contrib/tasks/common/tasks' ;
30
30
import { ErrorNoTelemetry , NotSupportedError } from 'vs/base/common/errors' ;
31
+ import { asArray } from 'vs/base/common/arrays' ;
31
32
32
33
export interface IExtHostTask extends ExtHostTaskShape {
33
34
@@ -793,13 +794,3 @@ export class WorkerExtHostTask extends ExtHostTaskBase {
793
794
}
794
795
795
796
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
- }
You can’t perform that action at this time.
0 commit comments