PicGo / vs-picgo

A VSCode plugin of PicGo
https://marketplace.visualstudio.com/items?itemName=Spades.vs-picgo
MIT License
375 stars 52 forks source link

Image path doesn't appear when focusing on OUTPUT tab #144

Open BlurryLight opened 1 year ago

BlurryLight commented 1 year ago

Describe the bug

When vs-picgo is uploading files while focus is on OUTPUT tab in bottom of VSCode, at the time the upload finishs, vs-picgo just notifies the upload is successful and doesn't paste the url into editing documents.

This behavour only exists in OUTPUT panel. It seems it can handle PROBLEMS/DEBUG CONSOLE/TERMINAl tab well enough.

To Reproduce

  1. Open a random text file
  2. Call picgo to uploading pictures. In my case, it takes pictures from my clipboard
  3. When the Image is uploading bubble appears, quickly switch focus to OUTPUT panel
  4. The uploading succuess bubble appears, and then nothing happens. The url of uploaded image is lost and I've to open vs-picgo-data.json for looking up the imgUrl.

Expected behavior

The user defined image url should appear in the editors. If it is impossible to do that ( I have no knowledge about the implementation of vscode), it should at least put the url into clipboard and allows users past it mannually.

Screenshots

System information

VSCode information

Version: 1.74.0 (user setup)
Commit: 5235c6bb189b60b01b1f49062f4ffa42384f8c91
Date: 2022-12-05T16:38:16.075Z
Electron: 19.1.8
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 10.0.19045
Sandboxed: No

Additional context

Is this bug picBed specific, i.e. only the picBed you use is affected? Yes/No.

NO

Is there any error in the console (Help -> Toggle Developer tools)?: Yes/No.

Nothing special.

If yes, please paste the error here.