editorAPI
MS Code Extension API / core/extensionAPI/modules/window/editorAPI
core/extensionAPI/modules/window/editorAPI
Functions
createEditorAPI()
createEditorAPI():
object
Defined in: core/extensionAPI/modules/window/editorAPI.ts:9
Factory function to create the Editor API. Allows extensions to interact with the active document and its metadata.
Returns
getActiveEditor
getActiveEditor: () => {
document: {fileName:string;languageId:any;uri:any; }; } |null
Retrieves the currently active editor instance and its document details.
Returns
{ document: { fileName: string; languageId: any; uri: any; }; } | null
An object containing document metadata (uri, languageId, fileName), or null if no editor is active.