Skip to content

Commit 3c82a59

Browse files
authored
Add @effect/language-service (#4159)
See [`@effect/language-service`](https://github.com/Effect-TS/language-service/tree/main). To get a feeling for the utility of this: ```sh git clone https://github.com/Effect-TS/language-service cd language-service pnpm i pnpm build # ensure lsp server is using workspace tssdk # open ./examples/**/* ``` **NOTE:** This only enhances LSP experience and does not contribute to static checks.
2 parents 4acf1a4 + 63a2eeb commit 3c82a59

File tree

9 files changed

+26
-17
lines changed

9 files changed

+26
-17
lines changed

.vscode/settings.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@
2323
"go.toolsGopath": ".",
2424

2525
// https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-the-workspace-version-of-typescript
26-
"typescript.tsdk": "./docs/node_modules/typescript/lib",
26+
"typescript.tsdk": "./node_modules/typescript/lib",
27+
2728
"typescript.enablePromptUseWorkspaceTsdk": true,
2829
"biome.enabled": true,
2930
"[json]": {

app2/app2.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ _: {
2828
../typescript-sdk
2929
../ts-sdk
3030
];
31-
hash = "sha256-nR7H08cOxhjn1PgbvdBdDoLahV+xQCFw0Xpoi2oCfII=";
31+
hash = "sha256-5ha02SZhT3J7I+KFphc1KdcpMbJb5UHa3oUlyiXduqU=";
3232
buildInputs = deps;
3333
nativeBuildInputs = buildInputs;
3434
pnpmWorkspaces = [

app2/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@
5252
"svelte-check": "^4.1.4",
5353
"tailwind-merge": "^3.0.2",
5454
"tailwindcss": "^4.0.6",
55-
"typescript": "^5.7.3",
5655
"typescript-eslint": "^8.24.1",
5756
"viem": "^2.23.5",
5857
"vite": "^6.1.0",

app2/tsconfig.json

+1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
"moduleResolution": "bundler",
1616
"allowImportingTsExtensions": true,
1717
"plugins": [
18+
{ "name": "@effect/language-service" },
1819
{
1920
"name": "gql.tada/ts-plugin",
2021
"schema": "./src/generated/schema.graphql",

package.json

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,15 @@
11
{
2+
"private": true,
3+
"type": "module",
4+
"devDependencies": {
5+
"@effect/language-service": "~0.5.1",
6+
"typescript": "~5.8.2"
7+
},
28
"pnpm": {
39
"patchedDependencies": {
410
"@cosmjs/[email protected]": "patches/@[email protected]",
511
"@cosmjs/[email protected]": "patches/@[email protected]"
6-
}
12+
},
13+
"onlyBuiltDependencies": ["bufferutil", "utf-8-validate", "esbuild", "keccak", "core-js"]
714
}
815
}

pnpm-lock.yaml

+13-10
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ts-sdk/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@
6262
"biome": "^0.3.3",
6363
"dpdm": "^3.14.0",
6464
"effect": "^3.13.12",
65-
"typescript": "^5.8.2",
6665
"viem": "^2.23.12",
6766
"vitest": "^3.0.8"
6867
},

ts-sdk/ts-sdk.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ _: {
1919
packageJsonPath = ./package.json;
2020
extraSrcs = [ ../ts-sdk ];
2121
pnpmWorkspaces = [ "@unionlabs/sdk" ];
22-
hash = "sha256-wgW2jT+ujgtWptgKo9bQelR9sM99UF9BaXblfv6/R7I=";
22+
hash = "sha256-WVg23MBZnXun6IjD9BWVy+UntOnReX+k5crpliAaFXA=";
2323
doCheck = true;
2424
buildPhase = ''
2525
runHook preBuild

typescript-sdk/package.json

-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
"knip": "^5.43.6",
5858
"tsup": "^8.3.6",
5959
"tsx": "^4.19.2",
60-
"typescript": "^5.7.3",
6160
"viem": "^2.22.21",
6261
"vite-tsconfig-paths": "^5.1.4",
6362
"vitest": "^3.0.5"

0 commit comments

Comments
 (0)