Skip to content

Opening multiple files simultaneously with line/col options only applies to last file  #58023

@johnnytemp

Description

@johnnytemp
  • VSCode Version: 1.26.1
  • OS Version: macOS

I'm one contributor of the extension "Open file" (by Frank Stuetzer).
The plug in allow open multiple files by selecting multiple lines like:

file1:line:column
file2:line:column

However, only the last opened file jump to the right position. It's using core option (showTextDocument's options.selection) so the bug is in vscode side. (Better fix this also for other tools' future use)

Steps to Reproduce:

  1. Install extension (by Frank Stuetzer)
  2. Paste the above lines with real existent files (and line & column numbers), and select two lines.
  3. Press Alt+P to jump to both files.
  4. Only one currently focused file has the right text-cursor position.

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

Metadata

Metadata

Assignees

Labels

*out-of-scopePosted issue is not in scope of VS CodebugIssue identified by VS Code Team member as probable bugextensionsIssues concerning extensionsworkbench-editorsManaging of editor widgets in workbench window

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions