Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vscode.code-workspace 工作区配置文件的"picgo.picBed.current"配置未能够生效 #142

Open
ruan-cat opened this issue May 5, 2023 · 0 comments

Comments

@ruan-cat
Copy link

ruan-cat commented May 5, 2023

vscode.code-workspace 工作区配置文件的"picgo.picBed.current"配置未能够生效

Describe the bug

工作区配置文件的"picgo.picBed.current"配置未能够覆盖掉当前的预设。当本机的 PicGo 默认为 github 图床时,工作区配置为阿里云图床时,插件未能够如期换成阿里云图床,仍旧默认使用 github 图床来上传。

To Reproduce

  1. 准备两个独立的项目,且均使用工作区配置文件,分别使用 github 图床和阿里云图床。

使用 github 图床的项目,其配置如下:

2023-05-05-09-17-13

使用 阿里云 图床的项目,其配置如下:

2023-05-05-09-18-50

  1. 当前本机的 picgo 配置如下。默认的图床是 github 图床。

2023-05-05-09-21-42

  1. 分别在两个项目内使用 Ctrl + Alt + U 快捷键来快速上传图片。无论在那个项目,都只能上传 github 图床,而不是按需使用工作区配置的阿里云图床。

Expected behavior

期望工作区配置文件,或者是项目本地的 .vscode\settings.json 配置文件的 current 配置,可以覆盖掉本机全局的 current。用局部的图床配置覆盖掉本机全局的配置文件。

Screenshots

见上。

System information

  • OS: Windows
  • Version Windows 10

VSCode information

  • Help -> About -> Copy

    版本: 1.78.0 (user setup)
    提交: 252e5463d60e63238250799aef7375787f68b4ee
    日期: 2023-05-03T20:09:00.748Z
    Electron: 22.4.8
    Chromium: 108.0.5359.215
    Node.js: 16.17.1
    V8: 10.8.168.25-electron.0
    OS: Windows_NT x64 10.0.19045
    沙盒化: Yes
  • vs-picgo version
    v2.1.6

  • Settings begin with picgo:

    第一个项目:this-proj.code-workspace

    {
    	"folders": [
    		{
    			"path": "."
    		}
    	],
    	"settings": {
    		"picgo.configPath": "C:\\Users\\ruanzhongnan\\AppData\\Roaming\\picgo\\data.json",
    		"picgo.dataPath": "C:\\Users\\ruanzhongnan\\vs-picgo-data.json",
    		"picgo.picBed.current": "github",
    		"picgo.customUploadName": "${dateTime}${extName}",
    		"picgo.picBed.github.branch": "main",
    		"picgo.picBed.github.path": "img/",
    		"picgo.picBed.github.repo": "RuanZhongNan/img-store"
    	}
    }

    第二个项目:this-proj.code-workspace

    {
    	"folders": [
    		{
    			"path": "."
    		}
    	],
    	"settings": {
    		"picgo.configPath": "C:\\Users\\ruanzhongnan\\AppData\\Roaming\\picgo\\data.json",
    		"picgo.dataPath": "C:\\Users\\ruanzhongnan\\vs-picgo-data.json",
    		"picgo.picBed.current": "aliyun",
    		"picgo.customUploadName": "${dateTime}${extName}",
    		"picgo.picBed.aliyun.bucket": "drill-up-pic",
    		"picgo.picBed.aliyun.area": "oss-cn-beijing",
    		"picgo.picBed.aliyun.path": "drill_web_pic/",
    		"picgo.picBed.aliyun.customUrl": ""
    	}
    }

Additional context

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant