File tree Expand file tree Collapse file tree 4 files changed +8
-0
lines changed
workers-editor-shared/lib Expand file tree Collapse file tree 4 files changed +8
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ " @cloudflare/workers-editor-shared " : patch
3+ ---
4+
5+ chore: add readOnly property to WorkerLoaded event allowing us to put the editor into a read only state when loading a Worker.
Original file line number Diff line number Diff line change @@ -198,6 +198,7 @@ declare module "*.bin" {
198198 create : true ,
199199 overwrite : true ,
200200 suppressChannelUpdate : true ,
201+ readOnly : files . readOnly ,
201202 } ) ;
202203 }
203204 if ( this . readRoot !== null ) {
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ interface WorkerLoaded {
1212 path : string ;
1313 contents : Uint8Array ;
1414 } [ ] ;
15+ readOnly ?: boolean ;
1516}
1617
1718// Sent when a user updates a file
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ interface WorkerLoaded {
1212 path : string ;
1313 contents : Uint8Array ;
1414 } [ ] ;
15+ readOnly ?: boolean ;
1516}
1617
1718// Sent when a user updates a file
You can’t perform that action at this time.
0 commit comments