We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a852378 commit 0022fa1Copy full SHA for 0022fa1
src/extension.ts
@@ -52,18 +52,18 @@ export function activate(context: vscode.ExtensionContext) {
52
port = address.port;
53
console.log("Listening on port " + address.port);
54
if (vscode.window.state.focused) {
55
- writeHost();
+ writePort();
56
}
57
});
58
59
vscode.window.onDidChangeWindowState((event) => {
60
if (event.focused && port !== null) {
61
62
63
64
65
- function writeHost() {
66
- writeFileSync("/tmp/vscode-host", `localhost:${port}`);
+ function writePort() {
+ writeFileSync("/tmp/vscode-port", `${port}`);
67
68
69
0 commit comments