File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/vs/workbench/contrib/webview/browser Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ import { VSBufferReadableStream } from 'vs/base/common/buffer';
77import { CancellationToken } from 'vs/base/common/cancellation' ;
88import { isUNC } from 'vs/base/common/extpath' ;
99import { Schemas } from 'vs/base/common/network' ;
10- import { sep } from 'vs/base/common/path' ;
10+ import { normalize , sep } from 'vs/base/common/path' ;
1111import { URI } from 'vs/base/common/uri' ;
1212import { FileOperationError , FileOperationResult , IFileService } from 'vs/platform/files/common/files' ;
1313import { ILogService } from 'vs/platform/log/common/log' ;
@@ -103,8 +103,8 @@ function containsResource(root: URI, resource: URI): boolean {
103103 return false ;
104104 }
105105
106- let rootPath = root . fsPath + ( root . fsPath . endsWith ( sep ) ? '' : sep ) ;
107- let resourceFsPath = resource . fsPath ;
106+ let resourceFsPath = normalize ( resource . fsPath ) ;
107+ let rootPath = normalize ( root . fsPath + ( root . fsPath . endsWith ( sep ) ? '' : sep ) ) ;
108108
109109 if ( isUNC ( root . fsPath ) && isUNC ( resource . fsPath ) ) {
110110 rootPath = rootPath . toLowerCase ( ) ;
You can’t perform that action at this time.
0 commit comments