mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 04:49:35 +00:00
Merge pull request #171084 from microsoft/tyriar/171083
Support running vscode-userdata schema
This commit is contained in:
commit
487299a27c
|
@ -644,7 +644,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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue