Skip to content

Commit

Permalink
Fix - quick fix for vscode 1.94.0 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
devinea committed Oct 4, 2024
1 parent 71c8d96 commit 64a3e05
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 64a3e05

Please sign in to comment.