Skip to content

Commit 6e89e77

Browse files
committed
Auto merge of rust-lang#13923 - rust-lang:revert-13886-inlay-ligatures, r=lnicola
Revert "Use ZWNJ to prevent VSCode from forming ligatures between hints and code" Doesn't actually seem to fix the bug, it seems to be theme dependent and I am not sure what causes it Reverts rust-lang/rust-analyzer#13886
2 parents 8eb7522 + 4267b11 commit 6e89e77

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

editors/code/src/client.ts

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,6 @@ export async function createClient(
102102
}
103103
},
104104
},
105-
async provideInlayHints(document, viewPort, token, next) {
106-
const inlays = await next(document, viewPort, token);
107-
if (!inlays) {
108-
return inlays;
109-
}
110-
// U+200C is a zero-width non-joiner to prevent the editor from forming a ligature
111-
// between code and hints
112-
for (const inlay of inlays) {
113-
if (typeof inlay.label === "string") {
114-
inlay.label = `\u{200c}${inlay.label}\u{200c}`;
115-
} else if (Array.isArray(inlay.label)) {
116-
for (const it of inlay.label) {
117-
it.value = `\u{200c}${it.value}\u{200c}`;
118-
}
119-
}
120-
}
121-
return inlays;
122-
},
123105
async handleDiagnostics(
124106
uri: vscode.Uri,
125107
diagnosticList: vscode.Diagnostic[],

0 commit comments

Comments
 (0)