Commit Graph

12 Commits

Author SHA1 Message Date
Tristan Labelle
c076bd5282 Implement pull-model documentDiagnostics 2023-06-02 13:36:07 -04:00
Alex Hoppen
ca45a7a62b Return a .serverCancelled error code if the server cancels a request
`.cancelled` should only be returned if the client requested cancellation.
2022-12-05 08:45:36 +01:00
Alex Hoppen
93a8f91436 Update request and notification definitions to LSP 3.17 2022-12-01 10:44:40 +01:00
Alex Hoppen
8ba7262f21 Translate placeholders to LSP snippets in CodeActions
Previously, we would insert `<#code#>` placeholders when inserting missing protocol requirements (both via the Fix-It and the refactor command). Translate them to LSP placeholders before inserting them.

rdar://92161144
2022-04-26 14:31:49 +02:00
LebJe
a9a840c900 Provide Data Types in Document Outline; Provide Code Documentation in CompletionItem 2021-08-05 19:55:16 -04:00
David Goldman
3f55178908 Don't log the sourcekit code complete request
Seems to be left over from development; SOURCEKIT_LOGGING is
an alternative to trace this.
2020-10-22 12:27:37 -04:00
Ben Langmuir
bbb2a34694 [completion] Add doc comment for CodeCompletionSession 2020-07-29 10:29:20 -07:00
Ben Langmuir
bf9053c671 [gardening] Rename CodeCompletionOptions -> SKCompletionOptions
Since it is being used in the LSP protocol layer, give it a name that
clarifies that it is SourceKit-specific.
2020-07-29 10:01:24 -07:00
Ben Langmuir
fe283fa2c2 [completion] Add an extension to pass completion options per-request 2020-07-29 09:42:47 -07:00
Ben Langmuir
232fb7bfe0 [completion] Fix tests when using server-side filtering
With this change, tests pass whether we default to server-side or
client-side filtering. Also duplicate a few interesting tests to run
both ways. A future commit will beef up the test coverage for
server-side filtering specifically.
2020-07-29 09:42:47 -07:00
Ben Langmuir
c9800bf1a1 [completion] Add initial server-side filtering implementation
Work in progress: add a basic implementation for keeping track of the
current completion session, and use the sourcekitd
complete.open/update/close requests.
2020-07-29 09:42:18 -07:00
Ben Langmuir
c719711afd [gardening] Split code-completion into its own file
Similar to cursor info, there is enough code here it makes sense to
separate it out.
2020-07-29 09:42:18 -07:00