@marko/language-server 1.0.2 → 1.0.4
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/dist/index.js +111 -44
- package/dist/index.js.map +2 -2
- package/dist/index.mjs +111 -44
- package/dist/index.mjs.map +2 -2
- package/dist/ts-plugin/host.d.ts +3 -1
- package/dist/utils/get-runtime-types.d.ts +3 -1
- package/package.json +6 -6
package/dist/ts-plugin/host.d.ts
CHANGED
|
@@ -2,4 +2,6 @@ import { type Extracted, ScriptLang } from "@marko/language-tools";
|
|
|
2
2
|
export interface ExtractedSnapshot extends Extracted {
|
|
3
3
|
snapshot: ts.IScriptSnapshot;
|
|
4
4
|
}
|
|
5
|
-
export declare function patch(ts: typeof import("typescript/lib/tsserverlibrary"), scriptLang: ScriptLang, cache: Map<string, ExtractedSnapshot
|
|
5
|
+
export declare function patch(ts: typeof import("typescript/lib/tsserverlibrary"), scriptLang: ScriptLang, cache: Map<string, ExtractedSnapshot | {
|
|
6
|
+
snapshot: ts.IScriptSnapshot;
|
|
7
|
+
}>, host: ts.LanguageServiceHost, ps?: ts.server.ProjectService): import("typescript/lib/tsserverlibrary").LanguageServiceHost;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import type { LanguageServiceHost } from "typescript/lib/tsserverlibrary";
|
|
2
2
|
import type TS from "typescript/lib/tsserverlibrary";
|
|
3
3
|
import type { MarkoProject } from "./project";
|
|
4
|
-
export default function getProjectTypeLibs(project: MarkoProject, ts: typeof TS, host: LanguageServiceHost): {
|
|
4
|
+
export default function getProjectTypeLibs(rootDir: string, project: MarkoProject, ts: typeof TS, host: LanguageServiceHost): {
|
|
5
5
|
internalTypesFile: string;
|
|
6
|
+
markoRunTypesFile: string | undefined;
|
|
7
|
+
markoRunGeneratedTypesFile: string | undefined;
|
|
6
8
|
markoTypesFile: string;
|
|
7
9
|
markoTypesCode: string;
|
|
8
10
|
};
|
package/package.json
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@marko/language-server",
|
|
3
3
|
"description": "Marko Language Server",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.4",
|
|
5
5
|
"bin": {
|
|
6
6
|
"marko-language-server": "./bin.js"
|
|
7
7
|
},
|
|
8
8
|
"bugs": "https://github.com/marko-js/language-server/issues/new?template=Bug_report.md",
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@babel/helper-validator-identifier": "^7.19.1",
|
|
11
|
-
"@marko/language-tools": "^1.0.
|
|
11
|
+
"@marko/language-tools": "^1.0.1",
|
|
12
12
|
"@marko/babel-utils": "^5.21.4",
|
|
13
|
-
"@marko/compiler": "^5.
|
|
14
|
-
"@marko/translator-default": "^5.
|
|
15
|
-
"htmljs-parser": "^5.
|
|
16
|
-
"marko": "^5.
|
|
13
|
+
"@marko/compiler": "^5.26.0",
|
|
14
|
+
"@marko/translator-default": "^5.24.0",
|
|
15
|
+
"htmljs-parser": "^5.4.0",
|
|
16
|
+
"marko": "^5.24.0",
|
|
17
17
|
"prettier": "^2.8.4",
|
|
18
18
|
"prettier-plugin-marko": "^1.2.3",
|
|
19
19
|
"relative-import-path": "^1.0.0",
|