Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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