Path: blob/main/src/vs/platform/files/node/watcher/nodejs/nodejsClient.ts
3296 views
/*---------------------------------------------------------------------------------------------1* Copyright (c) Microsoft Corporation. All rights reserved.2* Licensed under the MIT License. See License.txt in the project root for license information.3*--------------------------------------------------------------------------------------------*/45import { DisposableStore } from '../../../../../base/common/lifecycle.js';6import { IFileChange } from '../../../common/files.js';7import { ILogMessage, AbstractNonRecursiveWatcherClient, INonRecursiveWatcher } from '../../../common/watcher.js';8import { NodeJSWatcher } from './nodejsWatcher.js';910export class NodeJSWatcherClient extends AbstractNonRecursiveWatcherClient {1112constructor(13onFileChanges: (changes: IFileChange[]) => void,14onLogMessage: (msg: ILogMessage) => void,15verboseLogging: boolean16) {17super(onFileChanges, onLogMessage, verboseLogging);1819this.init();20}2122protected override createWatcher(disposables: DisposableStore): INonRecursiveWatcher {23return disposables.add(new NodeJSWatcher(undefined /* no recursive watching support here */)) satisfies INonRecursiveWatcher;24}25}262728