Skip to main content

Class: PassthroughIDEBase

libs/common/ide/PassthroughIDEBase.PassthroughIDEBase

Hierarchy

Implements

Constructors

constructor

new PassthroughIDEBase(original)

Parameters

NameType
originalIDE

Defined in

libs/common/ide/PassthroughIDEBase.ts:15

Properties

clipboard

clipboard: Clipboard

Implementation of

IDE.clipboard

Defined in

libs/common/ide/PassthroughIDEBase.ts:12


configuration

configuration: Configuration

Implementation of

IDE.configuration

Defined in

libs/common/ide/PassthroughIDEBase.ts:10


globalState

globalState: State

Implementation of

IDE.globalState

Defined in

libs/common/ide/PassthroughIDEBase.ts:11


messages

messages: Messages

Implementation of

IDE.messages

Defined in

libs/common/ide/PassthroughIDEBase.ts:13

Accessors

activeEditableTextEditor

get activeEditableTextEditor(): undefined | EditableTextEditor

Same as activeTextEditor but editable

Returns

undefined | EditableTextEditor

Implementation of

IDE.activeEditableTextEditor

Defined in

libs/common/ide/PassthroughIDEBase.ts:26


activeTextEditor

get activeTextEditor(): undefined | TextEditor

The currently active editor or undefined. The active editor is the one that currently has focus or, when none has focus, the one that has changed input most recently.

Returns

undefined | TextEditor

Implementation of

IDE.activeTextEditor

Defined in

libs/common/ide/PassthroughIDEBase.ts:22


assetsRoot

get assetsRoot(): string

The root directory of this shipped code. Can be used to access bundled assets.

Returns

string

Implementation of

IDE.assetsRoot

Defined in

libs/common/ide/PassthroughIDEBase.ts:34


runMode

get runMode(): RunMode

Whether we are running in development, test, or production

Returns

RunMode

Implementation of

IDE.runMode

Defined in

libs/common/ide/PassthroughIDEBase.ts:38


visibleTextEditors

get visibleTextEditors(): TextEditor[]

The currently visible editors or an empty array.

Returns

TextEditor[]

Implementation of

IDE.visibleTextEditors

Defined in

libs/common/ide/PassthroughIDEBase.ts:30


workspaceFolders

get workspaceFolders(): undefined | readonly WorkspaceFolder[]

A list of workspace folders for the currently active workspace

Returns

undefined | readonly WorkspaceFolder[]

Implementation of

IDE.workspaceFolders

Defined in

libs/common/ide/PassthroughIDEBase.ts:42

Methods

disposeOnExit

disposeOnExit(...disposables): () => void

Register disposables to be disposed of on IDE exit.

Parameters

NameType
...disposablesDisposable[]

Returns

fn

▸ (): void

Returns

void

Implementation of

IDE.disposeOnExit

Defined in

libs/common/ide/PassthroughIDEBase.ts:56


getEditableTextEditor

getEditableTextEditor(editor): EditableTextEditor

Get an editable version of the text editor.

Parameters

NameType
editorTextEditor

Returns

EditableTextEditor

Implementation of

IDE.getEditableTextEditor

Defined in

libs/common/ide/PassthroughIDEBase.ts:46


onDidChangeTextDocument

onDidChangeTextDocument(listener): Disposable

An event that is emitted when a text document is changed. This usually happens when the contents changes but also when other things like the {@link TextDocument.isDirty dirty}-state changes.

Parameters

NameType
listener(event: TextDocumentChangeEvent) => void

Returns

Disposable

Implementation of

IDE.onDidChangeTextDocument

Defined in

libs/common/ide/PassthroughIDEBase.ts:50