We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 28e00dd commit 368ea63Copy full SHA for 368ea63
arduino-ide-extension/src/browser/theia/monaco/monaco-text-model-service.ts
@@ -19,7 +19,9 @@ export class MonacoTextModelService extends TheiaMonacoTextModelService {
19
const factory = this.factories
20
.getContributions()
21
.find(({ scheme }) => resource.uri.scheme === scheme);
22
- const readOnly = this.sketchesServiceClient.isReadOnly(resource.uri);
+ const readOnly =
23
+ Boolean(resource.isReadonly) ||
24
+ this.sketchesServiceClient.isReadOnly(resource.uri);
25
return factory
26
? factory.createModel(resource)
27
: new MaybeReadonlyMonacoEditorModel(
0 commit comments