rust/editors/code/src
Aleksey Kladov 5bbfea03cc fix: in VSCode, correctly resolve relative paths to errors
VS Code problem matcher are restricted to be static "regexes". You can't
create a problem matcher dynamically, and you can't use custom code in
lieu of problem matcher.

This creates a problem for rust/cargo compiler errors. They use paths
relative to the root of the Cargo workspace, but VS Code doesn't
necessary know where that root is.

Luckily, there's a way out: our current problem matcher is defined like
this:

    "fileLocation": [ "autoDetect", "${workspaceRoot}" ],

That means that relative pahts would be resoleved relative to workspace
root. VS Code allows to specify a command inside `${}`. So we can plug
custom logic there to fetch Cargo's workspace root!

And that's exactly what this PR is doing!
2022-10-08 23:25:13 +01:00
..
ast_inspector.ts automate braceless return substitution for long lines 2022-05-17 18:31:51 +01:00
client.ts Move empty diagnostics workaround back into the server 2022-08-28 11:54:46 +02:00
commands.ts fix: in VSCode, correctly resolve relative paths to errors 2022-10-08 23:25:13 +01:00
config.ts Auto merge of #13087 - Veykril:config-update, r=Veykril 2022-08-26 16:22:57 +00:00
ctx.ts fix: in VSCode, correctly resolve relative paths to errors 2022-10-08 23:25:13 +01:00
debug.ts Update remaining GitHub URLs 2022-07-08 15:44:49 +02:00
lsp_ext.ts Implement lsp extension for cancelling running flychecks 2022-08-19 08:54:53 +02:00
main.ts fix: in VSCode, correctly resolve relative paths to errors 2022-10-08 23:25:13 +01:00
persistent_state.ts prettier run 2022-05-17 18:15:06 +01:00
run.ts fix: in VSCode, correctly resolve relative paths to errors 2022-10-08 23:25:13 +01:00
snippets.ts automate braceless return substitution for long lines 2022-05-17 18:31:51 +01:00
tasks.ts fix: in VSCode, correctly resolve relative paths to errors 2022-10-08 23:25:13 +01:00
toolchain.ts fix: a bunch of typos 2022-08-17 21:44:58 +08:00
util.ts prettier run 2022-05-17 18:15:06 +01:00