1
1
mirror of https://github.com/oxalica/nil.git synced 2024-11-29 08:09:42 +03:00
Commit Graph

151 Commits

Author SHA1 Message Date
figsoda
cbc6298c7a Add multiple rhs support for convert_to_inherit assist 2022-12-06 04:53:34 +08:00
figsoda
ef9bdb801e add convert_to_inherit for { a.b = b; } 2022-12-02 05:22:18 +08:00
oxalica
f62a769325 Limit semantic token range to fix performance issue 2022-12-01 07:41:39 +08:00
oxalica
10e7fc394b Impl documentHighlight 2022-11-28 00:40:58 +08:00
oxalica
eb7c84c429 Remove rowan dependency from crates except syntax 2022-11-26 17:58:00 +08:00
oxalica
8001f0d71b Don't highlight string fragment
Fragment highlighting would overwrite the highlighting of injected
languages.
2022-11-26 16:33:32 +08:00
oxalica
9794a2eb97 Impl assist to flatten Attrset in bindings 2022-11-25 01:23:33 +08:00
oxalica
655d5247a6 Impl assist to pack bindings 2022-11-25 00:23:22 +08:00
oxalica
1f5d8ceee0 Simplify and fix tests for assists 2022-11-24 23:07:31 +08:00
oxalica
f1304942e3 Fix rust 1.64 compatibility
nixpkgs still have rust 1.64 on master.
2022-11-24 19:20:42 +08:00
oxalica
8d32b2a081 Impl code action for converting to inherit 2022-11-24 03:43:03 +08:00
oxalica
4087d3acde Optimize searching let and rec in Attrset 2022-11-16 21:39:53 +08:00
oxalica
1ac520b784 Refactor Attrset desugaring and move out some logic 2022-11-16 21:22:27 +08:00
oxalica
3fa46cc956 Track Attr source info in Ty 2022-11-14 20:17:34 +08:00
oxalica
93f15d882f Impl document links 2022-11-10 03:31:23 +08:00
oxalica
3749c6bb3a Keep literal strings during lowering 2022-11-10 03:31:23 +08:00
oxalica
e3ce3bfca0 Move identifier check and quoting into syntax 2022-11-10 01:25:01 +08:00
oxalica
1e3fdf59cb Fix type for condition expr of if 2022-11-09 23:07:15 +08:00
oxalica
f43380d009 Tweak type formatter 2022-11-07 14:47:06 +08:00
oxalica
e8659c2e08 Fix clippy 2022-11-07 13:58:56 +08:00
oxalica
3171734d0d Show hover message for selection Attr 2022-11-07 13:56:25 +08:00
oxalica
72db1ef2bc Impl completion triggered . and ? 2022-11-07 12:58:01 +08:00
oxalica
2997e14a66 Fix completion inside non-last Attr 2022-11-07 12:29:30 +08:00
oxalica
efca332ce9 Complete attrset fields 2022-11-07 10:50:59 +08:00
oxalica
2cd3354204 Show types in hover messages 2022-11-07 09:35:09 +08:00
oxalica
8e4b0d6764 Initial impl for type inference 2022-11-07 09:14:10 +08:00
oxalica
19871b3842 Move string-related desugaring into syntax crate 2022-11-03 03:41:03 +08:00
oxalica
c84d1619d0 Refactor API of VfsPath 2022-10-11 02:44:14 +08:00
oxalica
2a9dcd5b15 Resolve Path to VfsPath instead of FileId
This allows resolving to files not loaded. File existence check is
delayed to LSP server side.
2022-10-04 05:01:50 +08:00
oxalica
31b714f3da Use absolute VfsPath and remove file preloading
We currently don't enable any workspace features.
Reading file on demand can be more robust and memory efficient.

Fixes #21
2022-09-28 17:56:20 +08:00
oxalica
ec7d3490f2 Report duplicated lambda parameters 2022-09-27 22:41:22 +08:00
oxalica
ac84014360 Clarify build requirements and add CI 2022-09-27 22:23:22 +08:00
oxalica
16c255449a Impl basic support for document symbol hierarchy
Currently the tree is flattened to LetIn and *Attrset nodes. Only
binding names are listed.

Fixes #16
2022-09-26 02:04:51 +08:00
oxalica
a370df35c9 Impl diagnostic filter 2022-09-25 23:47:58 +08:00
oxalica
fe625a2692 Decouple error messages for human from tests 2022-09-25 21:40:28 +08:00
oxalica
02be7d9628 Tweak builtins and hint user about missing docs 2022-09-23 18:52:47 +08:00
oxalica
f94b668d25 Impl hover for names 2022-09-22 20:12:47 +08:00
oxalica
c361e61da0 Show docs for builtin completions 2022-09-22 18:48:16 +08:00
oxalica
cf182a8ca4 Generate builtins from Nix 2022-09-22 18:26:56 +08:00
oxalica
039ae629eb Support renaming inherited names 2022-09-21 18:58:23 +08:00
oxalica
5cab069314 Monomorphize UnexpectedToken error 2022-09-20 19:53:24 +08:00
oxalica
d31baa16cb Fix highlighting of or 2022-09-20 16:25:45 +08:00
oxalica
0ab60fdff0 Unify naming of bijection getters to A_for_B for B -> A 2022-09-19 09:28:17 +08:00
oxalica
8a1a899cff Tweak VFS API to simplify usage 2022-09-19 09:28:17 +08:00
oxalica
bb186c9d14 Fix Attr highlighting 2022-09-12 10:56:37 +08:00
oxalica
4f3f9c970d Impl semantic highlighting 2022-09-12 09:59:04 +08:00
oxalica
b469b939f1 Support renaming to strings 2022-09-06 09:00:15 +08:00
oxalica
55cda6788c Impl renaming 2022-09-06 08:49:22 +08:00
oxalica
0cdcbe92db Always use the whole Attr location for Name 2022-09-06 06:55:38 +08:00
oxalica
dd476b39e7 Proper error handling for LSP 2022-09-06 04:41:42 +08:00
oxalica
5bdf49686c Refactor workspace layout 2022-09-06 01:54:33 +08:00