From 686611afd3bc1c4cc1122d099c330b7f2350e88a Mon Sep 17 00:00:00 2001 From: Connor Peet Date: Tue, 30 Jul 2024 09:35:07 -0700 Subject: [PATCH] testing: adopt feedback for call stack api (#224308) --- src/vs/workbench/api/common/extHostTypeConverters.ts | 2 +- src/vs/workbench/api/common/extHostTypes.ts | 2 +- src/vscode-dts/vscode.proposed.testMessageStackTrace.d.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/vs/workbench/api/common/extHostTypeConverters.ts b/src/vs/workbench/api/common/extHostTypeConverters.ts index 03930557aafda..144cd0fcdac11 100644 --- a/src/vs/workbench/api/common/extHostTypeConverters.ts +++ b/src/vs/workbench/api/common/extHostTypeConverters.ts @@ -1891,7 +1891,7 @@ export namespace TestMessage { stackTrace: (message as vscode.TestMessage2).stackTrace?.map(s => ({ label: s.label, position: s.position && Position.from(s.position), - uri: s.file && URI.revive(s.file).toJSON(), + uri: s.uri && URI.revive(s.uri).toJSON(), })), }; } diff --git a/src/vs/workbench/api/common/extHostTypes.ts b/src/vs/workbench/api/common/extHostTypes.ts index b0167a87039bb..f01e28b541332 100644 --- a/src/vs/workbench/api/common/extHostTypes.ts +++ b/src/vs/workbench/api/common/extHostTypes.ts @@ -4107,7 +4107,7 @@ export class TestMessageStackFrame { */ constructor( public label: string, - public file?: vscode.Uri, + public uri?: vscode.Uri, public position?: Position, ) { } } diff --git a/src/vscode-dts/vscode.proposed.testMessageStackTrace.d.ts b/src/vscode-dts/vscode.proposed.testMessageStackTrace.d.ts index b3f09b92835ae..726865336da91 100644 --- a/src/vscode-dts/vscode.proposed.testMessageStackTrace.d.ts +++ b/src/vscode-dts/vscode.proposed.testMessageStackTrace.d.ts @@ -16,7 +16,7 @@ declare module 'vscode' { * The location of this stack frame. This should be provided as a URI if the * location of the call frame can be accessed by the editor. */ - file?: Uri; + uri?: Uri; /** * Position of the stack frame within the file. @@ -33,6 +33,6 @@ declare module 'vscode' { * @param file The file URI of the stack frame * @param position The position of the stack frame within the file */ - constructor(label: string, file?: Uri, position?: Position); + constructor(label: string, uri?: Uri, position?: Position); } }