Support running vscode-userdata schema

Fixes #171083
This commit is contained in:
Daniel Imms 2023-01-11 10:36:52 -08:00
parent 2318d7dc3d
commit 41fd92ef73
No known key found for this signature in database
GPG key ID: E5CF412B63651C69

View file

@ -625,7 +625,7 @@ export function registerTerminalActions() {
const isRemote = instance ? instance.isRemote : (workbenchEnvironmentService.remoteAuthority ? true : false);
const uri = editor.getModel().uri;
if ((!isRemote && uri.scheme !== Schemas.file) || (isRemote && uri.scheme !== Schemas.vscodeRemote)) {
if ((!isRemote && uri.scheme !== Schemas.file && uri.scheme !== Schemas.vscodeUserData) || (isRemote && uri.scheme !== Schemas.vscodeRemote)) {
notificationService.warn(localize('workbench.action.terminal.runActiveFile.noFile', 'Only files on disk can be run in the terminal'));
return;
}