Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/vs/workbench/browser/parts/editor/editorCommands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,14 @@ function registerOpenEditorAPICommands(): void {
},
metadata: {
description: 'Opens the provided resource in the editor.',
args: [{ name: 'Uri' }]
// --- Start Positron ---
// Advertise this command to AI agents (positron.ai.getAgentAllowedCommands)
// and document the argument they should pass. A plain path string works:
// it is parsed into a file URI by the opener service.
agentCompatible: true,
// args: [{ name: 'Uri' }]
args: [{ name: 'Uri', description: 'Absolute file path or URI of the resource to open. Tabular data files such as .csv and .parquet open in the Data Explorer.', schema: { type: 'string' } }]
Comment thread
dhruvisompura marked this conversation as resolved.
Outdated
// --- End Positron ---
}
});

Expand Down
Loading