Skip to content

Commit

Permalink
Adding more checks for absolute paths while generating new files with…
Browse files Browse the repository at this point in the history
  • Loading branch information
arafatkatze authored Oct 10, 2024
1 parent 79f30fe commit ff8f0bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vscode/src/services/utils/codeblock-action-tracker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ export async function handleSmartApply(

const uri =
fileUri && workspaceUri
? path.isAbsolute(fileUri)
? path.isAbsolute(fileUri) && (await doesFileExist(vscode.Uri.file(fileUri || '')))
? vscode.Uri.file(fileUri)
: smartJoinPath(workspaceUri, fileUri)
: activeEditor?.document.uri
Expand Down

0 comments on commit ff8f0bf

Please sign in to comment.