diff options
| author | Yong He <yonghe@outlook.com> | 2025-07-03 15:20:23 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-07-03 22:20:23 +0000 |
| commit | b4fc380af5e390ca11892f9e657e653f6869c21b (patch) | |
| tree | 9072841ed14a190cce0790ced27b283f85d1fc4f /tests/language-server/ctor-hover.slang | |
| parent | 551d0c365571a2e36505851f6a713464662c5fea (diff) | |
Language Server Enhancements (#7604)
* Language Server: auto-select the best candidate in signature help.
* Fix constructor call highlighting + goto definition.
* Add test.
* format code
* Improve ctor signature help.
* Add tests.
* Fix decl path printing for extension children.
* Allow goto definition to show core module source.
* c++ compile fix.
---------
Co-authored-by: slangbot <186143334+slangbot@users.noreply.github.com>
Diffstat (limited to 'tests/language-server/ctor-hover.slang')
| -rw-r--r-- | tests/language-server/ctor-hover.slang | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/language-server/ctor-hover.slang b/tests/language-server/ctor-hover.slang new file mode 100644 index 000000000..186d373cf --- /dev/null +++ b/tests/language-server/ctor-hover.slang @@ -0,0 +1,15 @@ +//TEST:LANG_SERVER(filecheck=CHECK):
+struct MyType
+{
+ __init(int x) {}
+}
+
+void test()
+{
+//HOVER:10,18
+ let obj = MyType(5);
+ // ^^^^^
+ // Hover here should show info for the ctor, not the type.
+}
+
+//CHECK: MyType.init
|
