Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editor.unicodeHighlight.ambiguousCharacters and editor.unicodeHighlight.invisibleCharacters do not correctly work only when opening VSCode #233503

Open
adusamr opened this issue Nov 9, 2024 · 1 comment
Assignees

Comments

@adusamr
Copy link

adusamr commented Nov 9, 2024

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.95.2 (user setup)
  • OS Version: Windows_NT x64 10.0.22631

Steps to Reproduce:

  1. Copy and paste below text and save it as test.md (they are not usual ASCII characters)
ABC DEF
  1. Close VSCode while opening test.md
  2. Open VSCode, then you see ABC DEF is highlighted
  3. Close 'test.md' (don't close VSCode) and reopen test.md
  4. ABC DEF highlight disappears

defaultSettings.json is like this:

{
	"editor.unicodeHighlight.ambiguousCharacters": true,
	"editor.unicodeHighlight.invisibleCharacters": true,
	"[markdown]":  {
		"editor.unicodeHighlight.ambiguousCharacters": false,
		"editor.unicodeHighlight.invisibleCharacters": false,
	}
}

ABCDEF are ambiguous characters and the space   is invisible character.
So in .md file, ABC DEF should not be highlighted.

I posted another issue microsoft/vscode-docs#7773 regarding overwriting these settings in user settings. I don't know it is relating to this issue.

@adusamr adusamr changed the title editor.unicodeHighlight.ambiguousCharacters and editor.unicodeHighlight.invisibleCharacters does not correctly work only when opening VSCode editor.unicodeHighlight.ambiguousCharacters and editor.unicodeHighlight.invisibleCharacters do not correctly work only when opening VSCode Nov 9, 2024
@RedCMD
Copy link
Contributor

RedCMD commented Nov 9, 2024

related #231224

@sandy081 sandy081 assigned mjbvz and unassigned rzhao271 and sandy081 Nov 12, 2024
@mjbvz mjbvz assigned hediet and unassigned mjbvz Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants