提交 86a16a2f 编写于 作者: J Joao Moreno

fixes #14249

上级 81399f0a
......@@ -334,6 +334,10 @@ export class Repository {
buffer(object: string): TPromise<string> {
const child = this.show(object);
if (!child.stdout) {
return TPromise.wrapError(localize('errorBuffer', "Can't open file from git"));
}
return new Promise((c, e) => {
detectMimesFromStream(child.stdout, null, (err, result) => {
if (err) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册