Skip to content

Commit cfb0aa1

Browse files
authored
editors - do not report as readonly based on file service handling (fix microsoft#91833) (microsoft#91886)
1 parent af57067 commit cfb0aa1

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/vs/workbench/common/editor.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -687,10 +687,6 @@ export abstract class TextResourceEditorInput extends EditorInput {
687687
return false; // untitled is never readonly
688688
}
689689

690-
if (!this.fileService.canHandleResource(this.resource)) {
691-
return true; // resources without file support are always readonly
692-
}
693-
694690
return this.fileService.hasCapability(this.resource, FileSystemProviderCapabilities.Readonly);
695691
}
696692

0 commit comments

Comments
 (0)