labelJSON:extUri.isEqual(resource,label)?undefined:label,// only storing label if it differs from the resource
preferredResourceJSON:extUri.isEqual(resource,preferredResource)?undefined:preferredResource,// only storing preferredResource if it differs from the resource
encoding:fileEditorInput.getEncoding(),
modeId:fileEditorInput.getPreferredMode()// only using the preferred user associated mode here if available to not store redundant data
};
...
...
@@ -143,13 +143,18 @@ class FileEditorInputFactory implements IEditorInputFactory {
resource:preferredResource||resource,// prefer the preferred resource when creating the input again (https://github.com/microsoft/vscode/issues/102627)
if(resourceEditorInput.forceFile/* fix for https://github.com/Microsoft/vscode/issues/48275 */||this.fileService.canHandleResource(canonicalResource)){