Skip to content
This repository was archived by the owner on Sep 28, 2025. It is now read-only.

Commit 25fb412

Browse files
committed
refactor: new diagnoser
1 parent 3f7e752 commit 25fb412

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server/src/lib/lsp/diagnostics/context.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { DiagnoserContext } from "bc-minecraft-bedrock-diagnoser";
2-
import { ProjectData } from "bc-minecraft-bedrock-project";
2+
import { MinecraftData, ProjectData } from "bc-minecraft-bedrock-project";
33
import { MCIgnore, MCProject } from "bc-minecraft-project";
44
import { Emitter } from "vscode-languageserver-protocol";
55
import { Glob } from "../../files/glob";
@@ -62,7 +62,7 @@ export class InternalContext implements DiagnoserContext<TextDocument> {
6262
}
6363

6464
/**@inheritdoc*/
65-
getCache(): ProjectData {
66-
return this.getCacheFn();
65+
getProjectData(): MinecraftData {
66+
return new MinecraftData(this.getCacheFn());
6767
}
6868
}

0 commit comments

Comments
 (0)