tomoki1207 / vscode-pdfviewer

Show PDF preview in VSCode.
https://marketplace.visualstudio.com/items/tomoki1207.pdf
Other
294 stars 69 forks source link

Having a PDF open in one editor pane steals focus in the file explorer #175

Open nmk456 opened 3 months ago

nmk456 commented 3 months ago

With multiple panes open (ie a text file and a pdf side by side), right clicking anywhere in the file explorer will cause focus to change to the pdf.

Steps to reproduce:

  1. Have a text file and a PDF open in different panes
  2. With focus in the text file, right click on the text file in the file explorer and click rename
  3. Upon right clicking, focus will change to the open PDF, and the PDF's name will become editable instead of the text file

Extension version: v1.2.2

VSCode version:

Version: 1.89.0 (system setup)
Commit: b58957e67ee1e712cebf466b995adf4c5307b2bd
Date: 2024-05-01T02:09:22.859Z
Electron: 28.2.8
ElectronBuildId: 27744544
Chromium: 120.0.6099.291
Node.js: 18.18.2
V8: 12.0.267.19-electron.0
OS: Windows_NT x64 10.0.19045
pbrandstet commented 3 months ago

+1

dbelwood commented 1 month ago

This makes it nearly impossible to create new files/folders in other parts of the file hierarchy as it continually resets file browser focus on the folder containing the PDF file.