vscode output channel 里面 path 如何可以点击呢

2020-06-09 09:55:25 +08:00
 chenqh

outputchannel 的一部分内容

./cqh_file_watcher/__main__.py:6:1: E303 too many blank lines (4)

我想让 ./cqh_file_watcher/__main__.py:6:1: 这一部分可以点击,

这个 outputchannel 应用的 language 是


<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
    <dict>
        <key>scopeName</key>
        <string>file-watcher.output</string>
        <key>name</key>
        <string>file-watcher-output</string>
        <key>patterns</key>
        <array>
            <dict>
                <key>captures</key>
                <dict>
                    <key>1</key>
                    <dict>
                        <key>name</key>
                        <string>token.info-token</string>
                    </dict>
                     <key>2</key>
                    <dict>
                        <key>name</key>
                        <string>token.info-token</string>
                    </dict>
                </dict>
                <key>match</key>
                <string>(\[onFolderChange\]).*(\".+\")</string>
                <key>name</key>
                <string>file-watcher.folderChange</string>
            </dict>
            <dict>
                <key>captures</key>
                <dict>
                    <key>1</key>
                    <dict>
                        <key>name</key>
                        <string>token.info-token</string>
                    </dict>
                    <key>2</key>
                    <dict>
                        <key>name</key>
                        <string>token.info-token</string>
                    </dict>
                </dict>
                <key>match</key>
                <string>(\[onFileChange\]).*(\".+\")</string>
                <key>name</key>
                <string>file-watcher.fileChange</string>
            </dict>
            <dict>
                <key>captures</key>
                <dict>
                    <key>1</key>
                    <dict>
                        <key>name</key>
                        <string>token.warn-token</string>
                    </dict>
                    <key>2</key>
                    <dict>
                        <key>name</key>
                        <string>token.warn-token</string>
                    </dict>
                </dict>
                <key>match</key>
                <string>(\[cmd\])(.*)</string>
                <key>name</key>
                <string>file-watcher.cmd</string>
            </dict>
            <dict>
                <key>match</key>
                <string>\[(?i:(Down|Error|Failure|Fail|Fatal))\]</string>
                <key>name</key>
                <string>token.error-token</string>
            </dict>
             <dict>
                <!-- Generic URI/URL -->
                <key>match</key>
                <string>\b(?i:([a-z]|[0-9])+\:((\/\/)|((\/\/)?(\S)))+)</string>
                <key>name</key>
                <string>storage</string>
            </dict>
            <dict>
            <!-- file link -->
            <key>match</key>
                <string>(.*\/.*\:\d+\:\d+)</string>
                <key>name</key>
                <string>meta.link.inet.markdown</string>
            </dict>
        </array>
    </dict>
</plist>

这一部分

<key>match</key>
                <string>(.*\/.*\:\d+\:\d+)</string>
                <key>name</key>
                <string>meta.link.inet.markdown</string>
            </dict>

匹配到了 path,但是 还是无法点击, 把 <string>meta.link.inet.markdown</string> 改成 <string>markup.underline</string> 有了下划线,但是也没有办法点击, 应该怎么弄呢?

1079 次点击
所在节点    Visual Studio Code
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/679887

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX