@ttsc/vscode 0.14.0-dev.20260529.2 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -20,10 +20,9 @@ npm install -D ttsc @ttsc/lint @typescript/native-preview
20
20
 
21
21
  ### Install
22
22
 
23
- Not on the VS Code Marketplace yet. Install from npm:
23
+ Not on the VS Code Marketplace yet. Run `npx @ttsc/vscode`; it downloads the package and installs the bundled `.vsix` into VS Code, nothing to keep as a dependency:
24
24
 
25
25
  ```bash
26
- npm install -D @ttsc/vscode
27
26
  npx @ttsc/vscode
28
27
  ```
29
28
 
package/bin/install.js CHANGED
@@ -36,17 +36,22 @@ function quoteWindowsArg(arg) {
36
36
  return `"${String(arg).replace(/"/g, '\\"').replace(/%/g, "%%")}"`;
37
37
  }
38
38
 
39
- function runCode(args, vsixForFallback) {
39
+ function spawnCode(args, vsixForFallback) {
40
40
  const command = createCodeCommand(args);
41
41
  const r = cp.spawnSync(command.command, command.args, { stdio: "inherit" });
42
42
  if (r.error && r.error.code === "ENOENT") {
43
43
  printCodeNotFound(vsixForFallback);
44
44
  process.exit(1);
45
45
  }
46
- if (process.platform === "win32" && (r.status ?? 1) !== 0) {
47
- printCodeFailed(r.status ?? 1, vsixForFallback);
46
+ return r.status ?? 1;
47
+ }
48
+
49
+ function runCode(args, vsixForFallback) {
50
+ const status = spawnCode(args, vsixForFallback);
51
+ if (process.platform === "win32" && status !== 0) {
52
+ printCodeFailed(status, vsixForFallback);
48
53
  }
49
- process.exit(r.status ?? 1);
54
+ process.exit(status);
50
55
  }
51
56
 
52
57
  function printCodeNotFound(vsixForFallback) {
@@ -81,6 +86,9 @@ function main(argv = process.argv.slice(2)) {
81
86
  );
82
87
  process.exit(1);
83
88
  }
89
+ // Remove any previously installed version first so versions do not pile up
90
+ // in VS Code. Ignore its exit status: the extension may not be installed.
91
+ spawnCode(["--uninstall-extension", extensionId], vsix);
84
92
  runCode(["--install-extension", vsix, "--force"], vsix);
85
93
  } else if (sub === "uninstall") {
86
94
  runCode(["--uninstall-extension", extensionId]);
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@ttsc/vscode",
3
3
  "displayName": "ttsc",
4
4
  "description": "Run the project-selected ttscserver in VS Code with TypeScript-Go and ttsc plugin LSP features.",
5
- "version": "0.14.0-dev.20260529.2",
5
+ "version": "0.14.0",
6
6
  "publisher": "samchon",
7
7
  "license": "MIT",
8
8
  "author": "Jeongho Nam",
@@ -81,12 +81,12 @@
81
81
  "devDependencies": {
82
82
  "@types/node": "^25.3.0",
83
83
  "@types/vscode": "^1.94.0",
84
- "@typescript/native-preview": "7.0.0-dev.20260527.2",
84
+ "@typescript/native-preview": "7.0.0-dev.20260519.1",
85
85
  "@vscode/vsce": "^3.6.1",
86
86
  "esbuild": "^0.25.12",
87
87
  "rimraf": "^6.1.2",
88
88
  "vscode-languageclient": "^9.0.1",
89
- "ttsc": "0.14.0-dev.20260529.2"
89
+ "ttsc": "0.14.0"
90
90
  },
91
91
  "scripts": {
92
92
  "build": "rimraf lib dist && node build/build.cjs"