소스 검색

Fixes #1928 quiet when editing root folder files

main
Ross Smith II 2 년 전
committed by Eric Amodio
부모
커밋
58da93d05c
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. +4
    -1
      src/system/path.ts

+ 4
- 1
src/system/path.ts 파일 보기

@ -177,7 +177,10 @@ export function normalizePath(path: string): string {
path = path.replace(pathNormalizeRegex, '/');
if (path.charCodeAt(path.length - 1) === slash) {
path = path.slice(0, -1);
// Don't remove the trailing slash on Windows root folders, such as z:\
if (path.length != 3 || (path.length == 3 && path.charCodeAt(1) != ':')) {
path = path.slice(0, -1);
}
}
if (isWindows) {

불러오는 중...
취소
저장