vscode-autoScroll icon indicating copy to clipboard operation
vscode-autoScroll copied to clipboard

Not working, if the (Visual Studio Code) window is not selected/focused

Open nhwCoder opened this issue 6 months ago • 2 comments

PROBLEM

The autoscroll feature is NOT working if the (Visual Studio Code) window is not selected/focused on a local opened file in Windows11 (latest release 2024.01.04).

Even if the file to watch/observe in VSC was trusted (not opened in Restricted Mode) and the directory of the file was added to "Trusted Folders & Workspaces.

But exactly such a behavior is crucial/needed when looking at *.log files.

SOLUTION/WORKAROUND

  • Open same file in Notepad++
  • Click in menu on symbol "Watch (tail -f)"
  • RESULT: Working in Notepad++ perfectly!

PROPOSAL

Can you please implement it the same way as in Notepad++?

nhwCoder avatar Jan 04 '24 21:01 nhwCoder

I can't reproduce the same behavior

https://github.com/PejmanNik/vscode-autoScroll/assets/18081640/aca22753-cc8e-43c7-8f37-d4e1968aa28b

PejmanNik avatar Jan 07 '24 09:01 PejmanNik

Hi Nik

I guess it is related to the way how the data is written into the file (e.g. *.log) in the background.

In my case (other like you show in your video) this *.log file is not opened in any window, but a program is (silently) writing some data into it in the background

Do you have such a test-case like this to verify?

PS: My concrete situation

  • MS OneNote and add-in OneMore (www.onemoreaddin.com), which writes in background into a log file C:\Users<username>\AppData\Local\Temp\OneMore.log
  • This file was correct updated/refreshed in Notepad++ but not in your vscode-AutoScroll.

nhwCoder avatar Jan 10 '24 15:01 nhwCoder