Commit graph

155 commits

Author SHA1 Message Date
Myriad-Dreamin
76b4e91046
feat: allow running server with loading font once and on rootless files (#94)
* dev: change system config

* docs: update config doc

* dev: clean up tightly coupled world

* dev: load font once

* docs: add more comments to tinymist-query

* dev: merge compiler layers

* feat: allow run lsp on rootless files

* build: bump ts

* fix: workspace dep

* build: bump preview

* dev: correctly check inactive state

* fix: weird cargo default features
2024-03-26 10:33:56 +08:00
Myriad-Dreamin
f0a9c3e880
dev: use positive system font config (#93)
* dev: change system config

* docs: update config doc
2024-03-24 10:16:29 +08:00
Myriad-Dreamin
b6dd6671c3
fix: convert EOF position correctly (#92) 2024-03-23 18:59:19 +08:00
Myriad-Dreamin
9b09d6458e
feat: integrate neovim support (#91)
* feat: integrate neovim support

* dev: restre default settings in plugin file

* fix: description

* docs: better link

* chore: fix

* chore: mason install

* fix: link
2024-03-23 18:46:31 +08:00
Myriad-Dreamin
a0c434477c
refactor: remove listeners (#90) 2024-03-23 12:56:30 +08:00
Myriad-Dreamin
67a05a97c8
dev: remove InitializeParamsExt (#89) 2024-03-23 10:46:24 +08:00
Myriad-Dreamin
4139491019
chore: improve issue report templates and integration (#88)
* build: change order of rust cache

* build: link pr title

* build: update issue template
2024-03-23 10:09:23 +08:00
Myriad-Dreamin
81ed159e90
dev: test libraries in CI (#69)
* fix: canonicalize line feed for testing

* dev: test libraries in CI

* build: remove wrapper
2024-03-23 09:16:32 +08:00
Myriad-Dreamin
0cdbeaa38b
build: remove rust cache (#87) 2024-03-23 08:42:21 +08:00
Myriad-Dreamin
e62001530f
build: remove preview hacks (#86) 2024-03-23 07:37:38 +08:00
Myriad-Dreamin
2e7c7732dc
feat: mark correct expression boundary on all testing files from typst/typst (#85)
* fix: comment and set rules

* fix: losen for rules

* fix: chore field, escape

* fix: hash termination

* dev: handle math mode

* fix: terminate expressions on right braces

* dev: match spread operator

* dev: remove complex check on if

* dev: add two bugs

* dev: fix if/while conditions

* fix: terminate expressions on right braces 2
2024-03-23 01:19:43 +08:00
Myriad-Dreamin
10c3e0134a
feat: disable bracket colorizing according to textmate scopes (#81)
* feat: disable bracket colorizing according to textmate scopes

* feat: use typc as highlighting language
2024-03-22 21:23:26 +08:00
Myriad-Dreamin
14ef2e78e2
feat: provide more robust syntax highlight for expressions in markup context (#80)
* dev: robust if syntax

* dev: robust for syntax

* dev: if/for with content blocks

* dev: robust while syntax

* dev: lift identifier matchers

* dev: update test case

* dev: robust call syntax

* dev: robust arrow func syntax

* dev: robust set syntax

* dev: robust show syntax

* dev: robust let syntax

* dev: robust string literal syntax

* dev: robust include syntax

* dev: robust import syntax

* dev: expression continuation

* dev: error tolerance

* dev: robust inline/blocky raw syntax

* dev: chore fixes

* dev: fix call and raw

* dev: fix some markup

* dev: refactor many markup patterns

* dev: final touches

* dev: remove unused dep
2024-03-21 17:52:51 +08:00
Myriad-Dreamin
5c70b310de
build: disable lto (#84) 2024-03-21 14:06:40 +08:00
Myriad-Dreamin
bc9e2aa1e1
feat: parse comments for hover tooltip (#78) 2024-03-21 03:05:16 +08:00
Myriad-Dreamin
13e3562424
build: bump version to 0.11.1-rc2 (#79) 2024-03-20 18:25:15 +08:00
Myriad-Dreamin
a3948df5da
feat: init syntax library for function hover tip (#77)
* dev: introduce upstream tooltip

* feat: basic function definition

* feat: init syntax library

* abandon

* build: run syntax building

* fix: let expression

* fix: markup in code

* fix: raw code
2024-03-20 12:18:57 +08:00
Myriad-Dreamin
14fc4819f1
feat: hover tooltip on functions (#76)
* dev: introduce upstream tooltip

* feat: basic function definition
2024-03-20 00:02:11 +08:00
Myriad-Dreamin
b780a2a885
fix: typo (#75) 2024-03-19 03:20:16 +08:00
Myriad-Dreamin
7e94c7d47c
feat: provides correct semantic highlighting (#71)
* dev: initialize highlight test

* dev: add more cases

* fix: overlapping token

* fix: multiple lines token
2024-03-19 01:20:22 +08:00
Myriad-Dreamin
fb503ede1a
feat: use ts and preview crates (#73) 2024-03-18 23:01:07 +08:00
Myriad-Dreamin
cc1f418423
dev: reduce a bundle of ts usage in query crate (#72) 2024-03-18 23:00:27 +08:00
Myriad-Dreamin
c6509325a8
fix: steal the latest compiled document for lsp functions (#68) 2024-03-18 17:36:58 +08:00
Myriad-Dreamin
2fe992e933
dev: convert all syntax-level request and check main state before requesting (#67) 2024-03-18 17:36:43 +08:00
Myriad-Dreamin
5d123221db
fix: two bugs during initializing template (#65)
* fix: show packages only if it is favorited

* fix: vscode dark theme detection
2024-03-18 12:00:16 +08:00
Myriad-Dreamin
342c8969dc
feat: provide dhat instrumenting feature for heap usage analysis (#64)
* fix: get missing header in mirrorred input.

* feat: provide dhat instrumenting feature for heap analysis.
2024-03-18 02:29:00 +08:00
Myriad-Dreamin
cfca8b1dba
build: bump version to 0.11.0 (#63) 2024-03-17 19:52:01 +08:00
Myriad-Dreamin
d937153888
feat: init template in place (#62) 2024-03-17 16:59:21 +08:00
Myriad-Dreamin
512d33b734
feat: add favorite function in template gallery (#61) 2024-03-17 16:56:54 +08:00
Myriad-Dreamin
e0c2c575bf
fix: editor-tools files are not bundled (#60) 2024-03-17 15:38:27 +08:00
Myriad-Dreamin
3c37ce174a
build: bump version to 0.10.3 (#54)
* build: bump typst to v0.11.0

* build: bump dependencies

* build: update readme and changelog

* build: bump version to 0.10.3

* fix: use a different branch for building

* build: set correct rev to typst-preview

* fix: in perfects
2024-03-17 00:57:36 +08:00
Myriad-Dreamin
d8cc783c14
feat: supports vscode variables in configurations and (#53)
+ more testing and validation
2024-03-16 23:12:40 +08:00
Myriad-Dreamin
c27bf6a3c4
feat: add template gallery as template picker (#52)
* feat: add template gallery as template picker

* fix: ci install deps and add regular build checking

* fix: ci regular build checking again

* fix: stupid matrix
2024-03-16 22:23:09 +08:00
Myriad-Dreamin
9b7b4d7f56
dev: change position of inlay hint params (#51)
* dev: change position of inlay hint params

* dev: update test snapshot
2024-03-16 16:53:54 +08:00
Myriad-Dreamin
c92149fa3e
feat: add init template command (#50)
* feat: add init template command

* dev: remove bad patch
2024-03-16 13:21:29 +08:00
Myriad-Dreamin
f4fd0fc276
feat: leave typst-preview as optional dependencies (#49)
* feat: leave typst-preview as optional dependencies

* build: configure cargo.toml correctly
2024-03-16 11:09:04 +08:00
Myriad-Dreamin
222681ca97
feat: disable inlay hints on one line content blocks (#48) 2024-03-16 10:22:10 +08:00
Myriad-Dreamin
d5c7bcdd18
feat: support syntax analysis on packages (#47)
* feat: support syntax analysis on packages

* dev: add more tests
2024-03-16 10:21:59 +08:00
Myriad-Dreamin
f683426753
feat: allow fuzzy selection to deref targets (#46) 2024-03-16 04:22:54 +08:00
Myriad-Dreamin
be244840b2
feat: support rest code lens (#45) 2024-03-16 04:21:10 +08:00
Myriad-Dreamin
2d2857e6f3
docs: refactor and documenting analyzer code (#44)
* dev: refactor and documenting analyzer code

* dev: documenting some lsp api
2024-03-16 02:54:56 +08:00
Myriad-Dreamin
da7028f59c
dev: reimplements definition analysis (#43)
* dev: reimplements definition based on def use analysis

* dev: reimplements lsp apis based on new definition api

* fix: most cases of references

* fix: scope of params
2024-03-15 22:05:53 +08:00
Myriad-Dreamin
5fa4f8f94f
feat: support query of cross-module references (#42)
* feat: support cross-module references by wild-card import

* feat: support cross-module references by ident import

* feat: support cross-module references by alias import

* docs: update readme

* dev: remove two debug printing
2024-03-15 15:43:42 +08:00
Myriad-Dreamin
fe25933d0e
dev: implements module dependencies analysis (#41) 2024-03-15 14:33:14 +08:00
Myriad-Dreamin
c88e37ffba
dev: create tests module (#40) 2024-03-15 14:03:23 +08:00
Myriad-Dreamin
4aa60c5acb
dev: unfocus document on changed to other files (#39) 2024-03-15 14:03:07 +08:00
Myriad-Dreamin
61be2f78e4
feat: implement inlay hint configuration (#37)
* fix: unstable order of reference results

* feat: inlay hint configuration

* dev: test inlay hint on `lr`
2024-03-15 00:37:57 +08:00
Myriad-Dreamin
dbd1726d08
feat: support goto/find references inside of modules (#34)
* feat: support goto declaration inside of modules

* fix: change goto declarations provider to references provider

* fix: redact uri in references response
2024-03-14 20:38:30 +08:00
Myriad-Dreamin
9d344570b4
dev: borrow the document state inside of compiler (#33) 2024-03-14 20:37:14 +08:00
Myriad-Dreamin
c7825c3174
feat: deferred root resolution (#32)
* dev: create state module

* dev: rearrange roots code

* refactor: reduce deferred values

* feat: deferred root resolution

* dev: resolve root before waiting
2024-03-14 18:57:10 +08:00