Skip to content

Commit

Permalink
watcher - enable nsfw by default in insiders (#132483)
Browse files Browse the repository at this point in the history
  • Loading branch information
bpasero committed Sep 10, 2021
1 parent 037333c commit 281edeb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/vs/platform/files/node/diskFileSystemProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import { FileWatcher as UnixWatcherService } from 'vs/platform/files/node/watche
import { IDiskFileChange, ILogMessage, toFileChanges } from 'vs/platform/files/node/watcher/watcher';
import { FileWatcher as WindowsWatcherService } from 'vs/platform/files/node/watcher/win32/watcherService';
import { ILogService, LogLevel } from 'vs/platform/log/common/log';
import product from 'vs/platform/product/common/product';

export interface IWatcherOptions {
pollingInterval?: number;
Expand Down Expand Up @@ -608,16 +609,16 @@ export class DiskFileSystemProvider extends Disposable implements

else {

// Single Folder Watcher
if (this.recursiveFoldersToWatch.length === 1) {
// Single Folder Watcher (stable only)
if (product.quality === 'stable' && this.recursiveFoldersToWatch.length === 1) {
if (isWindows) {
watcherImpl = WindowsWatcherService;
} else {
watcherImpl = UnixWatcherService;
}
}

// Multi Folder Watcher
// NSFW: Multi Folder Watcher or insiders
else {
watcherImpl = NsfwWatcherService;
}
Expand Down

0 comments on commit 281edeb

Please sign in to comment.