Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Add more tests for code locations in LSP features #4503

Merged
merged 53 commits into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
c7490ce
Draft of a mock server for testing
necto Jul 17, 2024
c70df1e
Spy lsp communication up close
necto Jul 17, 2024
24fbb32
Working lsp server mock
necto Jul 17, 2024
b9a4367
lsp client definition for the mock lsp server
necto Jul 17, 2024
d8f860a
Working smoke test for the mock server
necto Jul 17, 2024
4259eb7
Minimize mock server greeting
necto Jul 18, 2024
397ecc0
Revert "Minimize mock server greeting"
necto Jul 18, 2024
1a0a69c
Make test-mock-lsp-server repeatable
necto Jul 18, 2024
3283dac
Use lexical scope capture for lsp-test-wait
necto Jul 18, 2024
8b0d46c
figured out the lexical scope. at least now the happy path shuts down…
necto Jul 18, 2024
7301bd1
Make mock-server test faster; kill the server more reliably
necto Jul 18, 2024
5f81634
Minimize server capabilities advertized
necto Jul 18, 2024
f0d65ab
Break down the mock diagnostic and assert it in the test
necto Jul 18, 2024
c5c77a4
Obviate the line number in lsp-test-diag-make
necto Jul 18, 2024
491b243
Small tweaks to the mock server script
necto Jul 19, 2024
aeea93d
Enable external command execution in the mock server
necto Jul 19, 2024
b01f8b2
Move the diagnostic generation from mock server to the test file
necto Jul 19, 2024
d724adc
Use sync wait, add a test for crashing a server
necto Jul 19, 2024
8c6b7ae
Add test for diagnostic update
necto Jul 19, 2024
dcead04
Demonstrate how diagnostics get stale
necto Jul 19, 2024
3cdd1c9
Rename sample.awk to sample.txt and use prog-mode; reasonable content
necto Jul 19, 2024
eeedabb
Factor out the list of ignored notifications in the mock lsp server
necto Jul 19, 2024
aa81a5e
Follow the convention in the test file name
necto Jul 19, 2024
0505bba
Better name for the mock lsp server test file
necto Jul 19, 2024
bf489d5
Add a header comment
necto Jul 19, 2024
be4404d
Add header comment
necto Jul 19, 2024
b99bfb2
Test demonstrating diagnostic clearup after a change
necto Jul 19, 2024
58d58ea
Doc strings for the mock server test
necto Jul 19, 2024
45631dc
Doc strings for mock lsp server
necto Jul 20, 2024
4c22a23
Use escape sequence for \r instead of unicode value
necto Jul 20, 2024
21715ec
Remove the todo list from mock server comments
necto Jul 20, 2024
d620e5e
Undo unnecessary modifications
necto Jul 20, 2024
0d36de3
Shrink lsp server lines to fit 80 chars, mostly
necto Jul 20, 2024
80d7eee
Simplify mcok server by using json-encode
necto Jul 20, 2024
e8cc424
Clarify comment
necto Jul 20, 2024
8506e57
Mock and test references
necto Jul 20, 2024
48a0dd6
Missing doc comment
necto Jul 20, 2024
80d8801
Fix lsp-mock-server-provides-references for emacs 27.2
necto Jul 23, 2024
ebc7c4c
Test folding ranges line numbers
necto Jul 20, 2024
e1172e2
Test highlighting ranges
necto Jul 20, 2024
a0132b1
Test document formatting action
necto Jul 20, 2024
f797d1d
[NFC] Factor out lsp-test-schedule-response, remove useless bits
necto Jul 21, 2024
a8c8005
Test codeAction with edits
necto Jul 21, 2024
360b394
Test documentChanges edit kind
necto Jul 21, 2024
68e6891
Test documentEdit with wrong version
necto Jul 21, 2024
43cd5b5
Simplify the wrong-version doc edit test
necto Jul 21, 2024
14989d9
Test with mcok server spontaneously requesting edits
necto Jul 21, 2024
ae1305e
Test go to declaration
necto Jul 21, 2024
99a6efd
Test for go to definition
necto Jul 21, 2024
2ef41df
Test inlayHint display
necto Jul 21, 2024
c78329f
Test display of code lens
necto Jul 21, 2024
2f5e5cf
Fix xref-related tests for emacs 27.2
necto Jul 23, 2024
c06d8c9
Fix race condition affecting lsp-mock-server-provides-inlay-hints test
necto Jul 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions test/fixtures/SamplesForMock/sample.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Line 0 unique word fegam and common
line 1 unique word broming + common
line 2 unique word normalw common here
line 3 words here and here
Loading
Loading