-
Notifications
You must be signed in to change notification settings - Fork 30.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lock icon only shows up in explorer when clicking on the file #235208
Comments
I think we could do this but it will also add noise: The explorer maintains decorations here: vscode/src/vs/workbench/contrib/files/browser/views/explorerDecorationsProvider.ts Line 19 in c5001f6
If we decide to really show the 🔒 for all files that are readonly, just add: if (fileStat.isReadonly) {
return {
letter: Codicon.lockSmall,
tooltip: localize('readonly', "Read-only"),
};
} to the end. Today decorations only appear for resolved models, coming in from:
and
|
@bpasero how about making it resolved model + open in an editor since the former is invisible to the end user? If you disagree feel free to close. |
I think I would either make it consistently showing in all cases or keep what we have now but not add something new that is still not consistent. |
I'm on the fence, up to you. FWIW after #195701 I don't think I'll care if it's readonly until I try to edit or delete it. |
Yeah I will try to do that one in cleanup iteration. |
Sounds like we can close this as won't fix for now to not do anything confusing since #195701 has been resolved? |
Notice that terminalSuggestMain.js does not have the lock icon:
This is because it's showing up only after I open the file. After I close the file it remains, leading to a weird inconsistent state.
The text was updated successfully, but these errors were encountered: