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

after restarting the extension host, the plugin cannot be activated normally #93

Closed
MaLuns opened this issue Oct 13, 2023 · 8 comments
Closed

Comments

@MaLuns
Copy link
Contributor

MaLuns commented Oct 13, 2023

vscode version 1.78.2, after restarting the extension host, the plugin cannot be activated normally, and manually calling extension.showGitCommit will also prompt that the command cannot be found

vscode 版本 1.78.2, 重启扩展宿主后无法正常激活插件, 手动调用 extension.showGitCommit 激活, 也会提示无法找到命令

图片

图片

@RedJue
Copy link
Owner

RedJue commented Oct 13, 2023

能贴下系统信息么

@MaLuns
Copy link
Contributor Author

MaLuns commented Oct 13, 2023

版本: 1.78.2 (user setup)
提交: b3e4e68a0bc097f0ae7907b217c1119af9e03435
日期: 2023-05-10T14:39:26.248Z
Electron: 22.5.2
Chromium: 108.0.5359.215
Node.js: 16.17.1
V8: 10.8.168.25-electron.0
OS: Windows_NT x64 10.0.19044
沙盒化: No

@MaLuns
Copy link
Contributor Author

MaLuns commented Oct 13, 2023

应该是重启扩展宿主时候, vscode.git 插件还没有激活, git-commit-plugin 就去获取了 vscode.git 插件导致报错了

@MaLuns
Copy link
Contributor Author

MaLuns commented Oct 13, 2023

Activating extension 'redjue.git-commit-plugin' failed: Extension 'vscode.git' is not known or not activated.

@RedJue
Copy link
Owner

RedJue commented Oct 13, 2023

试试升级到最新的 version: 1.83.1 ,看看还有没有这个问题

@MaLuns
Copy link
Contributor Author

MaLuns commented Oct 13, 2023

试试升级到最新的 version: 1.83.1 ,看看还有没有这个问题

更新版本后也会有这问题

MaLuns added a commit to MaLuns/git-commit-plugin that referenced this issue Oct 13, 2023
@MaLuns
Copy link
Contributor Author

MaLuns commented Oct 13, 2023

将直接获取 vscode.git 扩展 api , 改为调用激活扩展后返回扩展 api , 可修复这个问题, 提交了个 pr

@RedJue RedJue closed this as completed in 4afa4c8 Oct 13, 2023
@RedJue
Copy link
Owner

RedJue commented Oct 13, 2023

今天更新下修复版本,感谢PR~

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

2 participants