Skip to content

Commit

Permalink
fix: adding/modifying/deleting task files in excluded paths causes tr…
Browse files Browse the repository at this point in the history
…ee to refresh. [fixes #92]
  • Loading branch information
spmeesseman committed Feb 7, 2021
1 parent 204b2e5 commit 1a980ce
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,14 @@ async function refreshTree(taskType?: string, uri?: Uri)
let refreshedTasks = false;
// window.setStatusBarMessage("$(loading) Task Explorer - Refreshing tasks...");

//
// If this request is from a filesystem event for a file that exists in an ignored path,
// then get out of here
//
if (uri && util.isExcluded(uri.path)) {
return;
}

//
// If the task type received from a filewatcher event is "ant-*" then it is a custom
// defined ant file in the includeAnt setting, named accordingly so that the watchers
Expand Down

0 comments on commit 1a980ce

Please sign in to comment.