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

Method getLineNumbersExtension

src/code_view.ts:847–853  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

845 }
846
847 getLineNumbersExtension(): Extension {
848 const plugin = this.getPlugin();
849 if (plugin && plugin.settings && plugin.settings.showLineNumbers) {
850 return [lineNumbers(), highlightActiveLineGutter()];
851 }
852 return [];
853 }
854
855 getFontSizeExtension(): Extension {
856 // 使用 EditorView.theme 统一设置所有元素的字体大小和行高

Callers 2

refreshSettingsMethod · 0.95
initCodeMirrorMethod · 0.95

Calls 1

getPluginMethod · 0.95

Tested by

no test coverage detected