[PR #1323] [CLOSED] Fix/pyright empty event #9898

Closed
opened 2026-02-16 18:14:21 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1323
Author: @neriousy
Created: 7/25/2025
Status: Closed

Base: devHead: fix/pyright-empty-event


📝 Commits (2)

📊 Changes

1 file changed (+18 additions, -0 deletions)

View changed files

📝 packages/opencode/src/lsp/client.ts (+18 -0)

📄 Description

Pyright LSP server likes to throw a empty event at first.

This ensures the errors are caught properly

before
image

after
image


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1323 **Author:** [@neriousy](https://github.com/neriousy) **Created:** 7/25/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/pyright-empty-event` --- ### 📝 Commits (2) - [`1cea0b5`](https://github.com/anomalyco/opencode/commit/1cea0b55b2786c39ff4be58cc65073532ff65905) fix(lsp) pyright empty event - [`d23ecf6`](https://github.com/anomalyco/opencode/commit/d23ecf60fbc20ae16b243890fc554cdecc25a483) refactor ### 📊 Changes **1 file changed** (+18 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/lsp/client.ts` (+18 -0) </details> ### 📄 Description Pyright LSP server likes to throw a empty event at first. This ensures the errors are caught properly before <img width="870" height="401" alt="image" src="https://github.com/user-attachments/assets/644982f6-fa18-41c8-ba76-3f27518b4e91" /> after <img width="839" height="299" alt="image" src="https://github.com/user-attachments/assets/2cdef7e4-dcf7-4901-b7e1-ca4374292d5c" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:21 -05:00
yindo closed this issue 2026-02-16 18:14:21 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9898