Skip to content
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

CustomTextEditor does not support the isReadonly flag and icon (small lock) #242328

Open
bk201- opened this issue Feb 28, 2025 · 0 comments
Open
Assignees

Comments

@bk201-
Copy link

bk201- commented Feb 28, 2025

Hi, I'm a developer of Azure CosmosDB extension.
Sometimes it needs to open cosmosdb document in read only custom webview. TextDocument has isReadonly property which I also can set using virtual file system provider. Moreover if this flag is set in TextDocument the editor tab has small lock icon. However, CustomDocument doesn't have this flag because there are two providers: CustomEditorProvider and CustomReadonlyEditorProvider, and this flag is set by provider.

In my case the user can unlock this document and starts editing it, but there are no way to set/unset read-only flag in CustomEditorProvider or CustomDocument.

This would be useful if the CustomEditorProvider will take into consideration the isReadonly flag from CustomDocument and shows small-lock icon in case this flag sets to true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants