MCPcopy Create free account
hub / github.com/UNLINEARITY/Obsidian-CodeSpace / updateOutline

Method updateOutline

src/main.ts:611–619  ·  view source on GitHub ↗
(file: import("obsidian").TFile, content?: string)

Source from the content-addressed store, hash-verified

609 }
610
611 async updateOutline(file: import("obsidian").TFile, content?: string) {
612 const outlineLeaves = this.app.workspace.getLeavesOfType(VIEW_TYPE_CODE_OUTLINE);
613 if (outlineLeaves.length > 0) {
614 const view = outlineLeaves[0]!.view;
615 if (view instanceof CodeOutlineView) {
616 await view.updateSymbols(file, content);
617 }
618 }
619 }
620
621 createCodeFile() {
622 // Determine base path based on settings

Callers 3

openManagedFileMethod · 0.95
saveMethod · 0.80
openFileMethod · 0.80

Calls 1

updateSymbolsMethod · 0.80

Tested by

no test coverage detected