Skip to content

Commit a7c3657

Browse files
committed
Specify the 'Refactor Active Editor' command operates without attaching context
1 parent 35e67ac commit a7c3657

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Generate meaningful summaries of changes adhering to your preferred style.
9494

9595
### Refactoring
9696

97-
- `Code Web Chat: Refactor Active Editor` - Refactor currently active editor based on natural language instructions.
97+
- `Code Web Chat: Refactor Active Editor` - Refactor currently active editor without attaching context.
9898

9999
### Version Control
100100

packages/vscode/src/commands/refactor-active-editor-command.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ export const refactor_active_editor_command = (
103103

104104
if (updated_content) {
105105
const original_state: OriginalFileState = {
106-
file_path,
106+
file_path: vscode.workspace.asRelativePath(document.uri),
107107
content: original_content,
108108
is_new: false,
109109
workspace_name: vscode.workspace.getWorkspaceFolder(document.uri)

0 commit comments

Comments
 (0)