Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "debug-certificate-manager",
"version": "0.0.2",
"version": "0.0.3",
"repository": {
"type": "git",
"url": "https://github.com/microsoft/rushstack.git",
Expand Down Expand Up @@ -107,7 +107,7 @@
},
"enabledApiProposals": [],
"activationEvents": [
"workspaceContains:.vscode/debug-certificate-manager.json"
"workspaceContains:/.vscode/debug-certificate-manager.json"
],
"dependencies": {
"@rushstack/debug-certificate-manager": "workspace:*",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,16 @@ export async function runWorkspaceCommandAsync({
const shellIntegration: vscode.TerminalShellIntegration =
vsTerminal.shellIntegration ??
(await new Promise((resolve, reject) => {
let timeoutId: NodeJS.Timeout | undefined;
const shellIntegrationDisposable: vscode.Disposable = vscode.window.onDidChangeTerminalShellIntegration(
(event) => {
if (event.terminal !== vsTerminal) {
return;
}
if (timeoutId) {
clearTimeout(timeoutId);
timeoutId = undefined;
}

resolve(event.shellIntegration);
shellIntegrationDisposable?.dispose();
}
);
timeoutId = setTimeout(() => {
shellIntegrationDisposable?.dispose();
reject(new Error('Shell integration timeout'));
}, 5000);
}));

// Run the command through shell integration and grab output
Expand Down
Loading