Abdullah Selek
ffd1997626
Cleanup spaces in empty lines.
2019-01-09 22:55:31 +00:00
David Goldman
d1f9578536
Support for window/showMessage(Request) ( #62 )
...
This allows the server to display a message in the client and
optionally gives the client the ability to select an action item.
2019-01-09 11:30:28 -08:00
Eric Stern
73ba7f4eef
Correct location property of DiagnosticRelatedInformation
2018-12-24 14:35:01 -08:00
Ben Langmuir
d7b0b62038
Merge pull request #49 from benlangmuir/fold-url
...
[swift] Fix folding range for comment.url, comment.mark types
2018-12-14 07:15:04 -08:00
Ben Langmuir
b72d37d70f
[swift] Sort folding ranges
...
This isn't strictly necessary, but it makes the output more predictable
for testing and eliminates any possible non-determinism in the
responses.
2018-12-13 20:27:48 -08:00
Ben Langmuir
0b06baf933
[swift] Add tests for documentHighlight request
2018-12-13 18:11:47 -08:00
Ben Langmuir
51d926cffc
Merge pull request #24 from rockbruno/foldingRange
...
Add "textDocument/foldingRanges"
2018-12-13 08:57:31 -08:00
Bruno Rocha
c4f4038ed2
Abort folding range requests after reaching the client's limit
2018-12-13 13:39:22 -02:00
Ben Langmuir
7a64c89ba6
[lsp] Remove dead initializer on MessageDecodingError
2018-12-12 19:45:18 -08:00
Ben Langmuir
b3b9b243fb
[test] Add test for DiagnosticCode serialization
2018-12-12 19:45:18 -08:00
Ben Langmuir
31ac957edc
[test] Add tests for LSP Language properties and serialization
2018-12-12 19:45:18 -08:00
Abdullah Selek
3cfa9f14f5
Use Void over () on LanguageServerProtocol files.
2018-12-08 18:27:41 +00:00
Bruno Rocha
37d14d486d
Fold doc comments
2018-12-08 16:07:54 -02:00
Bruno Rocha
05eee7a92a
Folding Ranges gardening
2018-12-08 16:07:54 -02:00
Bruno Rocha
c4603e4da3
Folding Ranges improvements and gardening
2018-12-08 16:07:54 -02:00
Bruno Rocha
3f58e09dcf
Add folding range requests
...
Add remaining foldingRange protocol capabilities
Sending offset data to folding requests
FoldingRange test
Support folding comments
Add test for folded comments
2018-12-08 16:07:54 -02:00
Ben Langmuir
12dc9ddfac
[gardening] Spellcheck the changed comments
2018-12-07 23:38:59 -08:00
Ben Langmuir
51be8a9abb
[gardening] Cleanup comments in Message(s).swift
2018-12-07 22:50:24 -08:00
Ben Langmuir
4e524d595b
[lsp] Document the initialize request and split into its own file
2018-12-07 22:48:14 -08:00
Ben Langmuir
c39f2467e3
[lsp] Document the cancelRequest notification and split into its own file
2018-12-07 22:37:08 -08:00
Ben Langmuir
9991227875
[lsp] Document the shutdown/exit request and split into their own file
2018-12-07 22:33:03 -08:00
Ben Langmuir
ea2e15bd08
[lsp] Document the logMessage notification and split into its own file
2018-12-07 22:29:02 -08:00
Ben Langmuir
4775d9689c
[lsp] Document the didChangeConfiguration notification and split into its own file
2018-12-07 22:26:03 -08:00
Ben Langmuir
9ea71b531b
[lsp] Document the workspaceFolders request and split into its own file
2018-12-07 22:18:43 -08:00
Ben Langmuir
8561419c6e
[lsp] Document the text sync notifications and split into their own file
2018-12-07 22:07:37 -08:00
Ben Langmuir
fd830950c3
[lsp] Document the publishDiagnostics notification and split into its own file
2018-12-07 21:46:44 -08:00
Ben Langmuir
291fdc8e9e
[lsp] Document the completion request and split into its own file
2018-12-07 21:37:30 -08:00
Ben Langmuir
e02b573dce
[lsp] Document the hover request and split into its own file
2018-12-07 21:18:47 -08:00
Ben Langmuir
3db952465b
[lsp] Document the definition request and split into its own file
2018-12-07 21:10:45 -08:00
Ben Langmuir
9732d065ad
[lsp] Document the references request and split into its own file
2018-12-07 21:10:40 -08:00
Ben Langmuir
58f0144d08
[lsp] Document the documentHighlight request and split out of Messages.swift
2018-12-07 18:33:44 -08:00
Ben Langmuir
68867b3cfd
[lsp] Document the formatting requests and split them into their own file
2018-12-07 18:33:44 -08:00
Ben Langmuir
882b20745e
[lsp] Move SymbolInfoRequest to its own file
2018-12-07 18:33:44 -08:00
Ben Langmuir
4880184603
[gardening] Move synthesized conformances to primary declaration
...
The style I started with (putting each conformance on its own extension)
turned out to be pointlessly verbose in practice. It also separated the
protocol from the "implentation" in the sense that the property
declarations are what determine how the conformance works.
2018-12-07 17:38:52 -08:00
Ben Langmuir
740ccb9a1d
[gardening] Remove unnecessary url: label from TextDocumentIdentifier
2018-12-07 17:30:04 -08:00
Ben Langmuir
dc32473696
Merge pull request #36 from benlangmuir/symbol-info
...
[sourcekit] Adopt symbolInfo to implement definition and references
2018-12-07 10:04:31 -08:00
Ben Langmuir
8b3cf55022
[swift] Cleanup CursorInfo and Hover requests
...
Factors the cursor_info requests into a single API to asynchronously
make the sourcekitd cursor_info request and wrap the result for easier
consumption from Swift (but not other processing).
Also, cleanup the now unused extensions on Hover that were superceded by
symbolInfo.
2018-12-07 00:41:45 -08:00
Ben Langmuir
4b3b7ba768
[swift] Add bestKnownDeclaration location to symbolInfo for Swift
...
This is useful for local jump to definition. For now, only swift
implements this.
2018-12-06 22:56:23 -08:00
Ben Langmuir
7c82c9b583
[swift] Implement symbolInfo for Swift
2018-12-06 22:38:25 -08:00
josh
22a49414e8
Fix merge conflicts (Toolchain, SwiftPMWorkspace, SwiftLanguageServer)
2018-12-07 13:39:43 +09:00
Joshua Kaplan
e3ade6c50f
Use Void over ()
2018-12-07 13:29:16 +09:00
Ben Langmuir
6c1c5d3283
Add textDocument/symbolInfo LSP extension
...
Clangd provides a symbolInfo request as an extension to LSP that is
equivalent to sourcekitd's cursor info. For now, just add the new types
and add plumb the request through so we can test it in isolation. In a
future commit this will be used to power jump-to-definition.
2018-12-06 20:06:51 -08:00
Marcin Krzyzanowski
34a654e27b
Public initializer
2018-11-23 19:44:16 +01:00
Marcin Krzyzanowski
a25cfb8467
Add workspace/workspaceFolders request model.
2018-11-23 19:36:28 +01:00
Marcin Krzyzanowski
0cfd7cb38f
Adds workspace/didChangeWorkspaceFolders notification
2018-11-23 19:23:25 +01:00
Ben Langmuir
048d72b163
Upgrade SwiftPM dependency to master branch
...
We are tied to using a SwiftPM that matches the toolchain, so upgrade
from 0.3.0 to .branch("master") and add a pins file to manage updating
that dependency.
This was driven by changes that broke loading packages being developed
with newer version of SwiftPM when using the 0.3.0 tag of libSwiftPM.
However, the changes seem to work when going in the other direction, so
using the newer libSwiftPM hasn't caused any known regressions for using
older toolchain versions (not guarantteed and not tested extensively
though).
This fixes using the latest (November 13) toolchain snapshot on macOS.
On Linux there are other issues not specific to LSP.
2018-11-16 15:11:38 -08:00
Adam Nemecek
97fd1e8cb3
trimmed whitespace
2018-11-15 14:12:34 -08:00
Ben Langmuir
aabf57a252
Import SourceKit-LSP sources
2018-11-13 15:50:48 -08:00