Add QuickDiffProvider
[?]
Dec 30, 2020, 3:14 AM
OXW4KMVURSBSSHOFK4DADOGVBRCURJ6EFFU6BBZE6IQC7BUBR5IQCDependencies
- [2]
ODRMVURUImplement first iteration of file diffing - [3]
EJYTCVNQAdd stderr to error message when pijul CLI command fails - [4]
ZGMIJNFVCreate pijul.ts for executing commands using the Pijul CLI - [5]
YUVLBWV3Populate resource groups for unrecorded and untracked changes - [6]
H6KYVQ2QAdd a class to represent resources - [*]
B4SKYP3YAdd repository model and add steps to initialize it - [*]
6ONRFFRGFirst pass of file decorations
Change contents
- edit in src/repository.ts at line 94[2.101][9.241]
this.sourceControl.quickDiffProvider = this.repository; - replacement in src/pijul.ts at line 5
import { CancellationToken, TextDocument, TextDocumentContentProvider, Uri, workspace } from 'vscode';import { CancellationToken, QuickDiffProvider, TextDocument, TextDocumentContentProvider, Uri, workspace } from 'vscode'; - replacement in src/pijul.ts at line 135
export class Repository implements TextDocumentContentProvider {export class Repository implements TextDocumentContentProvider, QuickDiffProvider { - edit in src/pijul.ts at line 150
* Implementation of QuickDiffProvider, sets the scheme of a given URI to 'pijul' so that VS Code can access the last recorded copy of a file* @param uri The URI of the real file which VS Code is trying to quick diff* @param _token An unused cancellation token*/async provideOriginalResource (uri: Uri, _token: CancellationToken): Promise<Uri> {return uri.with({ scheme: 'pijul' });}/**