More adoption of @extHostNamedCustomer

This commit is contained in:
Alex Dima
2017-08-16 09:54:08 +02:00
parent f91db52096
commit 159de8236e
11 changed files with 55 additions and 46 deletions
@@ -5,20 +5,21 @@
'use strict';
import { FileChangeType, IFileService } from 'vs/platform/files/common/files';
import { IThreadService } from 'vs/workbench/services/thread/common/threadService';
import { ExtHostContext, ExtHostFileSystemEventServiceShape, FileSystemEvents } from '../node/extHost.protocol';
import { ExtHostContext, ExtHostFileSystemEventServiceShape, FileSystemEvents, IExtHostContext } from '../node/extHost.protocol';
import { IDisposable } from "vs/base/common/lifecycle";
import { extHostCustomer } from "vs/workbench/api/electron-browser/extHostCustomers";
@extHostCustomer
export class MainThreadFileSystemEventService {
private readonly _listener: IDisposable;
constructor(
@IThreadService threadService: IThreadService,
extHostContext: IExtHostContext,
@IFileService fileService: IFileService
) {
const proxy: ExtHostFileSystemEventServiceShape = threadService.get(ExtHostContext.ExtHostFileSystemEventService);
const proxy: ExtHostFileSystemEventServiceShape = extHostContext.get(ExtHostContext.ExtHostFileSystemEventService);
const events: FileSystemEvents = {
created: [],
changed: [],