Use localhost setting (dynamic)
This commit is contained in:
+6
-4
@@ -19,13 +19,15 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
statusBarItem.text = "$(clock) No active run";
|
statusBarItem.text = "$(clock) No active run";
|
||||||
statusBarItem.show();
|
statusBarItem.show();
|
||||||
|
|
||||||
const useLocalhost = config.get<boolean>("useLocalhostServer") || false;
|
|
||||||
|
|
||||||
context.subscriptions.push(
|
context.subscriptions.push(
|
||||||
vscode.commands.registerCommand(
|
vscode.commands.registerCommand(
|
||||||
"devrun-vscode.startRun",
|
"devrun-vscode.startRun",
|
||||||
async (problemId?: string) =>
|
async (problemId?: string) =>
|
||||||
startRun(useLocalhost, statusBarItem, problemId),
|
startRun(
|
||||||
|
config.get<boolean>("useLocalhostServer") || false,
|
||||||
|
statusBarItem,
|
||||||
|
problemId,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -41,7 +43,7 @@ export function activate(context: vscode.ExtensionContext) {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (isStop === "Yes") {
|
if (isStop === "Yes") {
|
||||||
stopRun(useLocalhost);
|
stopRun(config.get<boolean>("useLocalhostServer") || false);
|
||||||
statusBarItem.text = "$(clock) No active run";
|
statusBarItem.text = "$(clock) No active run";
|
||||||
}
|
}
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user