Skip to content

Commit

Permalink
Update DebugAdapter.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
maciekstosio committed Dec 16, 2024
1 parent 016ee46 commit 19eaf6f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/vscode-extension/src/debugging/DebugAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import {
previewRemoteObject,
} from "vscode-js-debug/out/adapter/objectPreview";
import { formatMessage } from "vscode-js-debug/out/adapter/messageFormat";
import { PreviewContextType } from "vscode-js-debug/out/adapter/objectPreview/contexts";
import { Logger } from "../Logger";
import {
inferDAPScopePresentationHintFromCDPType,
Expand Down Expand Up @@ -233,7 +232,7 @@ export class DebugAdapter extends DebugSession {
const prepareVariables = await Promise.all(
args.map(async (arg: CDPRemoteObject, index: number) => {
if (arg.type === "object") {
arg.description = previewRemoteObject(arg, PreviewContextType.PropertyValue);
arg.description = previewRemoteObject(arg, "propertyValue");
arg.objectId = this.variableStore.adaptCDPObjectId(arg.objectId).toString();
}

Expand Down

0 comments on commit 19eaf6f

Please sign in to comment.