Resolve "Fix server crashing in packaged extension"
Bugfix
Fixes: #103 (closed)
Description
The bug had too causes:
- tree-sitter native bindings not working under Electron
- 'istextorbinary' require import braking webpack bundling
Solutions:
- 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.
- Make istextorbinary an external package, and copy it over when bundling.
Related issues
- Closes: #103 (closed)
- Related to: #103 (closed)