diff options
| author | bors <bors@rust-lang.org> | 2022-08-28 09:56:06 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-08-28 09:56:06 +0000 |
| commit | e8e598f6415461e7fe957eec1bee6afb55927d59 (patch) | |
| tree | 4f43ec34a34101bc783e89af2d0b9379ded171a4 /editors/code/src | |
| parent | 6bea872edd9523a06213270f68725c9fe33f3919 (diff) | |
| parent | 9ad0a8c4673059c22d2f55e14b8ee05f47237f80 (diff) | |
| download | rust-e8e598f6415461e7fe957eec1bee6afb55927d59.tar.gz rust-e8e598f6415461e7fe957eec1bee6afb55927d59.zip | |
Auto merge of #13133 - Veykril:diag-hack, r=Veykril
Move empty diagnostics workaround back into the server This only touches on the diagnostics in one place instead of multiple as was previously done, since all published diagnostics will go through this code path anyways. Closes https://github.com/rust-lang/rust-analyzer/issues/13130
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/client.ts | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index 719d2734643..05d4d08f70b 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts @@ -99,22 +99,6 @@ export async function createClient( traceOutputChannel: traceOutputChannel(), outputChannel: outputChannel(), middleware: { - async handleDiagnostics(uri, diagnostics, next) { - // Workaround for https://github.com/microsoft/vscode/issues/155531 - for (const diagnostic of diagnostics) { - if (!diagnostic.message) { - diagnostic.message = " "; - } - if (diagnostic.relatedInformation) { - for (const relatedInformation of diagnostic.relatedInformation) { - if (!relatedInformation.message) { - relatedInformation.message = " "; - } - } - } - } - next(uri, diagnostics); - }, async provideHover( document: vscode.TextDocument, position: vscode.Position, |
