Apply terminal provider type checks

Using definitions from microsoft/vscode#125849
This commit is contained in:
4086606
2021-06-20 15:24:33 +01:00
parent b26f7b3991
commit 384a7a034b

View File

@ -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'
}
};
}
}));