Skip to content

Resolve "Fix server crashing in packaged extension"

Bugfix

Fixes: #103 (closed)

Description

The bug had too causes:

  1. tree-sitter native bindings not working under Electron
  2. 'istextorbinary' require import braking webpack bundling

Solutions:

  1. Switch to web-tree-sitter, since it's specifically for browswer/electron environments and is platform-agnostic. This required some refactoring to adapt the server to the new API.
  2. Make istextorbinary an external package, and copy it over when bundling.

Related issues

Merge request reports

Loading