diff --git a/src/scm/Model.ts b/src/scm/Model.ts index d94819f4..3ee982c9 100644 --- a/src/scm/Model.ts +++ b/src/scm/Model.ts @@ -464,11 +464,9 @@ export class Model implements Disposable { } private async syncUpdate(): Promise { - //const config: IPerforceConfig = PerforceService.getConfig(); - const config = this._config; - const pathToSync = config.p4Dir ? config.p4Dir + '...' : null; - - await Utils.runCommand(this._workspaceUri, 'sync', Uri.parse(pathToSync), null, '-q').then(output => { + const p4Dir = vscode.workspace.getConfiguration('perforce', this._workspaceUri).get('dir'); + const pathToSync = p4Dir ? vscode.Uri.file(p4Dir + '...') : null; + Utils.runCommand(this._workspaceUri, 'sync', pathToSync, null, '').then(output => { Display.channel.append(output); this.Refresh(); }).catch(reason => {