Zowe Explorer is temporarily saving the opened member into a temp file with path like:
/Users/myname/.vscode/extensions/zowe.vscode-extension-for-zowe-1.3.0/resources/temp/_D_/my_profile/DSN.NEW.COBOL(TEST).cbl
however once added to favorites it gets downloaded into a folder where profile is replaced with "Favorites" keyword, see:
/Users/myname/.vscode/extensions/zowe.vscode-extension-for-zowe-1.3.0/resources/temp/D/Favorites/DSN.ALLOCATE.COBOL(member).cbl
So if two different members but with the same name are in favorites with different profiles, it will overwrite each other.
Additional to this: if tried to edit that member in favorites and you saved it, It is not uploading in mainframe. The changes are only saved in local file.
Most helpful comment
Additional to this: if tried to edit that member in favorites and you saved it, It is not uploading in mainframe. The changes are only saved in local file.