1
1
mirror of https://github.com/oxalica/nil.git synced 2024-12-01 22:45:44 +03:00
Commit Graph

189 Commits

Author SHA1 Message Date
oxalica
4f10256e0e Asyncify nix-interop 2023-04-19 02:12:50 +08:00
oxalica
b7bc2636c1 Bump async-lsp and revert "Only enable ClientProcessMonitorLayer for Linux"
This reverts commit 263b82c6d2.
2023-04-19 01:57:08 +08:00
oxalica
263b82c6d2 Only enable ClientProcessMonitorLayer for Linux 2023-04-18 03:36:50 +08:00
oxalica
a22c8d85a4 Warn when non-pipe-like stdin/stdout is used 2023-04-18 03:14:51 +08:00
oxalica
c86e96c003 Use async-lsp from crates.io to fix nix build 2023-04-18 02:55:54 +08:00
oxalica
51da89f1ec Report progress when archiving flake 2023-04-17 11:34:58 +08:00
oxalica
66dc5e7d94 Guard show_message_request with client capabilities 2023-04-17 11:34:58 +08:00
oxalica
5c55e4c6b4 Archive flake when needed 2023-04-17 11:22:21 +08:00
oxalica
ea66982de7 Refactor diagnostics updating 2023-04-17 11:22:21 +08:00
oxalica
0ff186cc42 Refactor config updating event 2023-04-17 11:22:21 +08:00
oxalica
578e2c28d3 Asyncify flake workspace loading task 2023-04-17 11:22:21 +08:00
oxalica
0edd88a682 Switch to async-lsp framework 2023-04-17 11:21:52 +08:00
oxalica
1d5bc81023 Fix typo 2023-04-14 03:06:42 +08:00
oxalica
df541a798d Suppress unused warnings for flake auto-inputs
Fixes #73
2023-04-14 03:04:26 +08:00
oxalica
a55f287f24 Make tests platform-agnostic 2023-04-14 02:36:12 +08:00
oxalica
9995235134 Update dependencies 2023-04-14 02:12:57 +08:00
oxalica
0718fca59b Parse rec attrsets in flake.nix 2023-03-30 22:04:10 +08:00
oxalica
f3eaa77002 Escape invalid identifiers in completions 2023-03-29 16:24:15 +08:00
oxalica
932803b1de Fix panics when flake inputs contain self 2023-03-28 21:44:43 +08:00
oxalica
775ba9e6ac Parse flake outputs and add flake package meta 2023-03-27 00:10:43 +08:00
oxalica
73fda84341 Warn when running language server in terminal 2023-03-24 14:18:35 +08:00
oxalica
431d4540de Split out LSP initialization and return serverInfo 2023-03-24 13:51:26 +08:00
oxalica
6d01eb0ad1 Use poll(2) instead of select(2) 2023-03-24 13:37:09 +08:00
oxalica
48009b60fa Refactor LSP main loop 2023-03-24 13:16:45 +08:00
oxalica
8463c135ad Translate and inject option types from Nix 2023-03-14 01:14:22 +08:00
oxalica
5b99f7aab5 Inject NixOS options 2023-03-13 22:46:45 +08:00
oxalica
9a043a5039 Add NixOS configuration type database input 2023-03-13 17:47:56 +08:00
oxalica
fe38ceaae6 Move string escaping to syntax::semantic and fix 2023-03-13 13:39:44 +08:00
oxalica
2552c08e39 Fix parsing of ' in indented strings 2023-03-11 23:13:46 +08:00
figsoda
e5fcdc168c
Add string rewriting assists (#69) 2023-03-11 23:05:19 +08:00
oxalica
457f6020be Impl subcommand parse 2023-03-11 22:51:43 +08:00
oxalica
7b0b15021e Extract error reporting from diagnostics subcommand 2023-03-11 22:50:28 +08:00
oxalica
09bcbd1ddd Ignore root node itself as flake inputs
This is not perfect but we don't support out-of-store flake inputs yet.

Fixes #71
2023-03-11 09:01:10 +08:00
oxalica
bbca41c5ee Apply clippy::uninlined_format_args 2023-03-10 16:10:09 +08:00
oxalica
4ec9367726 Apply clippy::manual-let-else 2023-03-10 16:10:09 +08:00
oxalica
4a9f128200 Apply clippy::{doc_markdown,missing-panics-doc} 2023-03-10 16:10:02 +08:00
figsoda
d101741884
Implement type inference for rest attributes (#68) 2023-03-09 06:17:13 +08:00
oxalica
b5797b481a Fix unexpected remove from local_file_set 2023-03-09 04:08:45 +08:00
figsoda
267e2b4d73 Briefly document _ attributes 2023-03-08 22:18:41 +08:00
figsoda
4e31fede0a Correct and extend types for nixosConfigurations 2023-03-08 22:18:41 +08:00
figsoda
59ffbac047 Consider system attributes when typing flake outputs 2023-03-08 22:18:41 +08:00
oxalica
fc91c3f6d6 Rename confusing SyntaxKind::is_* 2023-03-07 03:30:52 +08:00
Moritz Böhme
bb9a748cce Add remove_empty_let_in assist 2023-03-05 06:19:17 +08:00
oxalica
0f918f956f Warn unused parameters in flake outputs lambda 2023-03-04 02:30:16 +08:00
oxalica
f40199bea2 Warn unused pat parameters for modules and packages 2023-03-04 02:25:42 +08:00
oxalica
dace5df783 Guess ModuleKind for packages and NixOS modules 2023-03-04 01:37:10 +08:00
oxalica
ba70fc01fd Split out ModuleKind guessing 2023-03-03 22:00:24 +08:00
oxalica
d4e6677846 Export file referrer query as experimental/parentModule
See: https://github.com/microsoft/language-server-protocol/issues/1002
2023-02-18 06:12:56 +08:00
oxalica
87d007b2ab Track referrers of modules 2023-02-17 21:21:51 +08:00
oxalica
ea8ee40bd1 Sweep unused dependencies 2023-02-14 23:54:14 +08:00