vscode icon indicating copy to clipboard operation
vscode copied to clipboard

Ambiguous unicode character decoration shows in settings.json but doesn't explain on hover

Open Tyriar opened this issue 3 years ago • 1 comments

image

  "terminal.integrated.wordSeparators": " ()[]{}',\"─‘’",

The decoration doesn't show up all the time 🤷

image

Tyriar avatar Dec 08 '22 15:12 Tyriar

Are you sure it is the same text in both cases?

I get highlighing here:

"terminal.integrated.wordSeparators": " ()[]{}',\"-‘’",

But not here:

"terminal.integrated.wordSeparators": " ()[]{}',\"─‘’",

The reason is that the system does not now that is confusable with an ASCII character (-). This is because the unicode confusable data is not very reliable (but we never claimed that this heuristic we use is safe - in untrusted workspaces both cases should be highlighted though, but there we highlight every non-ASCII character)

hediet avatar Dec 08 '22 15:12 hediet