'use strict' ; import { CancellationToken , ConfigurationChangeEvent , Event , FileSystemWatcher , GlobPattern , Uri , WorkspaceConfiguration , WorkspaceFolder , WorkspaceFoldersChangeEvent } from 'vscode' ; import { Resource } from '../types' ; export const IWorkspaceService = Symbol ( 'IWorkspaceService' ) ; export interface IWorkspaceService { readonly readonly rootPath : string | undefined ; readonly readonly workspaceFolders : WorkspaceFolder [ ] | undefined ; /**
     * An event that is emitted when a workspace folder is added or removed.
     */ readonly onDidChangeWorkspaceFolders : Event < WorkspaceFoldersChangeEvent > ; /**
     * An event that is emitted when the [configuration](#WorkspaceConfiguration) changed.
     */ readonly onDidChangeConfiguration : Event < ConfigurationChangeEvent > ; type { boolean } memberof readonly hasWorkspaceFolders : boolean ; param uri return getWorkspaceFolder ( uri ) : WorkspaceFolder | undefined ; param { ( Uri | undefined ) } resource returns { string } memberof getWorkspaceFolderIdentifier ( resource , defaultValue ? ) : string ; param pathOrUri param includeWorkspaceFolder return asRelativePath ( pathOrUri , includeWorkspaceFolder ? ) : string ; param globPattern param ignoreCreateEvents param ignoreChangeEvents param ignoreDeleteEvents return createFileSystemWatcher ( globPattern , ignoreCreateEvents ? , ignoreChangeEvents ? , ignoreDeleteEvents ? ) : FileSystemWatcher ; sample param include param exclude param maxResults param token return findFiles ( include , exclude ? , maxResults ? , token ? ) : Thenable < Uri [ ] > ; param section param resource return getConfiguration ( section ? , resource ? ) : WorkspaceConfiguration ; }