Skip to content

Commit

Permalink
Fix FoldingRangeHandlerTest to accomodate new ProjectLoader usage.
Browse files Browse the repository at this point in the history
  • Loading branch information
joewyz committed Feb 13, 2025
1 parent 5eaf510 commit 921e4e3
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import software.amazon.smithy.lsp.project.IdlFile;
import software.amazon.smithy.lsp.project.Project;
import software.amazon.smithy.lsp.project.ProjectLoader;
import software.amazon.smithy.lsp.project.ProjectTest;


import static org.hamcrest.MatcherAssert.assertThat;
Expand Down Expand Up @@ -438,7 +439,7 @@ public void foldingRangeForListAndMap() {

private static List<int[]> getFoldingRanges(String text) {
TestWorkspace workspace = TestWorkspace.singleModel(text);
Project project = ProjectLoader.load(workspace.getRoot(), new ServerState()).unwrap();
Project project = ProjectTest.load(workspace.getRoot());
String uri = workspace.getUri("main.smithy");
IdlFile idlFile = (IdlFile) project.getProjectFile(uri);

Expand Down

0 comments on commit 921e4e3

Please sign in to comment.