Skip to content

Commit

Permalink
Merge 17bb9a7 into 9e68450
Browse files Browse the repository at this point in the history
  • Loading branch information
Oden committed Apr 6, 2017
2 parents 9e68450 + 17bb9a7 commit 5a74dba
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,13 @@ Fix it by setting path to your editor of choice in ~/.bashrc or ~/.zshrc:
report.results
.filter(file => file.errorCount > 0)
.forEach(file => {
// Sublime Text and Atom support opening file at exact position
if (['subl', 'atom'].indexOf(executableName) >= 0) {
// VS Code requires --goto option for path:line:column
if (executableName === 'code') {
args.push('--goto');
}

// Sublime Text, Atom, and VS Code support opening file at exact position
if (['subl', 'atom', 'code'].indexOf(executableName) >= 0) {
args.push(file.filePath + ':' + lineColumn(file.messages[0]));
return;
}
Expand Down

0 comments on commit 5a74dba

Please sign in to comment.