feat: 2.20 support Vue src/router tree doc | 支持 Vue 路由标题文件树注释

This commit is contained in:
林万程
2025-01-29 22:25:17 +08:00
parent 035d8d590a
commit 49147b0e7b
23 changed files with 444 additions and 106 deletions

View File

@@ -3,4 +3,8 @@
<editor.linePainter implementation="io.github.linwancen.plugin.show.lang.JsLangDoc"/>
<editor.linePainter implementation="io.github.linwancen.plugin.show.lang.HtmlLangDoc"/>
</extensions>
<extensions defaultExtensionNs="io.github.linwancen.show-comment">
<fileLoader implementation="io.github.linwancen.plugin.show.lang.vue.VueRouterCache"/>
</extensions>
</idea-plugin>

View File

@@ -12,7 +12,7 @@ Show doc comment in the Project view Tree, line End, json, other
<ul>
<li>Java, Kotlin, Groovy, Scala
<li>C/C++/OC, Python, Go, Rust, Ruby
<li>JS/TS, PHP, SQL
<li>HTML(Vue), JS/TS, PHP, SQL
<li>YAML/yml
</ul>
@@ -145,23 +145,30 @@ Show doc comment in the Project view Tree, line End, json, other
</extensions>
<applicationListeners>
<listener class="io.github.linwancen.plugin.show.ext.conf.listener.ConfFileListener"
<listener class="io.github.linwancen.plugin.show.ext.listener.FileOptListener"
topic="com.intellij.openapi.vfs.newvfs.BulkFileListener"/>
<listener class="io.github.linwancen.plugin.show.ext.conf.listener.ConfFileChangeListener"
<listener class="io.github.linwancen.plugin.show.ext.listener.FileSelectChangeListener"
topic="com.intellij.openapi.fileEditor.FileEditorManagerListener"/>
<listener class="io.github.linwancen.plugin.show.cache.CacheUpdateEditorListener"
topic="com.intellij.openapi.fileEditor.FileEditorManagerListener"/>
</applicationListeners>
<projectListeners>
<listener class="io.github.linwancen.plugin.show.ext.conf.listener.ConfFileInitListener"
<listener class="io.github.linwancen.plugin.show.ext.listener.FileLoadInitListener"
topic="com.intellij.openapi.project.ProjectManagerListener"/>
<listener class="io.github.linwancen.plugin.show.ext.conf.listener.ConfFileInitListener"
<listener class="io.github.linwancen.plugin.show.ext.listener.FileLoadInitListener"
topic="com.intellij.openapi.project.DumbService$DumbModeListener"/>
<listener class="io.github.linwancen.plugin.show.cache.CacheUpdateProjectListener"
topic="com.intellij.openapi.project.ProjectManagerListener"/>
</projectListeners>
<extensionPoints>
<extensionPoint name="fileLoader" dynamic="true" interface="io.github.linwancen.plugin.show.ext.listener.FileLoader"/>
</extensionPoints>
<extensions defaultExtensionNs="io.github.linwancen.show-comment">
<fileLoader implementation="io.github.linwancen.plugin.show.ext.conf.ConfCache"/>
</extensions>
<extensions defaultExtensionNs="com.intellij">
<editor.linePainter implementation="io.github.linwancen.plugin.show.LineEnd"/>
<projectViewNodeDecorator implementation="io.github.linwancen.plugin.show.Tree"/>
@@ -189,13 +196,13 @@ Show doc comment in the Project view Tree, line End, json, other
<actions>
<action
id="io.github.linwancen.plugin.show.ext.conf.ReLoadExtDocAction"
class="io.github.linwancen.plugin.show.ext.conf.action.ReloadExtDocAction"
class="io.github.linwancen.plugin.show.ext.action.ReloadExtDocAction"
text="🔄 // Reload External Comment">
<add-to-group group-id="ToolsMenu"/>
</action>
<action
id="io.github.linwancen.plugin.show.ext.conf.action.ResetExtDocAction"
class="io.github.linwancen.plugin.show.ext.conf.action.ResetExtDocAction"
id="io.github.linwancen.plugin.show.ext.action.ResetExtDocAction"
class="io.github.linwancen.plugin.show.ext.action.ResetExtDocAction"
text="🆑 // Clear External Comment">
<add-to-group group-id="ToolsMenu"/>
</action>

View File

@@ -45,4 +45,7 @@ reload.ext.doc=\uD83D\uDD04 // Reload External Comment
reset.ext.doc=\uD83C\uDD91 // Clear External Comment
line.end.add=// Add Line Comment
line.end.copy=// Copy With Line Comment
load.vue.router=Load Vue Router
reload.vue.router=\uD83D\uDD04 Reload Vue Router
reset.vue.router=\uD83C\uDD91 Clear Vue Router
copy.class.method.or.file.line=Copy Class.Method / File:LineNum

View File

@@ -45,4 +45,7 @@ reload.ext.doc=\uD83D\uDD04 // \u91CD\u65B0\u8BFB\u53D6\u5916\u90E8\u6CE8\u91CA
reset.ext.doc=\uD83C\uDD91 // \u6E05\u7406\u5916\u90E8\u6CE8\u91CA
line.end.add=// \u6DFB\u52A0\u81EA\u52A8\u6CE8\u91CA
line.end.copy=// \u590D\u5236 \u5E26\u81EA\u52A8\u6CE8\u91CA
load.vue.router=\u8BFB\u53D6 Vue Router
reload.vue.router=\uD83D\uDD04 \u91CD\u65B0\u8BFB\u53D6 Vue \u8DEF\u7531
reset.vue.router=\uD83C\uDD91 \u6E05\u7406 Vue \u8DEF\u7531
copy.class.method.or.file.line=\u590D\u5236 \u7C7B.\u65B9\u6CD5 / \u6587\u4EF6:\u884C\u53F7