UNPKG

887 BTypeScriptView Raw
1import URI from '../common/uri';
2import { MaybePromise, SelectionService } from '../common';
3import { EnvVariablesServer } from '../common/env-variables';
4export declare class UserWorkingDirectoryProvider {
5 protected readonly selectionService: SelectionService;
6 protected readonly envVariables: EnvVariablesServer;
7 /**
8 * @returns A {@link URI} that represents a good guess about the directory in which the user is currently operating.
9 *
10 * Factors considered may include the current widget, current selection, user home directory, or other application state.
11 */
12 getUserWorkingDir(): Promise<URI>;
13 protected getFromSelection(): MaybePromise<URI | undefined>;
14 protected getFromUserHome(): MaybePromise<URI>;
15 protected ensureIsDirectory(uri?: URI): MaybePromise<URI | undefined>;
16}
17//# sourceMappingURL=user-working-directory-provider.d.ts.map
\No newline at end of file