Skip to content

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

Open
@BlurryLight

Description

@BlurryLight

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

  • OS: [e.g. Windows]
  • Version [e.g. Windows 10]

VSCode information

  • Help -> About -> Copy
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
  • vs-picgo version
    v2.1.6

  • Settings begin with picgo:

    // ...
    "picgo.customUploadName": "${mdFileName}-${dateTime}${extName}",
    "picgo.customOutputFormat": "![${uploadedName}](${url}?x-oss-process=style/compress)",
    // ...

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions