@ttsc/vscode 0.15.11 → 0.16.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
|
@@ -17,12 +17,12 @@ Use it when the project already runs `ttsc`. Add `@ttsc/lint` when you also want
|
|
|
17
17
|
- **VS Code** 1.94 or later.
|
|
18
18
|
- **Node.js** 18 or later.
|
|
19
19
|
- A workspace with `tsconfig.json` or `jsconfig.json`.
|
|
20
|
-
- Project-installed `ttsc`,
|
|
20
|
+
- Project-installed `ttsc`, `typescript`, and the `ttsc` plugins you want editor diagnostics from.
|
|
21
21
|
|
|
22
22
|
Install the common project dependencies:
|
|
23
23
|
|
|
24
24
|
```bash
|
|
25
|
-
npm install -D ttsc @
|
|
25
|
+
npm install -D ttsc typescript@rc @ttsc/lint
|
|
26
26
|
```
|
|
27
27
|
|
|
28
28
|
`@ttsc/lint` is optional for TypeScript-Go language features, but required for the lint and format commands shown below.
|
|
@@ -106,7 +106,7 @@ Lint fixes stay off-save by default because they can change code meaning. Run `t
|
|
|
106
106
|
- Diagnostics reported by other LSP-capable `ttsc` plugins.
|
|
107
107
|
- `ttsc: Fix all lint issues`, `ttsc: Format document`, and `ttsc: Restart language server` in the command palette.
|
|
108
108
|
- Format on save with the `format` block from `lint.config.*`.
|
|
109
|
-
- Multi-root workspace support. Each package can use its own `ttsc`,
|
|
109
|
+
- Multi-root workspace support. Each package can use its own `ttsc`, `typescript`, `tsconfig.json`, and `lint.config.*`.
|
|
110
110
|
|
|
111
111
|
Save the file before relying on lint diagnostics or running the command-palette lint and format commands. Format-on-save works on the live editor buffer.
|
|
112
112
|
|
|
Binary file
|
package/lib/extension.js
CHANGED
|
@@ -18411,21 +18411,19 @@ function resolveTsgoBinary(base) {
|
|
|
18411
18411
|
const requireFromBase = (0, import_node_module.createRequire)(
|
|
18412
18412
|
import_node_path.default.join(base, "__ttsc_vscode_resolve__.cjs")
|
|
18413
18413
|
);
|
|
18414
|
-
const packageJson = requireFromBase.resolve(
|
|
18415
|
-
"@typescript/native-preview/package.json"
|
|
18416
|
-
);
|
|
18414
|
+
const packageJson = requireFromBase.resolve("typescript/package.json");
|
|
18417
18415
|
const packageRoot = import_node_path.default.dirname(packageJson);
|
|
18418
18416
|
const requireFromTsgo = (0, import_node_module.createRequire)(
|
|
18419
18417
|
import_node_path.default.join(packageRoot, "__ttsc_vscode_resolve__.cjs")
|
|
18420
18418
|
);
|
|
18421
|
-
const platformPackage = `@typescript/
|
|
18419
|
+
const platformPackage = `@typescript/typescript-${process.platform}-${process.arch}`;
|
|
18422
18420
|
const platformPackageJson = requireFromTsgo.resolve(
|
|
18423
18421
|
`${platformPackage}/package.json`
|
|
18424
18422
|
);
|
|
18425
18423
|
const binary = import_node_path.default.join(
|
|
18426
18424
|
import_node_path.default.dirname(platformPackageJson),
|
|
18427
18425
|
"lib",
|
|
18428
|
-
process.platform === "win32" ? "
|
|
18426
|
+
process.platform === "win32" ? "tsc.exe" : "tsc"
|
|
18429
18427
|
);
|
|
18430
18428
|
return import_node_fs.default.existsSync(binary) ? binary : void 0;
|
|
18431
18429
|
} catch {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@ttsc/vscode",
|
|
3
3
|
"displayName": "ttsc",
|
|
4
4
|
"description": "Show ttsc plugin diagnostics in VS Code, with @ttsc/lint errors, fix-all actions, and formatter support.",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.16.0",
|
|
6
6
|
"publisher": "samchon",
|
|
7
7
|
"icon": "images/icon.png",
|
|
8
8
|
"license": "MIT",
|
|
@@ -100,12 +100,12 @@
|
|
|
100
100
|
"devDependencies": {
|
|
101
101
|
"@types/node": "^25.3.0",
|
|
102
102
|
"@types/vscode": "^1.94.0",
|
|
103
|
-
"@typescript/native-preview": "7.0.0-dev.20260618.1",
|
|
104
103
|
"@vscode/vsce": "^3.6.1",
|
|
105
104
|
"esbuild": "^0.25.12",
|
|
106
105
|
"rimraf": "^6.1.2",
|
|
106
|
+
"typescript": "7.0.1-rc",
|
|
107
107
|
"vscode-languageclient": "^9.0.1",
|
|
108
|
-
"ttsc": "0.
|
|
108
|
+
"ttsc": "0.16.0"
|
|
109
109
|
},
|
|
110
110
|
"scripts": {
|
|
111
111
|
"build": "rimraf lib dist && node build/build.cjs"
|