Skip to content

Commit 1909a7b

Browse files
committed
chore: update Zed settings for Deno project best practices
1 parent 64928aa commit 1909a7b

File tree

3 files changed

+85
-12
lines changed

3 files changed

+85
-12
lines changed

.serena/project.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,3 +123,17 @@ read_only_memory_patterns: []
123123
# Possible values: unset (use global setting), "lf", "crlf", or "native" (platform default)
124124
# This does not affect Serena's own files (e.g. memories and configuration files), which always use native line endings.
125125
line_ending:
126+
127+
# list of regex patterns for memories to completely ignore.
128+
# Matching memories will not appear in list_memories or activate_project output
129+
# and cannot be accessed via read_memory or write_memory.
130+
# To access ignored memory files, use the read_file tool on the raw file path.
131+
# Extends the list from the global configuration, merging the two lists.
132+
# Example: ["_archive/.*", "_episodes/.*"]
133+
ignored_memory_patterns: []
134+
135+
# advanced configuration option allowing to configure language server-specific options.
136+
# Maps the language key to the options.
137+
# Have a look at the docstring of the constructors of the LS implementations within solidlsp (e.g., for C# or PHP) to see which options are available.
138+
# No documentation on options means no options are available.
139+
ls_specific_settings: {}

.zed/settings.json

Lines changed: 68 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,71 @@
1+
// Zed project settings for poolifier-web-worker
2+
//
3+
// TS/JS: Deno format → Deno lint --fix
4+
// JSON, JSONC, Markdown, YAML: Deno format
15
{
2-
"language_servers": [
3-
"deno",
4-
"!typescript-language-server",
5-
"!vtsls",
6-
"!eslint",
7-
"!biome",
8-
"..."
9-
],
10-
"code_actions_on_format": {
11-
"source.fixAll.deno": true
6+
"format_on_save": "on",
7+
8+
"languages": {
9+
// ── TypeScript (covers .ts and .tsx) ──────────────────────
10+
"TypeScript": {
11+
"language_servers": ["deno"],
12+
"formatter": "language_server",
13+
"code_actions_on_format": {
14+
"source.fixAll.deno": true
15+
}
16+
},
17+
// ── JavaScript (covers .js, .jsx, .cjs, .mjs) ────────────
18+
"JavaScript": {
19+
"language_servers": ["deno"],
20+
"formatter": "language_server",
21+
"code_actions_on_format": {
22+
"source.fixAll.deno": true
23+
}
24+
},
25+
// ── JSON / JSONC ──────────────────────────────────────────
26+
"JSON": {
27+
"formatter": {
28+
"external": {
29+
"command": "deno",
30+
"arguments": ["fmt", "--ext", "json", "-"]
31+
}
32+
}
33+
},
34+
"JSONC": {
35+
"formatter": {
36+
"external": {
37+
"command": "deno",
38+
"arguments": ["fmt", "--ext", "jsonc", "-"]
39+
}
40+
}
41+
},
42+
// ── Markdown ──────────────────────────────────────────────
43+
"Markdown": {
44+
"formatter": {
45+
"external": {
46+
"command": "deno",
47+
"arguments": ["fmt", "--ext", "md", "-"]
48+
}
49+
}
50+
},
51+
// ── YAML ──────────────────────────────────────────────────
52+
"YAML": {
53+
"formatter": {
54+
"external": {
55+
"command": "deno",
56+
"arguments": ["fmt", "--ext", "yml", "-"]
57+
}
58+
}
59+
}
1260
},
13-
"formatter": "language_server"
61+
62+
"lsp": {
63+
"deno": {
64+
"settings": {
65+
"deno": {
66+
"enable": true
67+
}
68+
}
69+
}
70+
}
1471
}

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,9 @@ for more details**:
150150
<!-- deno-fmt-ignore -->
151151

152152
```js
153-
<script type="module">import { ThreadWorker } from 'https://cdn.jsdelivr.net/npm/poolifier-web-worker@0.6.2/browser/mod.js'</script>
153+
<script type="module">
154+
import {ThreadWorker} from 'https://cdn.jsdelivr.net/npm/poolifier-web-worker@0.6.2/browser/mod.js'
155+
</script>
154156
```
155157

156158
```js

0 commit comments

Comments
 (0)