()
| 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(); |
no outgoing calls
no test coverage detected