1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-06 08:07:37 +03:00
Commit Graph

38 Commits

Author SHA1 Message Date
Yannik Sander
53a9ad5fc5 Fix warnings and typo 2021-11-09 11:45:42 +01:00
Yannik Sander
00a2d93ddc Resolve metadata of referenced items 2021-11-09 11:43:26 +01:00
Yannik Sander
683d6035e4 Impl jump to Contract definition 2021-11-09 11:40:18 +01:00
Yannik Sander
46a9fc4ca7 Print metadata on hover 2021-11-09 11:40:18 +01:00
Yannik Sander
3646ede403 Attach meta data to linearized terms 2021-11-09 11:40:18 +01:00
Avi Dessauer
d662af65b8 Fix request panic when file cannot be parsed 2021-11-08 12:19:28 -05:00
Avi Dessauer
6a03ba3e28 Fix hover panic when file cannot be parsed 2021-11-08 12:19:28 -05:00
Yannik Sander
e9438a6213 Document find_linearization_index 2021-11-04 13:31:14 +01:00
Yannik Sander
e0ad8eeca1 Fix method name typo 2021-11-04 12:50:11 +01:00
Yannik Sander
756fe9ebca Fix warnings using cargo fix 2021-11-04 12:20:51 +01:00
Yannik Sander
c80fc8ecda Move LSP Linearization impl to lsp crate 2021-11-04 12:09:26 +01:00
Yannik Sander
93e52d4fec Switch to codespan_lsp::position_to_byte_index in all cases 2021-11-04 10:56:46 +01:00
Yannik Sander
37adfd2237 Remove unnecessary files_mut calls 2021-11-04 10:49:12 +01:00
Yannik Sander
461e42fe1f to_str().unwrap() -> to_str_lossy() 2021-11-04 10:49:12 +01:00
Yannik Sander
99a6640572 Use codespan_lsp in hover implementation 2021-11-04 10:49:12 +01:00
Yannik Sander
acf961e35f Implement basic declaration completion 2021-11-04 10:49:12 +01:00
Yannik Sander
dcda4f02c6 Fix hover finding wrong item if exact start position match is found 2021-11-04 10:49:12 +01:00
Yannik Sander
b7c6841375 Update codespan library, downgrade lsp-types
codespan_lsp is to-date not compatible with lsp-types >0.88
lsp_types is already at 0.91
codespan_lsp has already updated the bounds upstream but did not not
yet update on crates.io
2021-11-04 10:49:12 +01:00
Yannik Sander
de8960ea31 Address documentation requests and fix method interface 2021-11-02 13:19:59 +01:00
Yannik Sander
2c3092da30 Implement and enable finding references 2021-10-29 14:24:12 +02:00
Yannik Sander
24bb72c089 Nicer hover ui 2021-10-29 14:24:12 +02:00
Yannik Sander
b789cf8445 Implement and expose goto defnition 2021-10-29 14:24:12 +02:00
Yannik Sander
274a05a301 Extract finding location function 2021-10-29 14:24:12 +02:00
Yannik Sander
6396f5b842 Pretty print type 2021-10-29 14:24:12 +02:00
Yannik Sander
3da4f07865 Move hover request handler to own module and improve finding items 2021-10-29 14:24:12 +02:00
Yannik Sander
f63c36064f Generalize location extractor function 2021-10-29 14:24:12 +02:00
Yannik Sander
12dc9bb8bf Use typestate based linearization api 2021-10-29 14:24:12 +02:00
Yannik Sander
c12ea1a601 Implement hover handler
WIP: no hover information is sent back
2021-10-29 14:24:12 +02:00
Yannik Sander
684ff0cc57 Collect and cache type information 2021-10-29 14:23:53 +02:00
Yannik Sander
598d458878 Cargo fmt server.rs 2021-09-27 15:27:01 +03:00
Yannik Sander
7db78f32ba Include diagnostic notes in erro messages 2021-09-27 13:16:20 +03:00
Yannik Sander
92a0aafe89 Use environment with globals loaded 2021-09-25 15:32:38 +03:00
Yannik Sander
6abd895af7 Fix file update bug
Diagnostics would not update on file change
2021-09-24 20:16:23 +03:00
Yannik Sander
c15e183c03 Format nls project 2021-09-24 17:14:46 +03:00
Yannik Sander
87cf5827af Clean up cargo files 2021-09-24 17:14:24 +03:00
Yannik Sander
d381953442 Add change notification handler 2021-09-23 19:40:13 +03:00
Yannik Sander
f1d9a3bceb Fix problem with the client not starting up 2021-09-23 19:40:03 +03:00
Yannik Sander
26f1f920bc Move lsp to subfolder 2021-09-23 17:21:45 +03:00