Skip to content

Commit 177902d

Browse files
committed
изменил на чисты URI
1 parent aa3b4d5 commit 177902d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/test/java/com/github/_1c_syntax/bsl/languageserver/providers/SymbolProviderTest.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323

2424
import com.github._1c_syntax.bsl.languageserver.context.ServerContext;
2525
import com.github._1c_syntax.utils.Absolute;
26+
import lombok.SneakyThrows;
2627
import org.eclipse.lsp4j.SymbolKind;
2728
import org.eclipse.lsp4j.WorkspaceSymbolParams;
2829
import org.junit.jupiter.api.BeforeEach;
@@ -31,6 +32,7 @@
3132
import org.springframework.boot.test.context.SpringBootTest;
3233
import org.springframework.test.annotation.DirtiesContext;
3334

35+
import java.net.URI;
3436
import java.nio.file.Paths;
3537

3638
import static com.github._1c_syntax.bsl.languageserver.util.TestUtils.PATH_TO_METADATA;
@@ -91,8 +93,9 @@ && uriContains(symbolInformation, "ManagedApplicationModule")
9193
;
9294
}
9395

96+
@SneakyThrows
9497
private boolean uriContains(org.eclipse.lsp4j.SymbolInformation symbolInformation, String name) {
95-
return Paths.get(Absolute.uri(symbolInformation.getLocation().getUri())).toString().contains(name);
98+
return Paths.get(new URI(symbolInformation.getLocation().getUri())).toString().contains(name);
9699
}
97100

98101
@Test

0 commit comments

Comments
 (0)