remove debugBrkFileWatcherPort

This commit is contained in:
Joao Moreno
2016-08-18 16:58:38 +02:00
parent e4b316978b
commit 5f53f7c741
9 changed files with 2 additions and 38 deletions

View File

@@ -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);

View File

@@ -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> {

View File

@@ -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,