Module: libs/cursorless-engine/singletons/ide.singleton
Functions
ide
▸ ide(): IDE
Gets the singleton used to interact with the IDE.
throws
Error if the IDE hasn't been injected yet. Can avoid this by
constructing your objects lazily
Returns
The IDE object
Defined in
libs/cursorless-engine/singletons/ide.singleton.ts:24
injectIde
▸ injectIde(ide
): void
Injects an IDE object that can be used to interact with the IDE. This function should only be called from a select few places, eg extension activation or when mocking a test.
Parameters
Name | Type | Description |
---|---|---|
ide | undefined | IDE | The ide to inject |
Returns
void
Defined in
libs/cursorless-engine/singletons/ide.singleton.ts:14