LSP doesn't provide completion for interfaces Lisette version: 0.2.11 IDE: VSCode and…
- User
LSP doesn't provide completion for interfaces Lisette version: 0.2.11 IDE: VSCode and Zed
The LSP isn't providing completions for interfaces from either stdlib or user-defined.
interface Example { fn example(self, name: string) -> string } fn example_call(ex: Example) -> string { ex. }Interface
No new interfaces are introduced.
- Assistant
I’ll trace completion member lookup for interface-typed expressions, add a focused regression test for both user-defined and stdlib interfaces where practical, then run the relevant test suite.
- Assistant
The failure is localized: interface methods are stored on the interface definition with their receiver intentionally removed, while completion only discovers standalone methods whose first parameter is the receiver. I’m checking interface embedding and generic type naming before changing lookup so the fix covers inherited methods without regressing struct completion.
- Assistant
The implementation and regressions are in place. The focused LSP test build is running now; after it finishes I’ll address any parser/type-shape edge cases and run the broader completion tests.
- Assistant
Both new regressions pass, including a Go stdlib interface, and all 46 existing completion-focused LSP tests remain green. I’m doing a final diff and compile-quality check now.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.