mirror of
https://github.com/apple/sourcekit-lsp.git
synced 2026-03-02 18:23:24 +01:00
Allow build systems to specify the files to watch for changes
rdar://136014553 Resolves #1671
This commit is contained in:
@@ -87,6 +87,11 @@ package actor CompilationDatabaseBuildSystem: BuiltInBuildSystem {
|
||||
|
||||
package let projectRoot: AbsolutePath
|
||||
|
||||
package let fileWatchers: [FileSystemWatcher] = [
|
||||
FileSystemWatcher(globPattern: "**/compile_commands.json", kind: [.create, .change, .delete]),
|
||||
FileSystemWatcher(globPattern: "**/compile_flags.txt", kind: [.create, .change, .delete]),
|
||||
]
|
||||
|
||||
private var _indexStorePath: Cachable<AbsolutePath?> = .noValue
|
||||
package var indexStorePath: AbsolutePath? {
|
||||
_indexStorePath.get {
|
||||
|
||||
Reference in New Issue
Block a user