We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c926114 commit 48a4ffcCopy full SHA for 48a4ffc
src/vs/platform/agentHost/node/commandAutoApprover.ts
@@ -193,7 +193,13 @@ export class CommandAutoApprover extends Disposable {
193
}
194
195
const parser = new TreeSitter.Parser();
196
- this._register(toDisposable(() => parser.delete()));
+ this._register(toDisposable(() => {
197
+ try {
198
+ parser.delete();
199
+ } catch {
200
+ // WASM memory may already be freed
201
+ }
202
+ }));
203
204
// Load bash grammar
205
const bashWasmPath = URI.joinPath(moduleRoot, 'tree-sitter-bash.wasm').fsPath;
0 commit comments