V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
chenqh
V2EX  ›  Visual Studio Code

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

  •  
  •   chenqh · 2020-06-09 09:55:25 +08:00 · 1084 次点击
    这是一个创建于 1637 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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> 有了下划线,但是也没有办法点击, 应该怎么弄呢?

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3513 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:12 · PVG 19:12 · LAX 03:12 · JFK 06:12
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.