mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Support index store path remappings (#562)
This allows sourcekit-lsp to make use of the path remappings recently added to
the index store and IndexStoreDB to remap remote paths into local paths
when loading index data locally.
These remappings can be provided via the `-index-prefix-map` command line flag to sourcekit-lsp or via the `BuildSystem` integration point.
(cherry picked from commit 472a06c88a)
This commit is contained in:
@@ -35,6 +35,9 @@ public final class BuildServerBuildSystem {
|
||||
public private(set) var indexDatabasePath: AbsolutePath?
|
||||
public private(set) var indexStorePath: AbsolutePath?
|
||||
|
||||
// FIXME: Add support for prefix mappings to the Build Server protocol.
|
||||
public var indexPrefixMappings: [PathPrefixMapping] { return [] }
|
||||
|
||||
/// Delegate to handle any build system events.
|
||||
public weak var delegate: BuildSystemDelegate? {
|
||||
get { return self.handler?.delegate }
|
||||
|
||||
Reference in New Issue
Block a user