Commit Graph

25 Commits

Author SHA1 Message Date
Ben Langmuir
198266d775 [completion] Add server-side filtering UIDs 2020-10-16 11:36:06 -07:00
Rintaro Ishizaki
a27470dc71 [sourcekitd] Add an option to completion request to sort results
rdar://problem/60799439
2020-03-26 13:53:40 -07:00
Alex Hoppen
45f001c291 Return Fix-its in PublishDiagnostics as defined in a clangd LSP-extension 2020-01-27 12:23:35 -08:00
Butta
a4cec47d70 Android: add native support 2019-12-26 15:49:13 +05:30
Alex Hoppen
2422ddc8cd Add the textEdit parameter to code completion responses 2019-12-06 10:51:13 -08:00
Ben Langmuir
775e198f77 Rename LSPSupport -> LSPLogging to reflect reduced scope
Ideally we can someday migrate this to something more standard such as
swift-log, and make it explicit how to control logging for the JSONRPC
module.
2019-11-19 11:08:31 -08:00
Alex Hoppen
05ecd26d08 Reorganize the repository into a set of bare LSP modules and SourceKit modules
We will be able to split the LSP modules off later. These LSP modules
will provide the ability to write custom LSP servers and clients in
Swift. The sourcekit-lsp repository will build on top of this new
package to provide an LSP implementation that creates a language server
for Swift and C-based-languages.
2019-11-14 10:35:06 -08:00
David Goldman
043d27860d Remove the need to use Connection to talk to internal LSPs
`SourceKitServer` now talks to the `SwiftLanguageServer` and
`ClangLanguageServerShim` directly through the `ToolchainLanguageServer`
protocol.

Each individual `ToolchainLanguageServer` manages its own threading.

Change-Id: I77aa5468f1486bd4e6e6fdb732c6a051ee05c6d1
2019-10-09 13:49:11 -04:00
Bruno Rocha
8861ac06c1 Add Local Refactoring 2019-10-03 11:20:41 -03:00
Ben Langmuir
e1fa70d086 Update SPM -> TSC module name prefixes 2019-09-03 08:29:19 -07:00
Ben Langmuir
32497e6af9 Move diagnostic conversion into its own file 2019-08-26 21:57:37 -07:00
cukr
9f9cc9a734 Implement color presentation 2019-05-30 19:36:09 +02:00
Ben Langmuir
36e567395e Merge pull request #98 from Trzyipolkostkicukru/cukr/document-symbol
Implement document symbol request
2019-05-29 17:20:16 -07:00
cukr
eb8ea967ba Implement document symbol request 2019-04-20 22:49:47 +02:00
Gwen Mittertreiner
0868c5fc4b Fixup SourceKit module on Windows 2019-04-18 13:16:30 -07:00
Ben Langmuir
77351820ce Use AbsolutePath.pathString instead of description
Per review feedback; pathString is semantically the string we want,
while description is for creating a human-readable string.
2019-02-01 18:05:11 -08:00
Ben Langmuir
7f697fa14a [swiftpm] Update to latest master
* import Utility -> import SPMUtility
* AbsolutePath.asString -> path.description or "\(path)"
2019-02-01 16:47:04 -08:00
Marcin Krzyzanowski
1e035fdfd5 Completion item returns type name in details 2019-01-15 13:37:41 +01:00
Ben Langmuir
cf18088bea [swift] Fix folding range for comment.url, comment.mark types
Just a couple of syntaxtypes that got missed.
2018-12-13 21:18:35 -08:00
Ben Langmuir
51d926cffc Merge pull request #24 from rockbruno/foldingRange
Add "textDocument/foldingRanges"
2018-12-13 08:57:31 -08:00
Abdullah Selek
9c6fd98d38 Use Void over () on SourceKit files. 2018-12-08 18:29:13 +00:00
Bruno Rocha
37d14d486d Fold doc comments 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
1def01e634 Use RTLD_DEEP_BIND on Linux when opening libsourcekitdInProc
We have multiple copies of llvm symbols (indexstoredb, indexstore,
llbuild via swiftpm, and sourcekitd), so it's important to keep them
isolated. In practice this seems to have started breaking after we
updated swiftpm and llbuild was added, but it was already a potential
issue before that. The most egregious issue is if you build sourcekit
with assertions, it enables ABI-breaking checks in llvm. On macOS this
dlopen behaviour is already the default.
2018-11-16 16:17:40 -08:00
Ben Langmuir
aabf57a252 Import SourceKit-LSP sources 2018-11-13 15:50:48 -08:00