mirror of
https://github.com/microsoft/vscode-extension-samples.git
synced 2026-04-27 16:55:44 +08:00
Apply terminal provider type checks
Using definitions from microsoft/vscode#125849
This commit is contained in:
@ -182,10 +182,12 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
}));
|
||||
|
||||
context.subscriptions.push(vscode.window.registerTerminalProfileProvider('terminalTest.terminal-profile', {
|
||||
provideTerminalProfile(token: vscode.CancellationToken): vscode.ProviderResult<vscode.TerminalOptions> {
|
||||
provideTerminalProfile(token: vscode.CancellationToken): vscode.ProviderResult<vscode.TerminalProfile> {
|
||||
return {
|
||||
name: 'Terminal API Profile',
|
||||
shellPath: process.env.shell || 'C:/Windows/System32/cmd.exe'
|
||||
options: {
|
||||
name: 'Terminal API',
|
||||
shellPath: process.env.shell || 'C:/Windows/System32/cmd.exe'
|
||||
}
|
||||
};
|
||||
}
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user