Skip to content

Commit 6b93012

Browse files
committed
Update ci
1 parent 2eb9e61 commit 6b93012

File tree

5 files changed

+22
-10
lines changed

5 files changed

+22
-10
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@ jobs:
9191
path: ${{ matrix.platform.name }}
9292
release:
9393
name: Release
94+
permissions:
95+
contents: write
9496
needs:
9597
- build
9698
- test
@@ -111,5 +113,3 @@ jobs:
111113
generate_release_notes: true
112114
draft: false
113115
tag_name: ${{ github.ref_name }}
114-
env:
115-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@ export RUST_LOG=info
55
test:
66
cargo test
77

8-
build:
8+
build: generate_word_list
99
cd codebook-lsp && cargo build
1010

11-
build-release:
11+
build-release: generate_word_list
1212
cd codebook-lsp && cargo build --release
1313

1414
integration_test: build
1515
cd integration_tests && bun test
1616

1717
install_ext: build-release
1818
cp -f target/release/codebook-lsp "${HOME}/Library/Application Support/Zed/extensions/work/codebook/"
19+
20+
generate_word_list:
21+
bun run scripts/generate_combined_wordlist.ts

codebook/src/queries.rs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,15 @@ pub static LANGUAGE_SETTINGS: [LanguageSetting; 7] = [
7070
type_: LanguageType::Javascript,
7171
name: "javascript",
7272
query: r#"
73-
(identifier) @identifier
74-
(string) @string
7573
(comment) @comment
76-
(template_string) @string
74+
(string_fragment) @string
75+
(string) @string
76+
(variable_declarator
77+
name: (identifier) @identifier)
7778
(jsx_text) @string
78-
(property_identifier) @identifier
7979
(shorthand_property_identifier) @identifier
80+
(function_declaration
81+
name: (identifier) @identifier)
8082
(method_definition
8183
name: (property_identifier) @identifier)
8284
(class_declaration

codebook/tests/test_files.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ fn test_example_files() {
135135
"Pleese",
136136
"additshun",
137137
"arra",
138-
"ballance",
139-
"calculater",
140138
],
141139
),
142140
(

word_lists/combined.gen.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ ccccff
301301
ccx
302302
cd
303303
cdata
304+
cdn
304305
cell
305306
cellpadding
306307
cellspacing
@@ -966,6 +967,7 @@ hostname
966967
hover
967968
hr
968969
href
970+
htm
969971
html
970972
htmlelement
971973
http
@@ -1123,6 +1125,7 @@ jsonobject
11231125
jsontypeinfo
11241126
jsref
11251127
jstree
1128+
jsx
11261129
juju
11271130
jumbotron
11281131
junit
@@ -1198,6 +1201,7 @@ linkcol
11981201
linkedlist
11991202
links
12001203
lint
1204+
linter
12011205
list
12021206
listener
12031207
listeners
@@ -1238,6 +1242,7 @@ longhands
12381242
loop
12391243
loose
12401244
lower
1245+
lsp
12411246
lt
12421247
lucene
12431248
ma
@@ -1781,6 +1786,7 @@ row
17811786
rowcolor
17821787
rows
17831788
rowspan
1789+
rpc
17841790
rr
17851791
rs
17861792
rt
@@ -1880,6 +1886,7 @@ setup
18801886
setvalue
18811887
setvisible
18821888
sf
1889+
sha
18831890
shadow
18841891
shape
18851892
share
@@ -2200,6 +2207,7 @@ try
22002207
trydecodeasnil
22012208
ts
22022209
tsd
2210+
tsx
22032211
tt
22042212
tta
22052213
tuple
@@ -2337,6 +2345,7 @@ we
23372345
web
23382346
webdev
23392347
webkit
2348+
webp
23402349
webpack
23412350
websites
23422351
week

0 commit comments

Comments
 (0)