File tree Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Expand file tree Collapse file tree 3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Bash Language Server
2
2
3
+ ## 3.0.3
4
+
5
+ - Workaround for emscripten node 18 support https://github.com/bash-lsp/bash-language-server/pull/404
6
+
3
7
## 3.0.2
4
8
5
9
- Fix analyzer not being called when getHighlightParsingError is off https://github.com/bash-lsp/bash-language-server/pull/396
Original file line number Diff line number Diff line change 3
3
"description" : " A language server for Bash" ,
4
4
"author" : " Mads Hartmann" ,
5
5
"license" : " MIT" ,
6
- "version" : " 3.0.2 " ,
6
+ "version" : " 3.0.3 " ,
7
7
"publisher" : " mads-hartmann" ,
8
8
"main" : " ./out/server.js" ,
9
9
"typings" : " ./out/server.d.ts" ,
Original file line number Diff line number Diff line change 1
1
import * as Parser from 'web-tree-sitter'
2
2
3
+ const _global : any = global
4
+
3
5
export async function initializeParser ( ) : Promise < Parser > {
6
+ if ( _global . fetch ) {
7
+ // NOTE: temporary workaround for emscripten node 18 support.
8
+ // emscripten is used for compiling tree-sitter to wasm.
9
+ // https://github.com/emscripten-core/emscripten/issues/16915
10
+ delete _global . fetch
11
+ }
12
+
4
13
await Parser . init ( )
5
14
const parser = new Parser ( )
6
15
You can’t perform that action at this time.
0 commit comments