-
Notifications
You must be signed in to change notification settings - Fork 34.1k
Open
Labels
new releaseIssues found in a recent release of VS CodeIssues found in a recent release of VS Codeterminal-links
Description
Does this issue occur when all extensions are disabled?: Yes, I confirm that I can still reproduce the problem.
- VS Code Version: 1.102.3
- OS Version: macOS Sequoia 15.5
Steps to Reproduce:
123456789
123456789
- Create a text file with the content above.
- Create an extension with the content below.
- Debug the extension.
- Open the text file from step 1.
- Hover and see that the tooltip shows only one backslash instead of two... 🤔
- I can also reproduce this problem in Monaco. See here.

import * as vscode from 'vscode';
export function activate(context: vscode.ExtensionContext) {
context.subscriptions.push(vscode.languages.registerDocumentLinkProvider("plaintext", {
provideDocumentLinks: () => {
return [
{
target: vscode.Uri.parse("file:///tmp/hello.txt"),
tooltip: "\\\\a\\\\b\\\\c",
range: new vscode.Range(1, 0, 1, 5),
}
];
}
}));
}
Metadata
Metadata
Assignees
Labels
new releaseIssues found in a recent release of VS CodeIssues found in a recent release of VS Codeterminal-links