簡體   English   中英

如何找到內置問題匹配器的定義?

[英]How to find the built-in problem matchers' definitions?

根據https://code.visualstudio.com/docs/editor/tasks ,可能有很多內置的問題匹配器。 例如:

"label": "build",
"type": "shell",
"command": "make",
"problemMatcher": [ "$gcc", "$msCompile" ],
"group": "build"

我的問題

如何找到 $gcc 和 $msCompile 的定義?

根據@rioV8 的評論,我搜索了安裝了內置擴展的目錄(Linux 上的/usr/share/code/resources/app/extensions )以package.json文件,其中包含一個條目problemMatchers 這些是我找到的:

擴展vscode.less :“Less 語言基礎”

  • lessc : label "Lessc 編譯器"

擴展vscode.typescript-language-features :“TypeScript 和 JavaScript 語言功能”

問題匹配器:

  • tsc : label "%typescript.problemMatchers.tsc.label%" –?

  • tsc-watch : label "%typescript.problemMatchers.tscWatch.label%" –?

問題模式:

  • tsc

擴展vscode.cpp :“C/C++ 語言基礎”

問題匹配器:

  • nvcc : 沒有 label

問題模式:

  • nvcc-location

擴展vscode.scss :“SCSS 語言基礎”

  • node-sass薩斯:label“節點 Sass 編譯器”

奇怪的是,這個列表與處理任務 output 下的列表完全不同,文檔中有問題匹配器 我找不到列出的大多數,我找到了一個沒有。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM