mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 04:53:34 +00:00
ProblemMatcher auto detects relative/absolute paths and matches VSCode LSP's owner and source. VSCode LSP updated to specify owner.
This commit is contained in:
parent
56ff9ef026
commit
995c624f57
2 changed files with 10 additions and 3 deletions
|
@ -655,24 +655,30 @@
|
||||||
"problemMatchers": [
|
"problemMatchers": [
|
||||||
{
|
{
|
||||||
"name": "rustc",
|
"name": "rustc",
|
||||||
|
"owner": "rustc",
|
||||||
|
"source": "rustc",
|
||||||
"fileLocation": [
|
"fileLocation": [
|
||||||
"relative",
|
"autoDetect",
|
||||||
"${workspaceRoot}"
|
"${workspaceRoot}"
|
||||||
],
|
],
|
||||||
"pattern": "$rustc"
|
"pattern": "$rustc"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "rustc-json",
|
"name": "rustc-json",
|
||||||
|
"owner": "rustc",
|
||||||
|
"source": "rustc",
|
||||||
"fileLocation": [
|
"fileLocation": [
|
||||||
"relative",
|
"autoDetect",
|
||||||
"${workspaceRoot}"
|
"${workspaceRoot}"
|
||||||
],
|
],
|
||||||
"pattern": "$rustc-json"
|
"pattern": "$rustc-json"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "rustc-watch",
|
"name": "rustc-watch",
|
||||||
|
"owner": "rustc",
|
||||||
|
"source": "rustc",
|
||||||
"fileLocation": [
|
"fileLocation": [
|
||||||
"relative",
|
"autoDetect",
|
||||||
"${workspaceRoot}"
|
"${workspaceRoot}"
|
||||||
],
|
],
|
||||||
"background": {
|
"background": {
|
||||||
|
|
|
@ -41,6 +41,7 @@ export function createClient(serverPath: string, cwd: string): lc.LanguageClient
|
||||||
const clientOptions: lc.LanguageClientOptions = {
|
const clientOptions: lc.LanguageClientOptions = {
|
||||||
documentSelector: [{ scheme: 'file', language: 'rust' }],
|
documentSelector: [{ scheme: 'file', language: 'rust' }],
|
||||||
initializationOptions: vscode.workspace.getConfiguration("rust-analyzer"),
|
initializationOptions: vscode.workspace.getConfiguration("rust-analyzer"),
|
||||||
|
diagnosticCollectionName: "rustc",
|
||||||
traceOutputChannel,
|
traceOutputChannel,
|
||||||
middleware: {
|
middleware: {
|
||||||
// Workaround for https://github.com/microsoft/vscode-languageserver-node/issues/576
|
// Workaround for https://github.com/microsoft/vscode-languageserver-node/issues/576
|
||||||
|
|
Loading…
Reference in a new issue