提交 86e1c202 编写于 作者: D Daniel Imms

Fix tests

上级 660f6bdc
......@@ -579,8 +579,16 @@ export const TestFileService = {
});
},
discardBackup: function (resource: URI) {
return TPromise.as(void 0);
},
discardBackups: function () {
return TPromise.as(void 0);
},
isHotExitEnabled: function () {
return false;
}
};
......
......@@ -135,10 +135,12 @@ export class FileService implements IFileService {
// Configuration changes
this.toUnbind = [];
this.toUnbind.push(this.configurationService.onDidUpdateConfiguration(e => this.onConfigurationChange(e.config)));
if (this.configurationService) {
this.toUnbind.push(this.configurationService.onDidUpdateConfiguration(e => this.onConfigurationChange(e.config)));
const configuration = this.configurationService.getConfiguration<IFilesConfiguration>();
this.onConfigurationChange(configuration);
const configuration = this.configurationService.getConfiguration<IFilesConfiguration>();
this.onConfigurationChange(configuration);
}
}
private onConfigurationChange(configuration: IFilesConfiguration): void {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册