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 values, add a focused regression test for both user-defined and stdlib interfaces, then run the relevant test suite.
- Assistant
The completion path currently recognizes struct fields and separately registered value methods. Interface definitions carry their own method map, and that map is never consulted; I’m verifying the exact stored method types and inherited-interface behavior before patching so the fix covers more than the minimal example.
- Assistant
The fix now reads interface method signatures directly and walks parent interfaces with cycle protection. Regression coverage is in place for the reported user-defined case and a
go:compress/flate.Readerstdlib case; the first test run is compiling the workspace. - Assistant
Both interface regression tests pass, including the exact incomplete
ex.form, and the complete 471-test LSP suite is green. I’m finishing with the LSP lint check and a final diff sanity check.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.