-
Notifications
You must be signed in to change notification settings - Fork 29.9k
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
Contribute 'Open Commit at GitHub' to SCM Graph item #229386
Open
gjsjohnmurray
wants to merge
9
commits into
microsoft:main
Choose a base branch
from
gjsjohnmurray:orange-meerkat
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
ea6f002
Contribute 'Open Commit at GitHub' to SCM Graph item
gjsjohnmurray daeb1b2
Merge branch 'main' into orange-meerkat
gjsjohnmurray 0b3b882
Merge branch 'main' into orange-meerkat
gjsjohnmurray 55d15e0
Merge branch 'main' into orange-meerkat
gjsjohnmurray 7105431
Merge branch 'main' into orange-meerkat
gjsjohnmurray 69aa50e
Merge branch 'main' into orange-meerkat
gjsjohnmurray 2050a6c
Merge branch 'main' into orange-meerkat
gjsjohnmurray 526c60f
Merge branch 'main' into orange-meerkat
gjsjohnmurray cb87dcd
Merge branch 'main' into orange-meerkat
gjsjohnmurray File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
extensions/github/src/typings/vscode.proposed.contribEditSessions.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
// empty placeholder for edit sessions contribution point from core | ||
|
||
// https://github.com/microsoft/vscode/issues/157734 @joyceerhl |
7 changes: 7 additions & 0 deletions
7
extensions/github/src/typings/vscode.proposed.contribShareMenu.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
// empty placeholder declaration for the `file/share`-submenu contribution point | ||
// https://github.com/microsoft/vscode/issues/176316 |
7 changes: 7 additions & 0 deletions
7
extensions/github/src/typings/vscode.proposed.contribSourceControlHistoryItemMenu.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
// empty placeholder declaration for the `scm/historyItem/context`-menu contribution point | ||
// https://github.com/microsoft/vscode/issues/201997 |
88 changes: 88 additions & 0 deletions
88
extensions/github/src/typings/vscode.proposed.scmHistoryProvider.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,88 @@ | ||
/*--------------------------------------------------------------------------------------------- | ||
* Copyright (c) Microsoft Corporation. All rights reserved. | ||
* Licensed under the MIT License. See License.txt in the project root for license information. | ||
*--------------------------------------------------------------------------------------------*/ | ||
|
||
declare module 'vscode' { | ||
// https://github.com/microsoft/vscode/issues/185269 | ||
|
||
export interface SourceControl { | ||
historyProvider?: SourceControlHistoryProvider; | ||
} | ||
|
||
export interface SourceControlHistoryProvider { | ||
readonly currentHistoryItemRef: SourceControlHistoryItemRef | undefined; | ||
readonly currentHistoryItemRemoteRef: SourceControlHistoryItemRef | undefined; | ||
readonly currentHistoryItemBaseRef: SourceControlHistoryItemRef | undefined; | ||
|
||
/** | ||
* Fires when the current history item refs (local, remote, base) | ||
* change after a user action (ex: commit, checkout, fetch, pull, push) | ||
*/ | ||
onDidChangeCurrentHistoryItemRefs: Event<void>; | ||
|
||
/** | ||
* Fires when history item refs change | ||
*/ | ||
onDidChangeHistoryItemRefs: Event<SourceControlHistoryItemRefsChangeEvent>; | ||
|
||
provideHistoryItemRefs(historyItemRefs: string[] | undefined, token: CancellationToken): ProviderResult<SourceControlHistoryItemRef[]>; | ||
provideHistoryItems(options: SourceControlHistoryOptions, token: CancellationToken): ProviderResult<SourceControlHistoryItem[]>; | ||
provideHistoryItemChanges(historyItemId: string, historyItemParentId: string | undefined, token: CancellationToken): ProviderResult<SourceControlHistoryItemChange[]>; | ||
|
||
resolveHistoryItemRefsCommonAncestor(historyItemRefs: string[], token: CancellationToken): ProviderResult<string>; | ||
} | ||
|
||
export interface SourceControlHistoryOptions { | ||
readonly skip?: number; | ||
readonly limit?: number | { id?: string }; | ||
readonly historyItemRefs?: readonly string[]; | ||
} | ||
|
||
export interface SourceControlHistoryItemStatistics { | ||
readonly files: number; | ||
readonly insertions: number; | ||
readonly deletions: number; | ||
} | ||
|
||
export interface SourceControlHistoryItem { | ||
readonly id: string; | ||
readonly parentIds: string[]; | ||
readonly message: string; | ||
readonly displayId?: string; | ||
readonly author?: string; | ||
readonly timestamp?: number; | ||
readonly statistics?: SourceControlHistoryItemStatistics; | ||
readonly references?: SourceControlHistoryItemRef[]; | ||
} | ||
|
||
export interface SourceControlHistoryItemRef { | ||
readonly id: string; | ||
readonly name: string; | ||
readonly description?: string; | ||
readonly revision?: string; | ||
readonly category?: string; | ||
readonly icon?: Uri | { light: Uri; dark: Uri } | ThemeIcon; | ||
} | ||
|
||
export interface SourceControlHistoryItemChange { | ||
readonly uri: Uri; | ||
readonly originalUri: Uri | undefined; | ||
readonly modifiedUri: Uri | undefined; | ||
readonly renameUri: Uri | undefined; | ||
} | ||
|
||
export interface SourceControlHistoryItemRefsChangeEvent { | ||
readonly added: readonly SourceControlHistoryItemRef[]; | ||
readonly removed: readonly SourceControlHistoryItemRef[]; | ||
readonly modified: readonly SourceControlHistoryItemRef[]; | ||
|
||
/** | ||
* Flag to indicate if the operation that caused the event to trigger was due | ||
* to a user action or a background operation (ex: Auto Fetch). The flag is used | ||
* to determine whether to automatically refresh the user interface or present | ||
* the user with a visual cue that the user interface is outdated. | ||
*/ | ||
readonly silent: boolean; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@lszomoru I'd value your opinion on the three TODOs I left here