From db4ca441fb02b6a803b44f8267447135bb0f69bf Mon Sep 17 00:00:00 2001 From: eloparco Date: Fri, 27 Oct 2023 14:38:44 +0100 Subject: [PATCH] fix: update vscode dev dependency and fix build errors --- package.json | 2 +- src/quickjsDebug.ts | 2 +- src/sourcemapSession.ts | 5 ++--- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index bb77eb0a..a1ff946e 100644 --- a/package.json +++ b/package.json @@ -48,7 +48,7 @@ "@types/mocha": "5.2.7", "typescript": "3.5.3", "mocha": "6.2.0", - "vscode": "1.1.36", + "vscode": "1.1.37", "vscode-debugadapter-testsupport": "1.37.0", "tslint": "5.18.0", "vsce": "1.66.0" diff --git a/src/quickjsDebug.ts b/src/quickjsDebug.ts index 15efef24..35d2d348 100644 --- a/src/quickjsDebug.ts +++ b/src/quickjsDebug.ts @@ -507,7 +507,7 @@ export class QuickJSDebugSession extends SourcemapSession { protected async threadsRequest(response: DebugProtocol.ThreadsResponse): Promise { if (this._threads.size === 0) { - await new Promise((resolve, reject) => { + await new Promise((resolve, reject) => { this.once('quickjs-thread', () => { resolve(); }); diff --git a/src/sourcemapSession.ts b/src/sourcemapSession.ts index 6f4e0797..af68b04c 100644 --- a/src/sourcemapSession.ts +++ b/src/sourcemapSession.ts @@ -11,8 +11,8 @@ export abstract class SourcemapSession extends LoggingDebugSession { // keep track of the sourcemaps and the location of the file.map used to load it private _sourceMaps = new Map(); - abstract async logTrace(message: string); - abstract async getArguments(): Promise; + abstract logTrace(message: string); + abstract getArguments(): Promise; async loadSourceMaps() { const commonArgs = await this.getArguments(); @@ -111,7 +111,6 @@ export abstract class SourcemapSession extends LoggingDebugSession { this.logTrace(`translateFileLocationToRemote: ${JSON.stringify(sourceLocation)} to: ${JSON.stringify(actualSourceLocation)}`); // convert the local absolute path into a sourcemap relative path. actualSourceLocation.source = path.relative(path.dirname(sourcemap), sourceLocation.source); - delete actualSourceLocation.column; // let unmappedPosition: NullablePosition = sm.generatedPositionFor(actualSourceLocation); let unmappedPositions = sm.allGeneratedPositionsFor(actualSourceLocation); if (!unmappedPositions || !unmappedPositions.length)