mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-20 00:04:14 +08:00
Reenable unit test
This commit is contained in:
parent
0f3c3837f6
commit
0cdbe60ffa
@ -637,14 +637,17 @@ namespace ShellConfiguration {
|
||||
|
||||
export function is(value: any): value is ShellConfiguration {
|
||||
let candidate: ShellConfiguration = value;
|
||||
return candidate && (Types.isString(candidate.executable) || (candidate.args === void 0 || Types.isStringArray(candidate.args)));
|
||||
return candidate && (Types.isString(candidate.executable) || Types.isStringArray(candidate.args));
|
||||
}
|
||||
|
||||
export function from(this: void, config: ShellConfiguration, context: ParseContext): Tasks.ShellConfiguration {
|
||||
if (!is(config)) {
|
||||
return undefined;
|
||||
}
|
||||
let result: ShellConfiguration = { executable: config.executable };
|
||||
let result: ShellConfiguration = {};
|
||||
if (config.executable !== void 0) {
|
||||
result.executable = config.executable;
|
||||
}
|
||||
if (config.args !== void 0) {
|
||||
result.args = config.args.slice();
|
||||
}
|
||||
|
||||
@ -1324,7 +1324,6 @@ suite('Tasks version 0.1.0', () => {
|
||||
testConfiguration(external, builder);
|
||||
});
|
||||
|
||||
/*
|
||||
test('tasks: with command and args', () => {
|
||||
let external: ExternalTaskRunnerConfiguration = {
|
||||
version: '0.1.0',
|
||||
@ -1348,7 +1347,6 @@ suite('Tasks version 0.1.0', () => {
|
||||
runtime(Tasks.RuntimeType.Shell).args(['arg']).options({ cwd: 'cwd', env: { env: 'env' } });
|
||||
testConfiguration(external, builder);
|
||||
});
|
||||
*/
|
||||
|
||||
test('tasks: with command os specific', () => {
|
||||
let name: string = Platform.isWindows ? 'tsc.win' : 'tsc';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user