mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-28 04:23:32 +01:00
remove debugBrkFileWatcherPort
This commit is contained in:
@@ -63,13 +63,8 @@ export class FileService implements IFileService {
|
||||
encodingOverride: encodingOverride,
|
||||
watcherIgnoredPatterns: watcherIgnoredPatterns,
|
||||
verboseLogging: environmentService.verbose,
|
||||
debugBrkFileWatcherPort: environmentService.debugBrkFileWatcherPort
|
||||
};
|
||||
|
||||
if (typeof environmentService.debugBrkFileWatcherPort === 'number') {
|
||||
console.warn(`File Watcher STOPPED on first line for debugging on port ${environmentService.debugBrkFileWatcherPort}`);
|
||||
}
|
||||
|
||||
// create service
|
||||
let workspace = this.contextService.getWorkspace();
|
||||
this.raw = new NodeFileService(workspace ? workspace.resource.fsPath : void 0, fileServiceConfig, this.eventService);
|
||||
|
||||
@@ -47,7 +47,6 @@ export interface IFileServiceOptions {
|
||||
watcherIgnoredPatterns?: string[];
|
||||
disableWatcher?: boolean;
|
||||
verboseLogging?: boolean;
|
||||
debugBrkFileWatcherPort?: number;
|
||||
}
|
||||
|
||||
function etag(stat: fs.Stats): string;
|
||||
@@ -129,7 +128,7 @@ export class FileService implements IFileService {
|
||||
}
|
||||
|
||||
private setupUnixWorkspaceWatching(): void {
|
||||
this.workspaceWatcherToDispose = new UnixWatcherService(this.basePath, this.options.watcherIgnoredPatterns, this.eventEmitter, this.options.errorLogger, this.options.verboseLogging, this.options.debugBrkFileWatcherPort).startWatching();
|
||||
this.workspaceWatcherToDispose = new UnixWatcherService(this.basePath, this.options.watcherIgnoredPatterns, this.eventEmitter, this.options.errorLogger, this.options.verboseLogging).startWatching();
|
||||
}
|
||||
|
||||
public resolveFile(resource: uri, options?: IResolveFileOptions): TPromise<IFileStat> {
|
||||
|
||||
@@ -25,8 +25,7 @@ export class FileWatcher {
|
||||
private ignored: string[],
|
||||
private eventEmitter: IEventService,
|
||||
private errorLogger: (msg: string) => void,
|
||||
private verboseLogging: boolean,
|
||||
private debugBrkFileWatcherPort: number
|
||||
private verboseLogging: boolean
|
||||
) {
|
||||
this.isDisposed = false;
|
||||
this.restartCounter = 0;
|
||||
@@ -34,9 +33,6 @@ export class FileWatcher {
|
||||
|
||||
public startWatching(): () => void {
|
||||
const args = ['--type=watcherService'];
|
||||
if (typeof this.debugBrkFileWatcherPort === 'number') {
|
||||
args.push(`--debug-brk=${this.debugBrkFileWatcherPort}`);
|
||||
}
|
||||
|
||||
const client = new Client(
|
||||
uri.parse(require.toUrl('bootstrap')).fsPath,
|
||||
|
||||
Reference in New Issue
Block a user