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

Method destroy

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

* 销毁

()

Source from the content-addressed store, hash-verified

1859 * 销毁
1860 */
1861 destroy(): void {
1862 this.cm.destroy();
1863 if (this.mermaidPreview) {
1864 this.mermaidPreview.remove();
1865 }
1866 if (this.themeObserver) {
1867 this.themeObserver.disconnect();
1868 this.themeObserver = null;
1869 }
1870 this.hideContextMenu();
1871 // 取消订阅源码模式状态
1872 if (this.sourceViewUnsubscribe) {
1873 this.sourceViewUnsubscribe();
1874 this.sourceViewUnsubscribe = null;
1875 }
1876 }
1877}
1878
1879/**

Callers

nothing calls this directly

Calls 1

hideContextMenuMethod · 0.95

Tested by

no test coverage detected