Class: FakeIDE
libs/common/ide/fake/FakeIDE.FakeIDE
Implements
Constructors
constructor
• new FakeIDE()
Defined in
libs/common/ide/fake/FakeIDE.ts:22
Properties
assetsRoot_
• Private
assetsRoot_: undefined
| string
Defined in
libs/common/ide/fake/FakeIDE.ts:29
clipboard
• clipboard: FakeClipboard
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:19
configuration
• configuration: FakeConfiguration
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:16
disposables
• Private
disposables: Disposable
[] = []
Defined in
libs/common/ide/fake/FakeIDE.ts:20
globalState
• globalState: FakeGlobalState
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:18
messages
• messages: FakeMessages
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:17
runMode
• runMode: RunMode
= "test"
Whether we are running in development, test, or production
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:43
workspaceFolders
• workspaceFolders: undefined
| readonly WorkspaceFolder
[] = undefined
A list of workspace folders for the currently active workspace
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:44
Accessors
activeEditableTextEditor
• get
activeEditableTextEditor(): undefined
| EditableTextEditor
Same as activeTextEditor but editable
Returns
undefined
| EditableTextEditor
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:50
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
Defined in
libs/common/ide/fake/FakeIDE.ts:46
assetsRoot
• get
assetsRoot(): string
The root directory of this shipped code. Can be used to access bundled assets.
Returns
string
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:35
visibleTextEditors
• get
visibleTextEditors(): TextEditor
[]
The currently visible editors or an empty array.
Returns
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:54
Methods
disposeOnExit
▸ disposeOnExit(...disposables
): () => void
Register disposables to be disposed of on IDE exit.
Parameters
Name | Type |
---|---|
...disposables | Disposable [] |
Returns
fn
▸ (): void
Returns
void
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:68
exit
▸ exit(): void
Returns
void
Defined in
libs/common/ide/fake/FakeIDE.ts:74
getEditableTextEditor
▸ getEditableTextEditor(_editor
): EditableTextEditor
Get an editable version of the text editor.
Parameters
Name | Type |
---|---|
_editor | TextEditor |
Returns
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:58
mockAssetsRoot
▸ mockAssetsRoot(_assetsRoot
): void
Parameters
Name | Type |
---|---|
_assetsRoot | string |
Returns
void
Defined in
libs/common/ide/fake/FakeIDE.ts:31
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
Name | Type |
---|---|
_listener | (event : TextDocumentChangeEvent ) => void |
Returns
Implementation of
Defined in
libs/common/ide/fake/FakeIDE.ts:62