Ben Langmuir
8c1ef3290c
[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-10-16 13:11:55 -07:00
Ben Langmuir
d8b5a980ee
[gardening] Fix copyright headers and formating in modified files
...
Conflicts:
Sources/SourceKit/SourceKitServer.swift
Sources/SourceKit/sourcekitd/SwiftLanguageServer.swift
2020-10-16 13:11:50 -07:00
Ben Langmuir
b97dac9b6f
[completion] Add an extension to pass completion options per-request
...
Conflicts:
Sources/LanguageServerProtocol/SupportTypes/CodeCompletionOptions.swift
Sources/SourceKit/CodeCompletionOptions.swift
Sources/SourceKitLSP/CodeCompletionOptions.swift
2020-10-16 13:09:06 -07:00
Ben Langmuir
f8f98dd5a9
[completion] Pass through new code-completion options
...
Conflicts:
Sources/SourceKit/CodeCompletionOptions.swift
Sources/SourceKit/SourceKitServer.swift
Sources/SourceKit/sourcekitd/SwiftLanguageServer.swift
2020-10-16 10:54:02 -07:00
Ben Langmuir
b917ebe5d9
Infer index store path from compilation database
...
Find the index store path by searching through the command-line
arguments, and if found, also provide a default database path next to
the index store. Also add command-line arguments so that either of these
can be overridden. We could also easily add these as initialization
options if an LSP client wanted to provide them in the future.
2020-02-03 09:07:01 -08:00
Ben Langmuir
71a94b0717
Add -Xclangd to allow forwarding options to clangd command-line
...
And factor the configuration that we thread through to the sourcekit
server.
2019-09-30 14:29:18 -07:00