@marko/language-server 1.0.5 → 1.0.7

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.
@@ -1,8 +1,8 @@
1
- import type ts from "typescript";
2
- import { type Extracted, ScriptLang } from "@marko/language-tools";
1
+ import type ts from "typescript/lib/tsserverlibrary";
2
+ import { type Extracted } from "@marko/language-tools";
3
3
  export interface ExtractedSnapshot extends Extracted {
4
4
  snapshot: ts.IScriptSnapshot;
5
5
  }
6
- export declare function patch(ts: typeof import("typescript/lib/tsserverlibrary"), scriptLang: ScriptLang, cache: Map<string, ExtractedSnapshot | {
6
+ export declare function patch(ts: typeof import("typescript/lib/tsserverlibrary"), configFile: string | undefined, extractCache: Map<string, ExtractedSnapshot | {
7
7
  snapshot: ts.IScriptSnapshot;
8
- }>, host: ts.LanguageServiceHost, ps?: InstanceType<typeof ts.server.ProjectService>): ts.LanguageServiceHost;
8
+ }>, resolutionCache: ts.ModuleResolutionCache | undefined, host: ts.LanguageServiceHost, ps?: InstanceType<typeof ts.server.ProjectService>): ts.LanguageServiceHost;
@@ -1,9 +1,7 @@
1
1
  import type { TextDocument } from "vscode-languageserver-textdocument";
2
2
  import type { TaglibLookup } from "@marko/babel-utils";
3
3
  import { type Parsed } from "@marko/language-tools";
4
- import { MarkoProject } from "./project";
5
4
  export interface MarkoFile {
6
- project: MarkoProject;
7
5
  uri: string;
8
6
  scheme: string;
9
7
  version: number;
package/package.json CHANGED
@@ -1,22 +1,23 @@
1
1
  {
2
2
  "name": "@marko/language-server",
3
3
  "description": "Marko Language Server",
4
- "version": "1.0.5",
4
+ "version": "1.0.7",
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.2",
11
+ "@marko/language-tools": "^2.0.0",
12
12
  "@marko/babel-utils": "^5.21.4",
13
- "@marko/compiler": "^5.27.1",
14
- "@marko/translator-default": "^5.25.1",
13
+ "@marko/compiler": "^5.27.4",
14
+ "@marko/translator-default": "^5.25.4",
15
15
  "htmljs-parser": "^5.4.3",
16
- "marko": "^5.25.1",
17
- "prettier": "^2.8.4",
16
+ "marko": "^5.25.4",
17
+ "prettier": "^2.8.7",
18
18
  "prettier-plugin-marko": "^1.4.1",
19
19
  "relative-import-path": "^1.0.0",
20
+ "strip-json-comments": "^5.0.0",
20
21
  "typescript": "^5.0.2",
21
22
  "vscode-css-languageservice": "^6.2.4",
22
23
  "vscode-languageserver": "^8.1.0",
@@ -25,7 +26,7 @@
25
26
  },
26
27
  "devDependencies": {
27
28
  "@types/prettier": "^2.7.2",
28
- "tsx": "^3.12.5"
29
+ "tsx": "^3.12.6"
29
30
  },
30
31
  "exports": {
31
32
  ".": {
@@ -1 +0,0 @@
1
- export default function getComponentFilename(from: string): string | undefined;
@@ -1,10 +0,0 @@
1
- import type { LanguageServiceHost } from "typescript/lib/tsserverlibrary";
2
- import type TS from "typescript/lib/tsserverlibrary";
3
- import type { MarkoProject } from "./project";
4
- export default function getProjectTypeLibs(rootDir: string, project: MarkoProject, ts: typeof TS, host: LanguageServiceHost): {
5
- internalTypesFile: string;
6
- markoRunTypesFile: string | undefined;
7
- markoRunGeneratedTypesFile: string | undefined;
8
- markoTypesFile: string;
9
- markoTypesCode: string;
10
- };
@@ -1,4 +0,0 @@
1
- import { ScriptLang } from "@marko/language-tools";
2
- import type { LanguageServiceHost } from "typescript/lib/tsserverlibrary";
3
- import type TS from "typescript/lib/tsserverlibrary";
4
- export default function getScriptLang(filename: string, ts: typeof TS, host: LanguageServiceHost, projectScriptLang: ScriptLang): ScriptLang;
@@ -1,11 +0,0 @@
1
- import type { TaglibLookup } from "@marko/babel-utils";
2
- import * as defaultCompiler from "@marko/compiler";
3
- export type MarkoProject = {
4
- cache: Map<unknown, unknown>;
5
- compiler: typeof defaultCompiler;
6
- translator: any;
7
- getLookup(dir: string): TaglibLookup;
8
- };
9
- export declare function getMarkoProject(dir?: string): MarkoProject;
10
- export declare function getMarkoProjects(): IterableIterator<MarkoProject>;
11
- export declare function clearMarkoProjectCaches(): void;