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

强制为settings.json注入PackageLocation属性问题 #9

Open
wudu8 opened this issue Mar 3, 2023 · 5 comments · Fixed by #10
Open

强制为settings.json注入PackageLocation属性问题 #9

wudu8 opened this issue Mar 3, 2023 · 5 comments · Fixed by #10
Assignees
Labels
enhancement New feature or request

Comments

@wudu8
Copy link

wudu8 commented Mar 3, 2023

只要启用此插件,会强制性在.vscode/settings.json中添加IDuxCoder.PackageLocation这个属性,这个属性的值是项目绝对路径,由于每个开发人员的项目路径不一样,因此我们不能将settings.json文件的改动提交到仓库中,只能本地放着,每次一切换分支,凡是要切换的分支与当前分支setting.json版本不一致,就没办法切过去,需要先将插件禁用,还原本地的修改,才能切换分支,造成了很多的不便。
建议方案:
1、这个配置属性放到其它地方配置,比如可以放到vscode的全局配置文件中
2、仅在.vscode/settings.json中保存项目的相对路径,绝对路径部分尝试通过其他方式动态获取,通过路径拼接得到这个属性的期望值

@danranVm danranVm added the enhancement New feature or request label Mar 3, 2023
@tuchg
Copy link
Collaborator

tuchg commented Mar 3, 2023

.vscode 这个文件夹似乎就不应该放到git?个人有个人的配置和环境,据我所知一般 .gitignore都会将这个目录加入

@wudu8
Copy link
Author

wudu8 commented Mar 4, 2023

我们有一些插件的配置,希望能共享到仓库中,共享给每一位开发者,所以需要将.vscode放到git中,有些项目确实有这些情况

@wudu8
Copy link
Author

wudu8 commented Mar 8, 2023

而且强制写入.vscode还存在一个问题,我用vscode打开任意一个目录,就会强制性的写入.vscode文件夹

@tuchg
Copy link
Collaborator

tuchg commented Mar 8, 2023

而且强制写入.vscode还存在一个问题,我用vscode打开任意一个目录,就会强制性的写入.vscode文件夹

触发条件是tsx、jsx、html、vue等文件格式

@tuchg
Copy link
Collaborator

tuchg commented Mar 8, 2023

@danranVm ci/cd有些问题 需要你手动发下版

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

Successfully merging a pull request may close this issue.

3 participants