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

VS Code 1.85.1 jumps into wrong file line from Search menu #201275

Closed
MikrMikr opened this issue Dec 20, 2023 · 2 comments
Closed

VS Code 1.85.1 jumps into wrong file line from Search menu #201275

MikrMikr opened this issue Dec 20, 2023 · 2 comments
Assignees

Comments

@MikrMikr
Copy link

MikrMikr commented Dec 20, 2023

Type: Bug

Working with Cisco .cfg configuration export files.
The linux "file" command reports the file as: ASCII text, with CRLF, CR line terminators.
VSCode reports the file as UTF-8 CRLF.
Notepad++ shows every line in a file ends with CRCRLF.
The issue goes away if I change the line endings with a command.

Steps to reproduce:

  1. Get a file with CRCRLF line endings.
  2. Search for string in Search menu
  3. Click on Search results in any file
  4. Code will jump into wrong line most of the time
  5. After closing and opening that file in editor and cliking again will solve the problem for that file only

Looks the same as #32547

VS Code version: Code 1.85.1 (0ee08df, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.19042

@MikrMikr
Copy link
Author

relevant? -> #127 (comment)

@andreamah
Copy link
Contributor

relevant? -> #127 (comment)

Yes, it seems that, according to that comment, we don't support mixed line endings, at least for find/search. I would prefer that the find functionality support this before search does.

@andreamah andreamah closed this as not planned Won't fix, can't repro, duplicate, stale Jan 15, 2024
@microsoft microsoft locked and limited conversation to collaborators Jun 11, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants