Skip to content

Commit

Permalink
Fix #140398
Browse files Browse the repository at this point in the history
  • Loading branch information
sandy081 committed Mar 28, 2022
1 parent 059d575 commit 00399b2
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/vs/platform/extensionManagement/node/extensionsWatcher.ts
Expand Up @@ -45,6 +45,11 @@ export class ExtensionsWatcher extends Disposable {
}

private doesChangeAffects(change: IFileChange, extensionsResource: URI): boolean {
// Only interested in added/deleted changes
if (change.type !== FileChangeType.ADDED && change.type !== FileChangeType.DELETED) {
return false;
}

// Is not immediate child of extensions resource
if (!this.uriIdentityService.extUri.isEqual(this.uriIdentityService.extUri.dirname(change.resource), extensionsResource)) {
return false;
Expand All @@ -55,11 +60,6 @@ export class ExtensionsWatcher extends Disposable {
return true;
}

// Only interested in added/deleted changes
if (change.type !== FileChangeType.ADDED && change.type !== FileChangeType.DELETED) {
return false;
}

// Ingore changes to files starting with `.`
if (this.uriIdentityService.extUri.basename(change.resource).startsWith('.')) {
return false;
Expand Down

0 comments on commit 00399b2

Please sign in to comment.