Skip to content

Commit

Permalink
fix: test
Browse files Browse the repository at this point in the history
  • Loading branch information
hacke2 committed Mar 22, 2022
1 parent 7d87154 commit 026d21f
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
CancellationToken,
IDisposable,
IPosition,
isFunction,
isNonEmptyArray,
onUnexpectedExternalError,
URI,
Expand Down Expand Up @@ -149,7 +150,9 @@ export class CallHierarchyService implements ICallHierarchyService {
});
return [model.root];
} finally {
textModel?.dispose();
if (isFunction(textModel?.dispose)) {
textModel.dispose();
}
textModelReference?.dispose();
}
}
Expand Down

0 comments on commit 026d21f

Please sign in to comment.