Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Dirty Diff Peek View #13104

Merged
merged 14 commits into from
Apr 23, 2024
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
Prev Previous commit
Next Next commit
Fix the found issue on Windows
Ensure that backslashes in fsPath are escaped in the query JSON.
  • Loading branch information
pisv committed Apr 16, 2024
commit 7c8fab3d914400b372ef1d7594a592964000c190
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,8 @@ export class ScmDecorationsService {
const currentRepo = this.scmService.selectedRepository;
if (currentRepo) {
try {
const uri = editor.uri.withScheme(currentRepo.provider.id).withQuery(`{"path":"${editor.uri['codeUri'].fsPath}","ref":"~"}`);
const query = { path: editor.uri['codeUri'].fsPath, ref: '~' };
const uri = editor.uri.withScheme(currentRepo.provider.id).withQuery(JSON.stringify(query));
const previousResource = await this.resourceProvider(uri);
try {
const previousContent = await previousResource.readContents();
Expand Down