Skip to content

Commit

Permalink
Let user know when tasks.json already exists
Browse files Browse the repository at this point in the history
  • Loading branch information
DustinCampbell committed Feb 29, 2016
1 parent d58ee84 commit e7ae983
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/features/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,9 @@ export function addTasksJson(server: OmnisharpServer, extensionPath: string) {

return exists(tasksJsonPath).then(e => {
if (e) {
return resolve(tasksJsonPath);
return vscode.window.showInformationMessage(`${tasksJsonPath} already exists.`).then(_ => {
return resolve(tasksJsonPath);
});
}
else {
let templatePath = path.join(extensionPath, 'template-tasks.json');
Expand Down

0 comments on commit e7ae983

Please sign in to comment.