Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

Commit

Permalink
patch default port rewriting when determining the next available port…
Browse files Browse the repository at this point in the history
… and construction requested page Uris (#31)
  • Loading branch information
RandomFractals committed Jun 4, 2023
1 parent bbc19e6 commit 4acab9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export async function getAppPageUri(pageUrl?: string): Promise<Uri> {

// rewrite requested app page url to use the new active localhost server port
pageUri = Uri.parse(pageUri.toString(true) // skip encoding
.replace(`/:${defaultPort}/`, `/:${_activePort}/`));
.replace(`:${defaultPort}/`, `:${_activePort}/`));

const outputChannel = getOutputChannel();
outputChannel.appendLine(`Requested page preview: ${pageUri.toString(true)}`); // skip encoding
Expand Down

0 comments on commit 4acab9c

Please sign in to comment.