Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Only the first of several paths in the output panel can be clicked.

enter image description here

I tried to print the same path myself, but I can’t click.

enter image description here

Is this a bug or does the output need to be processed?

I found the problem with me, because I used mimetypes in package.json

"languages": [
    {
        "id": "output-test",
        "mimetypes": [
            "text/x-code-output"
        ],
        "configuration": "./language-configuration.json"
    }
],
"grammars": [
    {
        "language": "output-test",
        "scopeName": "source.text",
        "path": "./syntaxes/output-test.tmLanguage.json"
    }
],

https://github.com/microsoft/vscode/issues/586#issuecomment-758642272 Is there any solution?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
408 views
Welcome To Ask or Share your Answers For Others

1 Answer

enter image description here Printing the path in the format of vscode.Uri is clickable, although this is not what I really want. I solved this problem and need to register a DocumentLinkProvider DocumentLinkProvider

Can refer to https://github.com/93Akkord/vscode-output-link-to-file.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...