File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,13 @@ const thisDir = dirname(fileURLToPath(import.meta.url));
4848// The folder containing the Extension Manifest package.json
4949const extensionDevelopmentPath = join ( thisDir , ".." ) ;
5050
51+ // @vscode /test-web tends to throw uncaught exceptions on network failures
52+ // https://github.com/microsoft/vscode-test-web/issues/175
53+ // Workaround copied from https://github.com/hilleer/vscode-yaml-plus-json/pull/146/files
54+ process . on ( "uncaughtException" , ( ) => {
55+ console . warn ( "Ignoring uncaught exception during test run." ) ;
56+ } ) ; // ignore those, expected, should still be able to rely on tests
57+
5158try {
5259 const suites = [ "language-service" , "debugger" ] ;
5360 const toRun =
@@ -91,6 +98,7 @@ async function runSuite(name) {
9198 break ;
9299 } catch ( err ) {
93100 // Until the @vscode /test-web library is more robust, we have our own retry logic for VS Code download errors.
101+ // https://github.com/microsoft/vscode-test-web/issues/175
94102 // We want to be conservative about what errors we retry on, to avoid masking real test failures.
95103 //
96104 // Pattern for network errors adapted from
You can’t perform that action at this time.
0 commit comments