Skip to content

Commit

Permalink
fix(extension): quick fix for vscode 1.94.x compatibility due to swit…
Browse files Browse the repository at this point in the history
…ch to ESM modules (#853)
  • Loading branch information
devinea authored Oct 6, 2024
1 parent 71c8d96 commit 823c0a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/backend/src/utils/vscodeProxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ export const getVscode = () => {
}
};

const filename: string = require.main.filename;
const _isInTest = filename.includes(join("node_modules", "mocha"));
const filename: string = require?.main?.filename;
const _isInTest = filename?.includes(join("node_modules", "mocha"));

const returnValue = (...args: any[]) => {
if (_isInTest) {
Expand Down

0 comments on commit 823c0a5

Please sign in to comment.