@kkdev92/vscode-ext-kit - v7.1.0
    Preparing search index...

    Interface FakeWorkspace

    Workspace folders a test arranges.

    interface FakeWorkspace {
        _setFolders(folders: readonly FakeWorkspaceFolder[]): void;
        folderOf(uri: ResourceUri): WorkspaceFolderLike | undefined;
        folders(): readonly WorkspaceFolderLike[];
        onDidChangeFolders(listener: () => void): PlatformRegistration;
        relativePath(uri: WatchedUri, includeFolderName?: boolean): string;
    }

    Hierarchy

    • WorkspaceCapability
      • FakeWorkspace
    Index
    • uri relative to the folder it is in, with / between segments.

      A resource in no folder comes back as its file system path. A folder itself is looked up from the directory it sits in, so it is named relative to a folder around that directory, or comes back as its file system path when there is none.

      Parameters

      • uri: WatchedUri
      • OptionalincludeFolderName: boolean

        Start with the folder's name. When omitted, it does exactly when more than one folder is open.

      Returns string