@volar/typescript 1.7.1 → 1.7.3
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.
- package/out/languageServiceHost.js +7 -5
- package/out/sys.js +5 -3
- package/package.json +4 -4
|
@@ -7,11 +7,13 @@ function createLanguageServiceHost(ctx, ts, sys) {
|
|
|
7
7
|
let tsProjectVersion = 0;
|
|
8
8
|
const _tsHost = {
|
|
9
9
|
...sys,
|
|
10
|
-
getCurrentDirectory: ctx.host.getCurrentDirectory,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
getProjectReferences: ctx.host.getProjectReferences,
|
|
10
|
+
getCurrentDirectory: () => ctx.host.getCurrentDirectory(),
|
|
11
|
+
getCompilationSettings: () => ctx.host.getCompilationSettings(),
|
|
12
|
+
getCancellationToken: ctx.host.getCancellationToken ? () => ctx.host.getCancellationToken() : undefined,
|
|
13
|
+
getLocalizedDiagnosticMessages: ctx.host.getLocalizedDiagnosticMessages ? () => ctx.host.getLocalizedDiagnosticMessages() : undefined,
|
|
14
|
+
getProjectReferences: ctx.host.getProjectReferences ? () => ctx.host.getProjectReferences() : undefined,
|
|
15
|
+
resolveModuleNames: ctx.host.resolveModuleNames ? (...args) => ctx.host.resolveModuleNames(...args) : undefined,
|
|
16
|
+
resolveModuleNameLiterals: ctx.host.resolveModuleNameLiterals ? (...args) => ctx.host.resolveModuleNameLiterals(...args) : undefined,
|
|
15
17
|
getDefaultLibFileName: (options) => {
|
|
16
18
|
try {
|
|
17
19
|
return ts.getDefaultLibFilePath(options);
|
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
|
-
|
|
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.
|
|
3
|
+
"version": "1.7.3",
|
|
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.
|
|
16
|
+
"@volar/language-core": "1.7.3"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
|
-
"@volar/language-service": "1.7.
|
|
19
|
+
"@volar/language-service": "1.7.3"
|
|
20
20
|
},
|
|
21
|
-
"gitHead": "
|
|
21
|
+
"gitHead": "21b448e8f2f4942e49b66d7b852f4346a838cb8f"
|
|
22
22
|
}
|