// Target cannot be dirty if not writing into buffer
if(this.textFileService.isDirty(this.resource)){
returnPromise.reject(newError(localize('errorKeybindingsFileDirty',"Unable to write because the keybindings configuration file is dirty. Please save it first and then try again.")));