mirror of
https://github.com/Microsoft/vscode
synced 2024-09-13 21:55:38 +00:00
parent
58e6b8fa73
commit
1386fba3be
|
@ -59,6 +59,12 @@ function getOutputChannel(): vscode.OutputChannel {
|
||||||
return _channel;
|
return _channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showError() {
|
||||||
|
vscode.window.showWarningMessage(localize('gulpTaskDetectError', 'Problem finding jake tasks. See the output for more information.'),
|
||||||
|
localize('jakeShowOutput', 'Go to output')).then(() => {
|
||||||
|
getOutputChannel().show(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
interface GruntTaskDefinition extends vscode.TaskDefinition {
|
interface GruntTaskDefinition extends vscode.TaskDefinition {
|
||||||
task: string;
|
task: string;
|
||||||
file?: string;
|
file?: string;
|
||||||
|
@ -120,7 +126,7 @@ class FolderDetector {
|
||||||
let { stdout, stderr } = await exec(commandLine, { cwd: rootPath });
|
let { stdout, stderr } = await exec(commandLine, { cwd: rootPath });
|
||||||
if (stderr) {
|
if (stderr) {
|
||||||
getOutputChannel().appendLine(stderr);
|
getOutputChannel().appendLine(stderr);
|
||||||
getOutputChannel().show(true);
|
showError();
|
||||||
}
|
}
|
||||||
let result: vscode.Task[] = [];
|
let result: vscode.Task[] = [];
|
||||||
if (stdout) {
|
if (stdout) {
|
||||||
|
@ -186,7 +192,7 @@ class FolderDetector {
|
||||||
channel.appendLine(err.stdout);
|
channel.appendLine(err.stdout);
|
||||||
}
|
}
|
||||||
channel.appendLine(localize('execFailed', 'Auto detecting Grunt for folder {0} failed with error: {1}', this.workspaceFolder.name, err.error ? err.error.toString() : 'unknown'));
|
channel.appendLine(localize('execFailed', 'Auto detecting Grunt for folder {0} failed with error: {1}', this.workspaceFolder.name, err.error ? err.error.toString() : 'unknown'));
|
||||||
channel.show(true);
|
showError();
|
||||||
return emptyTasks;
|
return emptyTasks;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -59,6 +59,13 @@ function getOutputChannel(): vscode.OutputChannel {
|
||||||
return _channel;
|
return _channel;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function showError() {
|
||||||
|
vscode.window.showWarningMessage(localize('gulpTaskDetectError', 'Problem finding jake tasks. See the output for more information.'),
|
||||||
|
localize('jakeShowOutput', 'Go to output')).then(() => {
|
||||||
|
getOutputChannel().show(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
interface JakeTaskDefinition extends vscode.TaskDefinition {
|
interface JakeTaskDefinition extends vscode.TaskDefinition {
|
||||||
task: string;
|
task: string;
|
||||||
file?: string;
|
file?: string;
|
||||||
|
@ -124,7 +131,7 @@ class FolderDetector {
|
||||||
let { stdout, stderr } = await exec(commandLine, { cwd: rootPath });
|
let { stdout, stderr } = await exec(commandLine, { cwd: rootPath });
|
||||||
if (stderr) {
|
if (stderr) {
|
||||||
getOutputChannel().appendLine(stderr);
|
getOutputChannel().appendLine(stderr);
|
||||||
getOutputChannel().show(true);
|
showError();
|
||||||
}
|
}
|
||||||
let result: vscode.Task[] = [];
|
let result: vscode.Task[] = [];
|
||||||
if (stdout) {
|
if (stdout) {
|
||||||
|
@ -163,7 +170,7 @@ class FolderDetector {
|
||||||
channel.appendLine(err.stdout);
|
channel.appendLine(err.stdout);
|
||||||
}
|
}
|
||||||
channel.appendLine(localize('execFailed', 'Auto detecting Jake for folder {0} failed with error: {1}', this.workspaceFolder.name, err.error ? err.error.toString() : 'unknown'));
|
channel.appendLine(localize('execFailed', 'Auto detecting Jake for folder {0} failed with error: {1}', this.workspaceFolder.name, err.error ? err.error.toString() : 'unknown'));
|
||||||
channel.show(true);
|
showError();
|
||||||
return emptyTasks;
|
return emptyTasks;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue