File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
src/vs/workbench/common/editor Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 6
6
import { Verbosity , EditorInputWithPreferredResource , EditorInputCapabilities } from 'vs/workbench/common/editor' ;
7
7
import { EditorInput } from 'vs/workbench/common/editor/editorInput' ;
8
8
import { URI } from 'vs/base/common/uri' ;
9
- import { IFileService , FileSystemProviderCapabilities } from 'vs/platform/files/common/files' ;
9
+ import { IFileService } from 'vs/platform/files/common/files' ;
10
10
import { ILabelService } from 'vs/platform/label/common/label' ;
11
11
import { dirname , isEqual } from 'vs/base/common/resources' ;
12
12
import { IFilesConfigurationService } from 'vs/workbench/services/filesConfiguration/common/filesConfigurationService' ;
@@ -20,10 +20,7 @@ export abstract class AbstractResourceEditorInput extends EditorInput implements
20
20
let capabilities = EditorInputCapabilities . CanSplitInGroup ;
21
21
22
22
if ( this . fileService . hasProvider ( this . resource ) ) {
23
- if (
24
- this . fileService . hasCapability ( this . resource , FileSystemProviderCapabilities . Readonly ) ||
25
- this . filesConfigurationService . isReadonly ( this . resource )
26
- ) {
23
+ if ( this . filesConfigurationService . isReadonly ( this . resource ) ) {
27
24
capabilities |= EditorInputCapabilities . Readonly ;
28
25
}
29
26
} else {
You can’t perform that action at this time.
0 commit comments