mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-06-13 07:10:26 +08:00
Sync w/ microsoft/vscode#125849 API finalisation
This commit is contained in:
committed by
GitHub
parent
913eb0bf5d
commit
50f91cdc64
@ -182,7 +182,7 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
}));
|
||||
|
||||
context.subscriptions.push(vscode.window.registerTerminalProfileProvider('terminalTest.profile', {
|
||||
provideProfileOptions(token: vscode.CancellationToken): vscode.ProviderResult<vscode.TerminalOptions> {
|
||||
provideTerminalProfile(token: vscode.CancellationToken): vscode.ProviderResult<vscode.TerminalOptions> {
|
||||
return {
|
||||
name: 'Terminal API Profile',
|
||||
shellPath: process.env.shell || 'C:/Windows/System32/cmd.exe'
|
||||
@ -230,4 +230,4 @@ function ensureTerminalExists(): boolean {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user