提交 44df02a3 编写于 作者: B Benjamin Pasero

fix bogus compare of resource

上级 e59d629e
......@@ -241,8 +241,8 @@ export class FileEditorTracker implements IWorkbenchContribution {
for (let i = 0; i < editors.length; i++) {
const editor = editors[i];
if (editor && editor.position === stacks.positionOfGroup(group)) {
const resource = toResource(editor.input, { filter: 'file' });
if (resource && paths.isEqual(resource.fsPath, resource.fsPath)) {
const editorResource = toResource(editor.input, { filter: 'file' });
if (editorResource && paths.isEqual(resource.fsPath, editorResource.fsPath)) {
const control = editor.getControl();
if (isCommonCodeEditor(control)) {
return control.saveViewState();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册