We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When creating an electron application with the latest VS Code built-in Git plugins:
"theiaPlugins": { "vscode-builtin-git": "https://open-vsx.org/api/vscode/git/1.62.3/file/vscode.git-1.62.3.vsix", "vscode-builtin-github": "https://open-vsx.org/api/vscode/github/1.62.3/file/vscode.github-1.62.3.vsix", "vscode-builtin-github-authentication": "https://open-vsx.org/api/vscode/github-authentication/1.62.3/file/vscode.github-authentication-1.62.3.vsix", ... }
I get the following error while trying to add a remote repository with Source Control View > Remote > Add Remote...:
I believe the reason for that is that the Git plugin uses some API that Theia does not provide: Trusted workspace API:
// Don't allow auto-fetch in untrusted workspaces if (workspace.isTrusted) { this.disposables.push(new AutoFetcher(this, globalState)); } else { const trustDisposable = workspace.onDidGrantWorkspaceTrust(() => { trustDisposable.dispose(); this.disposables.push(new AutoFetcher(this, globalState)); }); this.disposables.push(trustDisposable); }
https://github.com/microsoft/vscode/blob/bfad20be9d75fa83c1d3e31fb6aefbca71aeaddc/extensions/git/src/repository.ts#L942
From what I can see, the isTrusted is false and the onDidGrantWorkspaceTrust does not exist causing the error.
isTrusted
onDidGrantWorkspaceTrust
Implement (a very light-weight version of) the Workspace Trust API:
The full functionality is described in https://code.visualstudio.com/docs/editor/workspace-trust
The text was updated successfully, but these errors were encountered:
This should work now, thanks to #10473
Sorry, something went wrong.
No branches or pull requests
When creating an electron application with the latest VS Code built-in Git plugins:
I get the following error while trying to add a remote repository with Source Control View > Remote > Add Remote...:
I believe the reason for that is that the Git plugin uses some API that Theia does not provide: Trusted workspace API:
https://github.com/microsoft/vscode/blob/bfad20be9d75fa83c1d3e31fb6aefbca71aeaddc/extensions/git/src/repository.ts#L942
From what I can see, the
isTrusted
is false and theonDidGrantWorkspaceTrust
does not exist causing the error.Feature Description:
Implement (a very light-weight version of) the Workspace Trust API:
isTrusted
flag to pluginsonDidGrantWorkspaceTrust
event to which plugins might be registeredThe full functionality is described in https://code.visualstudio.com/docs/editor/workspace-trust
The text was updated successfully, but these errors were encountered: