提交 a4b28b83 编写于 作者: B Benjamin Pasero

fix history check

上级 e1be460b
......@@ -681,13 +681,15 @@ export class HistoryService extends Disposable implements IHistoryService {
if (arg2 instanceof EditorInput) {
const inputResource = arg2.getResource();
if (!inputResource) {
return false;
}
let isSupportedFile = true;
if (this.partService.isCreated() && !this.fileService.canHandleResource(inputResource)) {
isSupportedFile = false; // make sure to only check this when workbench has started (for https://github.com/Microsoft/vscode/issues/48275)
return false; // make sure to only check this when workbench has started (for https://github.com/Microsoft/vscode/issues/48275)
}
return inputResource && isSupportedFile && inputResource.toString() === resource.toString();
return inputResource.toString() === resource.toString();
}
const resourceInput = arg2 as IResourceInput;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册