* Request a refresh.
(
repositoryPath: string,
options: RefreshOptions = {}
)
| 148 | * Request a refresh. |
| 149 | */ |
| 150 | async refresh( |
| 151 | repositoryPath: string, |
| 152 | options: RefreshOptions = {} |
| 153 | ): Promise<void> { |
| 154 | const normalizedPath = this.normalizePath(repositoryPath); |
| 155 | const { |
| 156 | force = false, |
| 157 | layers = ['basic', 'status'], |
| 158 | silent = false, |
| 159 | reason = 'manual', |
| 160 | source, |
| 161 | } = options; |
| 162 | |
| 163 | return this.enqueueRefresh(normalizedPath, layers, force, reason, silent, source); |
| 164 | } |
| 165 | |
| 166 | cancelPendingRefresh( |
| 167 | repositoryPath: string, |
no test coverage detected