Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace workspace

The logical workspace that the extension is running in, which may consist of multiple folders, projects, and repositories.

Index

Variables

Const onDidChangeRoots

onDidChangeRoots: Subscribable<void>

An event that is fired when a workspace root is added or removed from the workspace.

deprecated

Renamed to {@link workspace.rootsChanges}.

Const onDidOpenTextDocument

onDidOpenTextDocument: Subscribable<TextDocument>

An event that is fired when a new text document is opened.

deprecated

Renamed to workspace.openedTextDocuments.

Const openedTextDocuments

openedTextDocuments: Subscribable<TextDocument>

An event that is fired when a new text document is opened.

Const rootChanges

rootChanges: Subscribable<void>

An event that is fired when a workspace root is added or removed from the workspace.

Const roots

roots: keyof WorkspaceRoot[]

The root directories of the workspace, if any.

example

The repository that is currently being viewed is a root.

todo

Currently only a single root is supported.

readonly

Const textDocuments

textDocuments: TextDocument[]

All text documents currently known to the system.

readonly

Const versionContext

versionContext: string | undefined

The current version context of the workspace, if any.

A version context is a set of repositories and revisions on a Sourcegraph instance. when set, extensions use it to scope search queries, code intelligence actions, etc.

See more information at http://docs.sourcegraph.com/user/search#version-contexts.

Const versionContextChanges

versionContextChanges: Subscribable<string | undefined>

An event that is fired when a workspace's version context changes.

Generated using TypeDoc