Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Filter a couple more events #166

Merged
merged 4 commits into from
Apr 7, 2017
Merged

Filter a couple more events #166

merged 4 commits into from
Apr 7, 2017

Conversation

jeffyoung
Copy link
Contributor

No description provided.

Jeff Young added 2 commits April 6, 2017 16:50
Filter team-extension.log and ensure we filter files that aren't under the repositoryRoot folder (VS Code user settings changes were not being filtered)
//filterEvent should return false if an event is to be filtered
const onNonGitChange = filterEvent(onWorkspaceChange, (uri) => {
// Ignore files that aren't under this._repositoryRoot (e.g., settings.json)
const isSubFolder: boolean = uri.fsPath.normalize().startsWith(path.normalize(this._repositoryRoot));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can fsPath ever be undefined? we may want to guard against that here

@@ -137,8 +137,6 @@ export class TfvcSCMProvider {
this._disposables.push(this.conflictsGroup);
this._disposables.push(this.includedGroup);
this._disposables.push(this.excludedGroup);

this._model.onDidChange(this.onDidModelChange, this);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this intentional? how will onDidModelChange get called?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

@jpricket jpricket left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a couple of comments

@jeffyoung jeffyoung merged commit a27d387 into master Apr 7, 2017
@jeffyoung jeffyoung deleted the jeyou/filter-events branch April 7, 2017 14:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants