mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-19 17:58:39 +00:00
Merge pull request #192886 from microsoft/tyriar/160694
Finalize env.onDidChangeShell
This commit is contained in:
@@ -343,7 +343,6 @@ export function createApiFactoryAndRegisterActors(accessor: ServicesAccessor): I
|
||||
return extHostTerminalService.getDefaultShell(false);
|
||||
},
|
||||
get onDidChangeShell() {
|
||||
checkProposedApiEnabled(extension, 'envShellEvent');
|
||||
return extHostTerminalService.onDidChangeShell;
|
||||
},
|
||||
get isTelemetryEnabled() {
|
||||
|
||||
@@ -40,7 +40,6 @@ export const allApiProposals = Object.freeze({
|
||||
dropMetadata: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.dropMetadata.d.ts',
|
||||
editSessionIdentityProvider: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editSessionIdentityProvider.d.ts',
|
||||
editorInsets: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.editorInsets.d.ts',
|
||||
envShellEvent: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.envShellEvent.d.ts',
|
||||
extensionRuntime: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionRuntime.d.ts',
|
||||
extensionsAny: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.extensionsAny.d.ts',
|
||||
externalUriOpener: 'https://raw.githubusercontent.com/microsoft/vscode/main/src/vscode-dts/vscode.proposed.externalUriOpener.d.ts',
|
||||
|
||||
5
src/vscode-dts/vscode.d.ts
vendored
5
src/vscode-dts/vscode.d.ts
vendored
@@ -10000,6 +10000,11 @@ declare module 'vscode' {
|
||||
*/
|
||||
export const onDidChangeTelemetryEnabled: Event<boolean>;
|
||||
|
||||
/**
|
||||
* An {@link Event} which fires when the default shell changes.
|
||||
*/
|
||||
export const onDidChangeShell: Event<string>;
|
||||
|
||||
/**
|
||||
* Creates a new {@link TelemetryLogger telemetry logger}.
|
||||
*
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
declare module 'vscode' {
|
||||
|
||||
// See https://github.com/microsoft/vscode/issues/160694
|
||||
export namespace env {
|
||||
|
||||
/**
|
||||
* An {@link Event} which fires when the default shell changes.
|
||||
*/
|
||||
export const onDidChangeShell: Event<string>;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user