提交 e08e8b02 编写于 作者: D Daniel Imms

Move window.shell to env.shell

Part of #75091
上级 52a351f8
......@@ -629,6 +629,12 @@ declare module 'vscode' {
*/
export const logLevel: LogLevel;
/**
* The detected default shell for the extension host, this is overridden by the
* `terminal.integrated.shell` setting for the extension host's platform.
*/
export const shell: string;
/**
* An [event](#Event) that fires when the log level has changed.
*/
......@@ -1110,12 +1116,6 @@ declare module 'vscode' {
}
namespace window {
/**
* The detected default shell for the extension host, this is overridden by the
* `terminal.integrated.shell` setting for the extension host's platform.
*/
export const shell: string;
/**
* An event which fires when the [dimensions](#Terminal.dimensions) of the terminal change.
*/
......
......@@ -254,6 +254,9 @@ export function createApiFactory(
get clipboard(): vscode.Clipboard {
return extHostClipboard;
},
get shell() {
return extHostTerminalService.getDefaultShell(configProvider);
},
openExternal(uri: URI) {
return extHostWindow.openUri(uri, { allowTunneling: !!initData.remoteAuthority });
}
......@@ -389,9 +392,6 @@ export function createApiFactory(
get terminals() {
return extHostTerminalService.terminals;
},
get shell() {
return extHostTerminalService.getDefaultShell(configProvider);
},
showTextDocument(documentOrUri: vscode.TextDocument | vscode.Uri, columnOrOptions?: vscode.ViewColumn | vscode.TextDocumentShowOptions, preserveFocus?: boolean): Thenable<vscode.TextEditor> {
let documentPromise: Promise<vscode.TextDocument>;
if (URI.isUri(documentOrUri)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册