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
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

> **Note**: odd version numbers, for example, `0.13.0`, are not included in this changelog. They are used to test the new features and fixes before the final release.

## [0.19.0] - Unreleased

### Changed:

- Commands: Refactored stop command logic

## [0.18.3] - 2025-03-03

### Added:
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "dev-proxy-toolkit",
"displayName": "Dev Proxy Toolkit",
"description": "Makes it easy to create and update Dev Proxy configuration files.",
"version": "0.18.3",
"version": "0.19.0",
"publisher": "garrytrinder",
"engines": {
"vscode": "^1.89.0"
Expand Down
16 changes: 10 additions & 6 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,17 @@ export const registerCommands = (context: vscode.ExtensionContext, configuration
}
};

let isRunning = true;
while (isRunning) {
isRunning = await checkProxyStatus();
if (isRunning) {
await new Promise(resolve => setTimeout(resolve, 1000));
const waitForProxyToStop = async () => {
let isRunning = true;
while (isRunning) {
isRunning = await checkProxyStatus();
if (isRunning) {
await new Promise(resolve => setTimeout(resolve, 1000));
}
}
}
};

await waitForProxyToStop();

vscode.window.terminals.forEach(terminal => {
if (terminal.name === 'Dev Proxy') {
Expand Down