Skip to content

Commit

Permalink
feat: respect ignored file
Browse files Browse the repository at this point in the history
  • Loading branch information
lvjiaxuan committed Mar 13, 2023
1 parent 6b78b06 commit 22ff809
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,10 @@ async function disable(silent: boolean, insert: (opts: {
return false
}

if (await eslint.isPathIgnored(fileName)) {
return false
}

if (activeTextEditor.selections.length > 1) {
log('Sorry, we can not disable multi-selections for now. It will be supported in later version.', true, 'OK')
return false
Expand Down

0 comments on commit 22ff809

Please sign in to comment.