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

Method refreshSettings

src/code_view.ts:877–888  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

875
876 // 供外部调用的刷新方法
877 refreshSettings() {
878 const plugin = this.getPlugin();
879 if (plugin && plugin.settings) {
880 this.fontSize = plugin.settings.editorFontSize || 16;
881 }
882 this.editorView.dispatch({
883 effects: [
884 this.lineNumbersCompartment.reconfigure(this.getLineNumbersExtension()),
885 this.fontSizeCompartment.reconfigure(this.getFontSizeExtension())
886 ]
887 });
888 }
889
890 // 切换搜索面板(供命令调用)
891 toggleSearchPanel() {

Callers 1

saveSettingsMethod · 0.80

Calls 3

getPluginMethod · 0.95
getFontSizeExtensionMethod · 0.95

Tested by

no test coverage detected