sublimehq / sublime_text

Issue tracker for Sublime Text
https://www.sublimetext.com
801 stars 35 forks source link

SublimeText 4 - "Open with" and double click on a file open 2 different SublimeText windows #4566

Open etimau opened 3 years ago

etimau commented 3 years ago

Description

Sorry if this issue has already been submited (I did not find it in the Issues list).

When I open a file by right-clicking it and select "Open with Sublime Text", the file is opened in a Sublime Text window, which is what I was expecting. But if, after that, I double click a file that is associated with Sublime Text (.php for example), it opens in another window instead of in a tab of the actual Sublime Text window. If I do this in the reverse order (double click on a file first, then right click > Open with Sublime Text), the result is the same: I end up with 2 Sublime Text windows...

Steps to reproduce

  1. Close all Sublime Text windows
  2. Double click on a file associated with Sublime Text
  3. Right click on a file and select "Open with Sublime Text"

(Step 2 and 3 can be reversed)

Expected behavior

The two files should open in 2 Sublime Text tabs, in the same window.

Actual behavior

The two files open in two separate Sublime Text windows.

Environment

BenjaminSchaaf commented 3 years ago

Does it happen in build 4109?