Skip to content

Commit

Permalink
fix runtime message metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
seeM committed Jul 5, 2024
1 parent 9d3d20f commit 2db7c0b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions extensions/positron-zed/src/positronZedLanguageRuntime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1743,7 +1743,7 @@ export class PositronZedRuntimeSession implements positron.LanguageRuntimeSessio
type: positron.LanguageRuntimeMessageType.CommClosed,
comm_id: target.id,
target_name: 'positron.connection',
data: { name: target.name }
data: { name: target.name },
} as positron.LanguageRuntimeCommClosed);

// Emit text output so something shows up in the console.
Expand Down Expand Up @@ -1886,7 +1886,7 @@ export class PositronZedRuntimeSession implements positron.LanguageRuntimeSessio
type: positron.LanguageRuntimeMessageType.Input,
state: positron.RuntimeOnlineState.Busy,
code: code,
execution_count: 1
execution_count: 1,
} as positron.LanguageRuntimeInput);

// If the preview is open, add it to the preview's recent commands.
Expand Down
2 changes: 1 addition & 1 deletion src/positron-dts/positron.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ declare module 'positron' {
type: LanguageRuntimeMessageType;

/** Additional metadata, if any */
metadata: Record<string, any>;
metadata?: Record<string, any>;
}

/** LanguageRuntimeOutput is a LanguageRuntimeMessage representing output (text, plots, etc.) */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ export interface ILanguageRuntimeMessage {
when: string;

/** Additional metadata, if any */
metadata: Record<string, any>;
metadata?: Record<string, any>;
}

/**
Expand Down

0 comments on commit 2db7c0b

Please sign in to comment.