diff options
| author | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-02-10 21:39:33 +1100 |
|---|---|---|
| committer | Brad Lewis <22850972+BradLewis@users.noreply.github.com> | 2026-02-10 21:39:33 +1100 |
| commit | cb8f89b821b19021d018366c04c5f2f837b9d0d0 (patch) | |
| tree | f125c1b0e6b6f7a699127cc7388289773a9eb23b /tests | |
| parent | b7756c1f9297c6f5b8bc57725a47f5496e91bbeb (diff) | |
Add hover info when hovering over an import statement
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/hover_test.odin | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/hover_test.odin b/tests/hover_test.odin index 6cb9a7f..74cf0d0 100644 --- a/tests/hover_test.odin +++ b/tests/hover_test.odin @@ -6133,6 +6133,29 @@ ast_hover_package_docs :: proc(t: ^testing.T) { test.expect_hover(t, &source, "my_package: package\n---\nPackage docs") } +@(test) +ast_hover_import_path_package_docs :: proc(t: ^testing.T) { + packages := make([dynamic]test.Package, context.temp_allocator) + + append( + &packages, + test.Package { + pkg = "my_package", + source = `// Package docs + package my_package + `, + }, + ) + source := test.Source { + main = `package test + import "my_packa{*}ge" + `, + packages = packages[:], + } + + test.expect_hover(t, &source, "my_package: package\n---\nPackage docs") +} + /* Waiting for odin fix |