MCPcopy Create free account
hub / github.com/Auto-Plugin/milkup / initSourceViewMode

Method initSourceViewMode

src/core/nodeviews/code-block.ts:743–748  ·  view source on GitHub ↗

* 初始化源码模式

(language: string)

Source from the content-addressed store, hash-verified

741 * 初始化源码模式
742 */
743 private initSourceViewMode(language: string): void {
744 // 订阅源码模式状态变化
745 this.sourceViewUnsubscribe = sourceViewManager.subscribe((sourceView) => {
746 this.setSourceViewMode(sourceView);
747 });
748 }
749
750 /**
751 * 设置源码模式

Callers 1

constructorMethod · 0.95

Calls 2

setSourceViewModeMethod · 0.95
subscribeMethod · 0.80

Tested by

no test coverage detected