Skip to content

fix: fix generic interface crash and resolve package main interfaces - #9

Open
SangTran-127 wants to merge 1 commit into
fang2hou:mainfrom
SangTran-127:fix-generic-interface-issues
Open

fix: fix generic interface crash and resolve package main interfaces#9
SangTran-127 wants to merge 1 commit into
fang2hou:mainfrom
SangTran-127:fix-generic-interface-issues

Conversation

@SangTran-127

Copy link
Copy Markdown

#8 Fix 'modifiable is off' (Vim:E21) crash when confirming generic interface:

  • Explicitly pass target bufnr and use vim.fn.appendbufline instead of vim.fn.append.
  • Cleanly unmount Nui layout before resuming coroutine and restore window focus.
  • Default generic argument to type parameter name instead of empty string.
  • Fix 'Failed to add the implementation' for interfaces in package main or the current package by passing the interface name directly without package prefix.
  • Expose impl stderr in error notifications for clearer diagnostics.

- Fix 'modifiable is off' (Vim:E21) crash when confirming generic interface:
  - Explicitly pass target bufnr and use vim.fn.appendbufline instead of vim.fn.append.
  - Cleanly unmount Nui layout before resuming coroutine and restore window focus.
- Default generic argument to type parameter name instead of empty string.
- Fix 'Failed to add the implementation' for interfaces in package main or
  the current package by passing the interface name directly without package prefix.
- Expose impl stderr in error notifications for clearer diagnostics.

Signed-off-by: sangtran <tranquangsang12.7@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant