diff options
| author | Lukas Wirth <lukastw97@gmail.com> | 2023-01-10 09:43:08 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-01-10 09:43:08 +0100 |
| commit | 4267b11c4097b52ec59323c29709a8d06ed7b4cd (patch) | |
| tree | 16d48ed672fe38bd3701d1996392fb3f11eef3a4 /editors/code/src | |
| parent | 368e0bb32f1178cf162c2ce5f7e10b7ae211eb26 (diff) | |
| download | rust-4267b11c4097b52ec59323c29709a8d06ed7b4cd.tar.gz rust-4267b11c4097b52ec59323c29709a8d06ed7b4cd.zip | |
Revert "Use ZWNJ to prevent VSCode from forming ligatures between hints and code"
Diffstat (limited to 'editors/code/src')
| -rw-r--r-- | editors/code/src/client.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/editors/code/src/client.ts b/editors/code/src/client.ts index 82cdf0390ac..1fbe9d4ea03 100644 --- a/editors/code/src/client.ts +++ b/editors/code/src/client.ts @@ -102,24 +102,6 @@ export async function createClient( } }, }, - async provideInlayHints(document, viewPort, token, next) { - const inlays = await next(document, viewPort, token); - if (!inlays) { - return inlays; - } - // U+200C is a zero-width non-joiner to prevent the editor from forming a ligature - // between code and hints - for (const inlay of inlays) { - if (typeof inlay.label === "string") { - inlay.label = `\u{200c}${inlay.label}\u{200c}`; - } else if (Array.isArray(inlay.label)) { - for (const it of inlay.label) { - it.value = `\u{200c}${it.value}\u{200c}`; - } - } - } - return inlays; - }, async handleDiagnostics( uri: vscode.Uri, diagnosticList: vscode.Diagnostic[], |
