Skip to content

fix: ignore hh_client output during extension init#274

Merged
mszabo-wikia merged 2 commits into
masterfrom
ignore-hh-output
Jun 17, 2026
Merged

fix: ignore hh_client output during extension init#274
mszabo-wikia merged 2 commits into
masterfrom
ignore-hh-output

Conversation

@mszabo-wikia

Copy link
Copy Markdown
Contributor

We run hh_client once on extension startup before starting the LSP server because hh_client --lsp doesn't spawn hh_server if it's not running already (facebook/hhvm#8548). This can cause the extension to crash if there are a very large number of errors, as the output of hh_client won't fit into maxBuffer.

Until we fix hh_client --lsp, let's simply instruct hh_client to return no errors here because we don't actually care about the output.

We run `hh_client` once on extension startup before starting the LSP
server because `hh_client --lsp` doesn't spawn `hh_server` if it's
not running already (facebook/hhvm#8548).
This can cause the extension to crash if there are a very large number
of errors, as the output of `hh_client` won't fit into `maxBuffer`.

Until we fix `hh_client --lsp`, let's simply instruct `hh_client`
to return no errors here because we don't actually care about the
output.
@mszabo-wikia mszabo-wikia merged commit 8ea97c0 into master Jun 17, 2026
5 checks passed
@mszabo-wikia mszabo-wikia deleted the ignore-hh-output branch June 17, 2026 18:40
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.

2 participants