Skip to content

Commit ca109de

Browse files
author
Akos Kitta
committed
Can edit user-storage files. E.g.: keymaps.json.
Signed-off-by: Akos Kitta <[email protected]>
1 parent 91bd9f0 commit ca109de

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: arduino-ide-extension/src/common/protocol/sketches-service-client-impl.ts

+3
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ export class SketchesServiceClientImpl implements FrontendApplicationContributio
135135
*/
136136
isReadOnly(uri: URI | monaco.Uri | string): boolean {
137137
const toCheck = uri instanceof URI ? uri : new URI(uri);
138+
if (toCheck.scheme === 'user-storage') {
139+
return false;
140+
}
138141
const readOnly = !this.workspaceService.tryGetRoots().some(({ resource }) => resource.isEqualOrParent(toCheck));
139142
return readOnly;
140143
}

0 commit comments

Comments
 (0)