Skip to content

Commit 9ca787d

Browse files
committed
Fixes microsoft#28139: Fix TS 2.4 Errors in extHostTask.ts
1 parent c2be06c commit 9ca787d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ namespace Strings {
252252
}
253253

254254
namespace CommandOptions {
255-
function isShellOptions(value: any): value is vscode.ShellTaskOptions {
255+
function isShellConfiguration(value: any): value is { executable: string; shellArgs?: string[] } {
256256
return value && typeof value.executable === 'string';
257257
}
258258
export function from(value: vscode.ShellTaskOptions | vscode.ProcessTaskOptions): TaskSystem.CommandOptions {
@@ -273,22 +273,22 @@ namespace CommandOptions {
273273
}
274274
});
275275
}
276-
if (isShellOptions(value)) {
276+
if (isShellConfiguration(value)) {
277277
result.shell = ShellConfiguration.from(value);
278278
}
279279
return result;
280280
}
281281
}
282282

283283
namespace ShellConfiguration {
284-
export function from(value: { executable?: string, args?: string[] }): TaskSystem.ShellConfiguration {
284+
export function from(value: { executable?: string, shellArgs?: string[] }): TaskSystem.ShellConfiguration {
285285
if (value === void 0 || value === null || !value.executable) {
286286
return undefined;
287287
}
288288

289289
let result: TaskSystem.ShellConfiguration = {
290290
executable: value.executable,
291-
args: Strings.from(value.args)
291+
args: Strings.from(value.shellArgs)
292292
};
293293
return result;
294294
}

0 commit comments

Comments
 (0)