Skip to content

Commit e8e4493

Browse files
committed
Add resolve function check for patch repair handling
- is patch repair ignored when there is no resposne in preview? It should. └── apps └── editor └── src └── commands └── apply-response-command ├── apply-response-command.ts ├── index.ts ├── response-processor.ts ├── types │ └── original-file-state.ts └── utils ├── file-checks.ts ├── file-operations.ts ├── preview │ ├── diff-utils.ts │ ├── file-preparer.ts │ ├── index.ts │ ├── preview.ts │ ├── temp-file-manager.ts │ ├── types.ts │ ├── virtual-document-provider.ts │ ├── vscode-ui.ts │ └── workspace-listener.ts ├── preview-handler.ts ├── response-parser │ └── response-parser.ts └── state-manager.ts
1 parent 07bc46c commit e8e4493

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎apps/editor/src/commands/apply-response-command/apply-response-command.ts‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ export const apply_response_command = (params: {
143143
)
144144

145145
if (is_patch_repair) {
146+
if (!resolve_fn) {
147+
return
148+
}
149+
146150
const workspace_map = new Map<string, string>()
147151
vscode.workspace.workspaceFolders!.forEach((folder) => {
148152
workspace_map.set(folder.name, folder.uri.fsPath)

0 commit comments

Comments
 (0)