File tree 1 file changed +1
-6
lines changed
src/providers/FileSystemProvider
1 file changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -400,9 +400,7 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
400
400
}
401
401
402
402
public createDirectory ( uri : vscode . Uri ) : void | Thenable < void > {
403
- if ( uri . path . includes ( ".vscode/" ) ) {
404
- throw vscode . FileSystemError . NoPermissions ( "Cannot create a subdirectory of the /.vscode directory" ) ;
405
- }
403
+ uri = redirectDotvscodeRoot ( uri ) ;
406
404
const basename = path . posix . basename ( uri . path ) ;
407
405
const dirname = uri . with ( { path : path . posix . dirname ( uri . path ) } ) ;
408
406
return this . _lookupAsDirectory ( dirname ) . then ( ( parent ) => {
@@ -696,9 +694,6 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
696
694
if ( vscode . workspace . getWorkspaceFolder ( oldUri ) != vscode . workspace . getWorkspaceFolder ( newUri ) ) {
697
695
throw vscode . FileSystemError . NoPermissions ( "Cannot rename a file across workspace folders" ) ;
698
696
}
699
- if ( oldUri . path . includes ( ".vscode/" ) || newUri . path . includes ( ".vscode/" ) ) {
700
- throw vscode . FileSystemError . NoPermissions ( "Cannot rename a file in the /.vscode directory" ) ;
701
- }
702
697
// Check if the destination exists
703
698
let newFileStat : vscode . FileStat ;
704
699
try {
You can’t perform that action at this time.
0 commit comments