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

Method getPlugin

src/code_view.ts:827–831  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

825 // 重写 getViewData,确保返回最新的内容
826
827 getPlugin(): CodeSpacePlugin {
828 // Access internal Obsidian API with type assertion
829 type AppWithPlugins = App & { plugins: { getPlugin(id: string): CodeSpacePlugin } };
830 return (this.app as unknown as AppWithPlugins).plugins.getPlugin("code-space");
831 }
832
833 getLanguageExtension() {
834 const ext = this.file?.extension.toLowerCase();

Callers 10

refreshSettingsMethod · 0.95
initEditorMethod · 0.95
initCodeMirrorMethod · 0.95
canAcceptExtensionMethod · 0.80
saveMethod · 0.80
onOpenMethod · 0.80
getManagedExtensionsMethod · 0.80
renderMethod · 0.80
openFileMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected