@@ -286,7 +286,6 @@ import { NotebookDocumentsExtImpl } from './notebook/notebook-documents';
286286import { NotebookEditorsExtImpl } from './notebook/notebook-editors' ;
287287import { TestingExtImpl } from './tests' ;
288288import { UriExtImpl } from './uri-ext' ;
289- import { isObject } from '@theia/core' ;
290289import { PluginLogger } from './logger' ;
291290
292291export function createAPIObject < T extends Object > ( rawObject : T ) : T {
@@ -688,21 +687,12 @@ export function createAPIFactory(
688687 onDidStartTerminalShellExecution : Event . None
689688 } ;
690689
691- function createFileSystemWatcher ( pattern : RelativePattern , options ?: theia . FileSystemWatcherOptions ) : theia . FileSystemWatcher ;
692690 function createFileSystemWatcher ( pattern : theia . GlobPattern , ignoreCreateEvents ?: boolean , ignoreChangeEvents ?:
693- boolean , ignoreDeleteEvents ?: boolean ) : theia . FileSystemWatcher ;
694- function createFileSystemWatcher ( pattern : RelativePattern | theia . GlobPattern ,
695- ignoreCreateOrOptions ?: theia . FileSystemWatcherOptions | boolean , ignoreChangeEventsBoolean ?: boolean , ignoreDeleteEventsBoolean ?: boolean ) : theia . FileSystemWatcher {
696- if ( isObject < theia . FileSystemWatcherOptions > ( ignoreCreateOrOptions ) ) {
697- const { ignoreCreateEvents, ignoreChangeEvents, ignoreDeleteEvents, excludes } = ( ignoreCreateOrOptions as theia . FileSystemWatcherOptions ) ;
698- return createAPIObject (
699- extHostFileSystemEvent . createFileSystemWatcher ( fromGlobPattern ( pattern ) ,
700- ignoreCreateEvents , ignoreChangeEvents , ignoreDeleteEvents , excludes ) ) ;
701- } else {
702- return createAPIObject (
703- extHostFileSystemEvent . createFileSystemWatcher ( fromGlobPattern ( pattern ) ,
704- ignoreCreateOrOptions as boolean , ignoreChangeEventsBoolean , ignoreDeleteEventsBoolean ) ) ;
705- }
691+ boolean , ignoreDeleteEvents ?: boolean ) : theia . FileSystemWatcher {
692+ return createAPIObject (
693+ extHostFileSystemEvent . createFileSystemWatcher ( fromGlobPattern ( pattern ) ,
694+ ignoreCreateEvents , ignoreChangeEvents , ignoreDeleteEvents ) ) ;
695+
706696 }
707697 const workspace : typeof theia . workspace = {
708698
0 commit comments