@volar/typescript 1.7.1 → 1.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/out/sys.js +5 -3
  2. package/package.json +4 -4
package/out/sys.js CHANGED
@@ -82,9 +82,9 @@ function createSys(ctx, ts, env, dtsHost) {
82
82
  catch { }
83
83
  }
84
84
  }
85
- return sys.resolvePath(fsPath);
85
+ return sys.resolvePath(fsPath).replace(/\\/g, '/');
86
86
  }
87
- return path_1.posix.resolve(fsPath);
87
+ return path_1.posix.resolve(fsPath).replace(/\\/g, '/');
88
88
  }
89
89
  function getModifiedTime(fileName) {
90
90
  fileName = resolvePath(fileName);
@@ -297,7 +297,9 @@ function createSys(ctx, ts, env, dtsHost) {
297
297
  const dirNames = [];
298
298
  let currentDirPath = dirName;
299
299
  let currentDirName = path_1.posix.basename(currentDirPath);
300
- while (currentDirName !== '') {
300
+ let lastDirName;
301
+ while (lastDirName !== currentDirName) {
302
+ lastDirName = currentDirName;
301
303
  dirNames.push(currentDirName);
302
304
  currentDirPath = path_1.posix.dirname(currentDirPath);
303
305
  currentDirName = path_1.posix.basename(currentDirPath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@volar/typescript",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "main": "out/index.js",
5
5
  "license": "MIT",
6
6
  "files": [
@@ -13,10 +13,10 @@
13
13
  "directory": "packages/typescript"
14
14
  },
15
15
  "dependencies": {
16
- "@volar/language-core": "1.7.1"
16
+ "@volar/language-core": "1.7.2"
17
17
  },
18
18
  "devDependencies": {
19
- "@volar/language-service": "1.7.1"
19
+ "@volar/language-service": "1.7.2"
20
20
  },
21
- "gitHead": "6d092d684c65ce43af8a401bc90d0b2769a2bf49"
21
+ "gitHead": "e6406ffb254a1be0abbdb3eb101d8cc7bf862b18"
22
22
  }