microsoft / vscode-tye

A Visual Studio Code extension for Tye development
Other
25 stars 9 forks source link

Verify dashboard API endpoint #129

Closed philliphoff closed 3 years ago

philliphoff commented 3 years ago

Currently, the extension arbitrarily decides that the first bound port of the tye process found is the dashboard API endpoint. However, if ingress is enabled, the tye process may bind additional ports. If those ports are found before the actual dashboard API endpoint, the extension will fail to show the application.

This change has the Tye process provider check each port associated with a tye process to verify one of them as the dashboard API endpoint (by calling the "get endpoints" endpoint).

Resolves #125.