Commit graph

74 commits

Author SHA1 Message Date
Myriad-Dreamin
d4dda9e06f
feat: support formatters (#113)
* feat: supports formatter

* feat: supports dynamic configuration and typstfmt

* fix: test
2024-03-28 16:28:00 +08:00
Myriad-Dreamin
3344eebe3f
feat: correctly parse and show hover doc (#105)
* feat: seperate content on hover tips

* dev: half hover

* fix: ensure extracting docs correctly
2024-03-27 10:19:34 +08:00
Myriad-Dreamin
4d21026661
dev: more accurate deref target (#104) 2024-03-26 11:40:20 +08:00
Myriad-Dreamin
413c2e8deb
feat: add svg and png export (#101) 2024-03-26 11:25:46 +08:00
Myriad-Dreamin
e649ad308f
refactor: tidy up compiler server/client actors (#100)
* refactor: split construct/preview code

* refactor: clean server-client actors

* fix: infinite loop

* fix: compile error
2024-03-26 11:15:32 +08:00
Myriad-Dreamin
37982a6870
fix: error tolerance on external paths (#96) 2024-03-26 10:54:26 +08:00
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
b6dd6671c3
fix: convert EOF position correctly (#92) 2024-03-23 18:59:19 +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
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
bc9e2aa1e1
feat: parse comments for hover tooltip (#78) 2024-03-21 03:05:16 +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
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
cc1f418423
dev: reduce a bundle of ts usage in query crate (#72) 2024-03-18 23:00:27 +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
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
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
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
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
f7860bd4b7
feat: add def use analysis for external items (#26)
* feat: add def use analysis for external items

* fix: recursive import wildcard
2024-03-13 15:05:52 +08:00
Myriad-Dreamin
1f5f38895d
feat: add def use analysis for module items (#25)
* feat: analyze lexical hierarchy for import items

* feat: add def use analysis for module items
2024-03-13 12:05:28 +08:00
Myriad-Dreamin
32d74194c0
dev: move snaps (#20)
* dev: move snaps

* build: update cargo.lock
2024-03-12 14:10:24 +08:00
Myriad-Dreamin
1a05e4274c
feat: add def use analysis inside of module (#19)
* dev: add snapshot map

* feat: add def use analysis inside of module
2024-03-12 14:09:48 +08:00
Myriad-Dreamin
ee131ac68a
feat: analyze lexical hierarchy for def-use relations (#17) 2024-03-12 12:24:53 +08:00
Myriad-Dreamin
3fe61971b5
feat: support more ast nodes to folding (#11) 2024-03-11 23:47:13 +08:00
Myriad-Dreamin
47a9b88c90
feat: add tests for inlay hints (#8) 2024-03-11 20:54:19 +08:00
Myriad-Dreamin
50a4f1b5d4 feat: add the new context keyword 2024-03-11 16:05:04 +08:00
Myriad-Dreamin
8bfbe7706e dev: use implicit autocomplete 2024-03-11 15:58:07 +08:00
Myriad-Dreamin
e714ab462f feat: fix show pdf and add export pdf code lens 2024-03-11 13:22:55 +08:00
Myriad-Dreamin
5a9990fde3 feat: cyclic depdency detection 2024-03-11 01:29:37 +08:00
Myriad-Dreamin
28fc0fc036 fix: missing typst-preview 2024-03-10 21:49:04 +08:00
Myriad-Dreamin
e6a1397c20 fix: shifted completion cursor 2024-03-10 21:32:32 +08:00
Myriad-Dreamin
9c9fcd91ba feat: adapt to rust analyzer's server crate 2024-03-10 17:54:55 +08:00
Myriad-Dreamin
49244fe8df build: bump typst to 0.11.0-rc1 2024-03-10 03:45:13 +08:00
Myriad-Dreamin
2a60c1caf9 fix: call typst-ide with cursor values 2024-03-10 01:38:31 +08:00
Myriad-Dreamin
888aecbe7e chore: improve style 2024-03-10 00:59:58 +08:00
Myriad-Dreamin
4e6e25f816 dev: move import analyzer code 2024-03-10 00:59:34 +08:00
Myriad-Dreamin
549d74858f feat: find module path destination 2024-03-10 00:20:25 +08:00