Skip to content

Commit

Permalink
Adds support for Cloud Patches (wip)
Browse files Browse the repository at this point in the history
Co-authored-by: Keith Daulton <[email protected]>
Co-authored-by: Ramin Tadayon <[email protected]>
  • Loading branch information
3 people committed Nov 7, 2023
1 parent bd9844b commit ba0a6c8
Show file tree
Hide file tree
Showing 83 changed files with 8,529 additions and 785 deletions.
357 changes: 339 additions & 18 deletions package.json

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions src/@types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,6 @@ export declare global {
export type StartsWith<P extends string, T extends string, S extends string = ''> = T extends `${P}${S}${string}`
? T
: never;

export type UnwrapCustomEvent<T> = T extends CustomEvent<infer U> ? U : never;
}
1 change: 1 addition & 0 deletions src/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ import './commands/openPullRequestOnRemote';
import './commands/openRepoOnRemote';
import './commands/openRevisionFile';
import './commands/openWorkingFile';
import './commands/patches';
import './commands/rebaseEditor';
import './commands/refreshHover';
import './commands/remoteProviders';
Expand Down
2 changes: 2 additions & 0 deletions src/commands/diffWithWorking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ export interface DiffWithWorkingCommandArgs {
uri?: Uri;
line?: number;
showOptions?: TextDocumentShowOptions;
lhsTitle?: string;
}

@command()
Expand Down Expand Up @@ -106,6 +107,7 @@ export class DiffWithWorkingCommand extends ActiveEditorCommand {
lhs: {
sha: gitUri.sha,
uri: uri,
title: args?.lhsTitle,
},
rhs: {
sha: '',
Expand Down
Loading

0 comments on commit ba0a6c8

Please sign in to comment.