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 0022fa1 commit 6cbd899Copy full SHA for 6cbd899
src/extension.ts
@@ -4,6 +4,8 @@ import * as vscode from "vscode";
4
import * as http from "http";
5
import { AddressInfo } from "net";
6
import { writeFileSync } from "fs";
7
+import { tmpdir } from "os";
8
+import { join } from "path";
9
10
interface Command {
11
commandId: string;
@@ -63,7 +65,8 @@ export function activate(context: vscode.ExtensionContext) {
63
65
});
64
66
67
function writePort() {
- writeFileSync("/tmp/vscode-port", `${port}`);
68
+ const path = join(tmpdir(), "vscode-port");
69
+ writeFileSync(path, `${port}`);
70
}
71
72
0 commit comments