File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
providers/FileSystemProvider Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
218
218
if ( ! entry . Name . includes ( "." ) ) {
219
219
if ( ! parent . entries . has ( entry . Name ) ) {
220
220
const folder = ! csp
221
- ? uri . path . replace ( / \/ / g, "." )
221
+ ? uri . path . replace ( / \/ $ / , "" ) . replace ( / \/ / g, "." )
222
222
: uri . path === "/"
223
223
? ""
224
224
: uri . path . endsWith ( "/" )
@@ -247,7 +247,7 @@ export class FileSystemProvider implements vscode.FileSystemProvider {
247
247
}
248
248
const csp = params . has ( "csp" ) && [ "" , "1" ] . includes ( params . get ( "csp" ) ) ;
249
249
const folder = ! csp
250
- ? uri . path . replace ( / \/ / g, "." )
250
+ ? uri . path . replace ( / \/ $ / , "" ) . replace ( / \/ / g, "." )
251
251
: uri . path === "/"
252
252
? ""
253
253
: uri . path . endsWith ( "/" )
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ export function fileSpecFromURI(uri: vscode.Uri): string {
110
110
const csp = params . has ( "csp" ) && [ "" , "1" ] . includes ( params . get ( "csp" ) ) ;
111
111
112
112
const folder = ! csp
113
- ? uri . path . replace ( / \/ / g, "." )
113
+ ? uri . path . replace ( / \/ $ / , "" ) . replace ( / \/ / g, "." )
114
114
: uri . path === "/"
115
115
? ""
116
116
: uri . path . endsWith ( "/" )
You can’t perform that action at this time.
0 commit comments