ext host - extend *Shape classes

This commit is contained in:
Alex Dima
2016-07-12 21:10:54 +03:00
parent 581c260f9a
commit bdaa72b842
24 changed files with 80 additions and 43 deletions

View File

@@ -8,7 +8,7 @@ import Event, {Emitter} from 'vs/base/common/event';
import {Disposable} from './extHostTypes';
import {match} from 'vs/base/common/glob';
import {Uri, FileSystemWatcher as _FileSystemWatcher} from 'vscode';
import {FileSystemEvents} from './extHost.protocol';
import {FileSystemEvents, ExtHostFileSystemEventServiceShape} from './extHost.protocol';
export class FileSystemWatcher implements _FileSystemWatcher {
@@ -87,11 +87,12 @@ export class FileSystemWatcher implements _FileSystemWatcher {
}
}
export class ExtHostFileSystemEventService {
export class ExtHostFileSystemEventService extends ExtHostFileSystemEventServiceShape {
private _emitter = new Emitter<FileSystemEvents>();
constructor() {
super();
}
public createFileSystemWatcher(globPattern: string, ignoreCreateEvents?: boolean, ignoreChangeEvents?: boolean, ignoreDeleteEvents?: boolean): _FileSystemWatcher {