Commit Graph

145 Commits

Author SHA1 Message Date
XeroOl
8dc4f3d0f8 Rename language -> analyzer 2024-06-05 01:22:08 -05:00
XeroOl
c56ce89ccf λ now warns about unused arguments 2024-06-04 20:17:21 -05:00
XeroOl
7194838132 return both the server and client from create-client 2024-06-01 23:17:00 -05:00
XeroOl
9770e3eefd Rename self->client in tests 2024-06-01 23:12:42 -05:00
XeroOl
0ddd8f0bf0 TIC-80 docs sort of work?
{:fennel-ls {:native-libraries [:tic80]}}
2024-06-01 15:14:15 -05:00
XeroOl
e0067880d1 Unknown field lint only triggers at stack size 1
This is probably not a good commit message, but basically, if you
require a module foo, and then look for foo.bar.baz, it won't trigger,
but foo.bar will trigger it.
2024-05-29 22:38:55 -05:00
XeroOl
3f5984df06 Add extra check to textEdit
I really should just make it (pairs) through all the keys, but for now
I'll just keep adding the checks manually.
2024-05-29 22:01:56 -05:00
XeroOl
4c92af1bc5 Align allowed-globals with the currently selected docs 2024-05-17 20:45:37 -05:00
XeroOl
a122d9d361 Make the root folder optional 2024-05-17 20:45:16 -05:00
XeroOl
1a21ee623d fix positionEncoding to be a capability 2024-05-15 22:58:51 -05:00
XeroOl
3dc9e36af6 workaround for fennel#221 2024-05-14 00:46:10 -05:00
XeroOl
e37c77958d fix zero-arg documented function formatting 2024-05-14 00:18:07 -05:00
XeroOl
3fad66a476 Switch docs to autogenerated 2024-05-13 23:58:37 -05:00
XeroOl
0068662c8b add test for a fix I did a while ago 2024-05-13 01:53:52 -05:00
XeroOl
8d57f60369 remove some comments :) 2024-05-13 01:07:05 -05:00
XeroOl
4bce5c87ec Tests for reader macros 2024-05-13 01:06:46 -05:00
XeroOl
f17342b7ce Fix hashfn and quote and unquote 2024-05-12 16:45:18 -05:00
XeroOl
34e0bce092 Hover in hashfn 2024-05-12 15:32:43 -05:00
XeroOl
be44cda696 Unknown field errors in _G are suppressed 2024-05-12 12:26:24 -05:00
XeroOl
711c225e9c Fix crash when searching non-table documentation 2024-05-06 10:36:07 -05:00
XeroOl
2d7c8b1ad7 Lints for doc fields, doc hovers on strings 2024-05-04 15:37:01 -05:00
XeroOl
926dff9267 Docs when completing string fields 2024-05-04 15:37:01 -05:00
XeroOl
d06e0dfbe8
test function to check code actions don't exist 2024-05-04 01:27:37 -05:00
XeroOl
944f57cc08 No duplicate scope completions 2024-04-30 21:42:00 -05:00
XeroOl
343777d301 eglot completion quirk tests 2024-04-30 21:40:07 -05:00
XeroOl
311ce2645e fix fennel-ls#22
This is getting messy, but now the same sym can reference multiple
places. (. file references mysym) only holds the last one, but
(. file definitions <x> :referenced-by) could still hold older
references.
2024-04-07 23:18:14 -05:00
XeroOl
59b966a25f Add a bunch of tests for compiler recovery
Ideally, any time you write:

(local x (<some form with compiler error>))
(print x)

I don't want it to say "unknown variable x". To make sure that's the
case, I need to do as much error recovery as possible. I don't have full
error recovery, but I've got the common cases, and I'm working down the
fennel.friends list
2024-03-28 23:51:22 -05:00
XeroOl
3bc530e11b in tests, separate compile error diagnostics from lints 2024-03-28 23:04:25 -05:00
XeroOl
b5750b1a8a rename diagnostic to lint 2024-03-28 23:01:20 -05:00
XeroOl
0fd6a48ed2 basic code action test for the (+) -> 0 lint 2024-03-28 22:41:23 -05:00
XeroOl
e81920585d add more tests for error recovery 2024-03-28 22:39:13 -05:00
XeroOl
e47ee55784 shuffle around how encoding works in the tests 2024-03-28 22:38:01 -05:00
XeroOl
7c81ffcbb3 First attempt at code actions, no tests yet 2024-03-26 14:12:34 -05:00
XeroOl
cc05d7089f final attempt at fixing builds.sr.ht 2024-03-04 00:38:47 -06:00
XeroOl
80d0e297a1 more likely pass builds.sr.ht tests 2024-03-04 00:36:53 -06:00
XeroOl
65ea473197 new rockspec to make the luarocks rock work 2024-03-04 00:30:06 -06:00
XeroOl
888689a3a1 Make tests pass on old lua versions 2024-03-03 23:14:22 -06:00
XeroOl
f14d91b9c4
add test for hover over modules 2024-03-03 23:03:31 -06:00
XeroOl
0a766c6425 Finally, documentation for table.insert 2024-03-02 20:12:27 -06:00
XeroOl
308f7d9930 fix broken test 2024-03-02 10:55:15 -06:00
XeroOl
1eb4a770dd Make the multisym splitter tiebreak the right way 2024-03-01 21:36:00 -06:00
XeroOl
cb8dc29bed Analyze (include) the same way as (require) 2024-03-01 17:37:32 -06:00
XeroOl
be997dc7fb add diagnostic test for unknown module field 2024-03-01 17:32:51 -06:00
XeroOl
0dd9c0ff65 improved formatting for destructure 2024-03-01 17:29:01 -06:00
XeroOl
cab3bbc49d remove the dummy test project files 2024-03-01 17:01:10 -06:00
XeroOl
25375715c7 Restore hovering to globals 2024-03-01 16:48:07 -06:00
XeroOl
66bcfc65e5 fix completions for M style modules 2024-03-01 16:39:46 -06:00
XeroOl
45ab692db4 don't warn for symbols hidden in macros 2024-03-01 14:52:23 -06:00
XeroOl
284983657f continue compilation in broken let statements 2024-03-01 14:51:18 -06:00
XeroOl
186c388344 Change tests to faith 2024-03-01 14:43:26 -06:00