feat(workspace-terminal): use environment shell command
This commit is contained in:
@@ -1,5 +1,11 @@
|
||||
import * as webcontainer from '@tempfix/webcontainer__api';
|
||||
import type { IExecutionEnvironment, IFileEntry, IFileWatcher, IProcessHandle } from '../interfaces/IExecutionEnvironment.js';
|
||||
import type {
|
||||
IExecutionEnvironment,
|
||||
IFileEntry,
|
||||
IFileWatcher,
|
||||
IProcessHandle,
|
||||
IShellCommand,
|
||||
} from '../interfaces/IExecutionEnvironment.js';
|
||||
|
||||
/**
|
||||
* WebContainer-based execution environment.
|
||||
@@ -154,6 +160,14 @@ export class WebContainerEnvironment implements IExecutionEnvironment {
|
||||
};
|
||||
}
|
||||
|
||||
public getShellCommand(): IShellCommand {
|
||||
return {
|
||||
command: 'jsh',
|
||||
label: 'jsh',
|
||||
prompt: '~/',
|
||||
};
|
||||
}
|
||||
|
||||
// ============ WebContainer-specific methods ============
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user