From 7bc0947b36110959555c57bf7c74244ffee64f4d Mon Sep 17 00:00:00 2001 From: "Stephen Weatherford (MSFT)" Date: Thu, 18 Jul 2024 13:12:10 -0700 Subject: [PATCH] Fix running tests in vscode with webpack (#1737) --- .vscode/launch.json | 4 ++-- test/testConstants.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.vscode/launch.json b/.vscode/launch.json index 37d1fc880..1fda95c49 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -63,7 +63,7 @@ }, // Launch extension with webpack { - "name": "Launch Extension (webpack)", + "name": "Launch Extension With Webpack (dev)", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", @@ -86,7 +86,7 @@ }, // Launch tests with webpack { - "name": "Launch Tests (webpack)", + "name": "Launch Tests With Webpack (dev)", "type": "extensionHost", "request": "launch", "runtimeExecutable": "${execPath}", diff --git a/test/testConstants.ts b/test/testConstants.ts index 3797a9d5c..ff8763a84 100644 --- a/test/testConstants.ts +++ b/test/testConstants.ts @@ -8,7 +8,7 @@ // NOTE: This is used by gulp and should avoid referencing other code if possible import * as path from 'path'; -import * as common from '../common'; +import * as common from '../extension.bundle'; import { writeToLog } from './support/testLog'; export const DEFAULT_TESTCASE_TIMEOUT_MS = common.DEFAULT_TESTCASE_TIMEOUT_MS;