ide на основе vs code
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
Это ide на основе vs code(code oss), в ней будет встроенный умный апи роутинг, свой маркет с плагинами(агент харнесс, поддержка java/kotlin/мобильной разработки, командная разработка проектов, orca, оркестратор агентов
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
import * as buffer from 'buffer';
import equals from 'fast-deep-equal';
import * as path from 'path';
import * as vscode from 'vscode';
import { DiffSide, IComment, IReviewThread, ViewedState } from '../common/comment';
import { parseDiff } from '../common/diffHunk';
import { GitChangeType, InMemFileChange, SlimFileChange } from '../common/file';
import { GitHubRef }
Logger
Remote
ITelemetry
ReviewEvent CommonReviewEvent EventType TimelineEvent
resolvePath toPRUri toReviewUri
formatError
OctokitCommon
FolderRepositoryManager
GitHubRepository
AddCommentResponse
AddReactionResponse
AddReviewThreadResponse
DeleteReactionResponse
DeleteReviewResponse
EditCommentResponse
LatestReviewCommitResponse
LatestReviewsResponse
MarkPullRequestReadyForReviewResponse
PendingReviewIdResponse
PullRequestCommentsResponse
PullRequestFilesResponse
PullRequestMergabilityResponse
ReactionGroup
ResolveReviewThreadResponse
StartReviewResponse
SubmitReviewResponse
TimelineEventsResponse
UnresolveReviewThreadResponse
UpdatePullRequestResponse
CheckState
GithubItemStateEnum
IAccount
IRawFileChange
ISuggestedReviewer
MergeMethod
PullRequest
PullRequestChecks
PullRequestMergeability
ReviewEvent
IssueModel
convertRESTPullRequestToRawPullRequest
convertRESTReviewEvent
convertRESTUserToAccount
getReactionGroup
insertNewCommitsSinceReview
parseGraphQLComment
parseGraphQLReaction
parseGraphQLReviewEvent
parseGraphQLReviewThread
parseGraphQLTimelineEvents
parseMergeability
restPaginate
head GitHubRef
head GitHubRef
added IReviewThread
changed IReviewThread
removed IReviewThread
changed
fileName
viewed ViewedState
key ViewedState
isDraft
localBranchName
mergeBase
suggestedReviewers ISuggestedReviewer
hasChangesSinceLastReview
_showChangesSinceReview
_hasPendingReview
_onDidChangePendingReviewState vscodeEventEmitter
onDidChangePendingReviewState _onDidChangePendingReviewStateevent
_reviewThreadsCache IReviewThread
_reviewThreadsCacheInitialized
_onDidChangeReviewThreads
onDidChangeReviewThreads _onDidChangeReviewThreadsevent
_fileChangeViewedState FileViewedState
_viewedFiles Set
_unviewedFiles Set
_onDidChangeFileViewedState
onDidChangeFileViewedState _onDidChangeFileViewedStateevent
_onDidChangeChangesSinceReview
onDidChangeChangesSinceReview _onDidChangeChangesSinceReviewevent
_comments IComment
_onDidChangeComments vscodeEventEmitter
onDidChangeComments vscodeEvent _onDidChangeCommentsevent
_isActive
_isActive
isActive
_isActive isActive
_telemetry ITelemetry
telemetry ITelemetry
githubRepository GitHubRepository
remote Remote
item PullRequest
isActive
githubRepository remote item
_telemetry telemetry
isActive isActive
_showChangesSinceReview
item
comments
_reviewThreadsCacheInitialized
_reviewThreadsCache
_reviewThreadsCacheInitialized
IReviewThread
_reviewThreadsCache
_reviewThreadsCacheInitialized
state GithubItemStateEnumMerged
_hasPendingReview
hasPendingReview
_hasPendingReview hasPendingReview
_hasPendingReview hasPendingReview
_onDidChangePendingReviewState_hasPendingReview
_showChangesSinceReview
isChangesSinceReview
_showChangesSinceReview isChangesSinceReview
_onDidChangeChangesSinceReview
IComment
_comments
comments IComment
_comments comments
_onDidChangeComments
FileViewedState
_fileChangeViewedState
isRemoteHeadDeleted
head GitHubRef
isRemoteBaseDeleted
base GitHubRef
state
state
state GithubItemStateEnumOpen
state itemmerged GithubItemStateEnumMerged GithubItemStateEnumClosed
item PullRequest
item
isDraft itemisDraft
suggestedReviewers itemsuggestedReviewers
itemisRemoteHeadDeleted
isRemoteHeadDeleted itemisRemoteHeadDeleted
itemhead
head itemheadref itemheadlabel itemheadsha itemheadrepocloneUrl itemheadrepoowner itemheadreponame
itemisRemoteBaseDeleted
isRemoteBaseDeleted itemisRemoteBaseDeleted
itembase
base itembaseref itembaselabel itembasesha itembaserepocloneUrl itembaserepoowner itembasereponame
IResolvedPullRequestModel
head
message IResolvedPullRequestModel
head
reason vscodel10n
message
message
message reason
openString vscodel10n
vscodewindowmessage openStringaction
action action openString
vscodecommands vscodeUrihtml_url
message CommonReviewEvent
action CommonReviewEvent
ReviewEventApprove message
ReviewEventApprove message
actionx
_onDidChangeComments
x
message CommonReviewEvent
action CommonReviewEvent
ReviewEventRequestChanges message
ReviewEventRequestChanges message
actionx
_onDidChangeComments
x
PullRequest
octokit remote githubRepository
ret octokitapipullsupdate
owner remoteowner
repo remoterepositoryName
pull_number
state
retdata githubRepository
event ReviewEvent message CommonReviewEvent
octokit remote githubRepository
data octokitapipullscreateReview
owner remoteowner
repo remoterepositoryName
pull_number
event event
body message
data githubRepository
event ReviewEvent body CommonReviewEvent
pendingReviewId
mutate schema githubRepository
pendingReviewId event ReviewEventComment
pendingReviewId
pendingReviewId
data
mutation schemaSubmitReview
variables
id pendingReviewId
event event ReviewEventComment
body
hasPendingReview
reviewEvent datasubmitPullRequestReviewpullRequestReview githubRepository
threadWithComment _reviewThreadsCachethread
threadcommentslength threadcommentspullRequestReviewId reviewEventid
threadWithComment
threadWithCommentcomments reviewEventcomments
threadWithCommentviewerCanResolve
_onDidChangeReviewThreads added changed threadWithComment removed
reviewEvent
id
mutate schema githubRepository
finalId id id
mutation schemaUpdatePullRequest
variables
input
pullRequestId itemgraphNodeId
milestoneId finalId
err
Loggererr PullRequestModel
assignees
octokit remote githubRepository
octokitapiissuesaddAssignees
owner remoteowner
repo remoterepositoryName
issue_number
assignees
query schema githubRepository
currentUser githubRepository
data
query schemaGetPendingReviewId
variables
pullRequestId itemgraphNodeId
author currentUser
datanodereviewsnodeslength datanodereviewsnodesid
error
sha
Logger IssueModel
query remote schema githubRepository
data
query schemaLatestReviewCommit
variables
owner remoteowner
name remoterepositoryName
datarepositorypullRequestviewerLatestReview
sha datarepositorypullRequestviewerLatestReviewcommitoid
e
deletedReviewId deletedReviewComments IComment
pendingReviewId
mutate schema githubRepository
data
mutation schemaDeleteReview
variables
input pullRequestReviewId pendingReviewId
comments databaseId datadeletePullRequestReviewpullRequestReview
hasPendingReview
deletedReviewId databaseId
deletedReviewComments commentsnodescomment comment githubRepository
commitId
mutate schema githubRepository
data
mutation schemaStartReview
variables
input
body
pullRequestId itemgraphNodeId
commitOID commitId headsha
data
hasPendingReview
_onDidChangeComments
dataaddPullRequestReviewpullRequestReviewid
body
commentPath
startLine
endLine
side DiffSide
suppressDraftModeUpdate
IReviewThread
pendingReviewId
mutate schema githubRepository
data
mutation schemaAddReviewThread
variables
input
path commentPath
body
pullRequestId graphNodeId
pullRequestReviewId pendingReviewId
startLine startLine endLine startLine
line endLine
side
data
dataaddPullRequestReviewThreadthread
suppressDraftModeUpdate
hasPendingReview
thread dataaddPullRequestReviewThreadthread
newThread thread githubRepository
_reviewThreadsCachenewThread
_onDidChangeReviewThreads added newThread changed removed
newThread
body
inReplyTo
isSingleComment
commitId
IComment
pendingReviewId
pendingReviewId
pendingReviewId commitId
mutate schema githubRepository
data
mutation schemaAddComment
variables
input
pullRequestReviewId pendingReviewId
body
inReplyTo
commitOID commitId headsha
data
comment dataaddPullRequestReviewComment
newComment comment githubRepository
isSingleComment
newCommentisDraft
threadWithComment _reviewThreadsCachethread
threadcommentscomment commentgraphNodeId inReplyTo
threadWithComment
threadWithCommentcommentsnewComment
_onDidChangeReviewThreads added changed threadWithComment removed
newComment
inDraftMode
inDraftMode hasPendingReview
hasPendingReview inDraftMode
inDraftMode
isActive
vscodecommands hasPendingReview
comment IComment text IComment
mutate schema githubRepository
threadWithComment _reviewThreadsCachethread
threadcommentsc cgraphNodeId commentgraphNodeId
threadWithComment
comment text
data
mutation schemaEditComment
variables
input
pullRequestReviewCommentId commentgraphNodeId
body text
data
newComment
dataupdatePullRequestReviewCommentpullRequestReviewComment
commentisResolved
githubRepository
threadWithComment
index threadWithCommentcommentsc cgraphNodeId commentgraphNodeId
threadWithCommentcommentsindex newComment
_onDidChangeReviewThreads added changed threadWithComment removed
newComment
commentId
octokit remote githubRepository
id commentId
threadIndex _reviewThreadsCachethread threadcommentsc cid id
threadIndex
commentId
octokitapipullsdeleteReviewComment
owner remoteowner
repo remoterepositoryName
comment_id id
threadIndex
threadWithComment _reviewThreadsCachethreadIndex
index threadWithCommentcommentsc cid id
threadWithCommentcommentsindex
threadWithCommentcommentslength
_reviewThreadsCachethreadIndex
_onDidChangeReviewThreads added changed removed threadWithComment
_onDidChangeReviewThreads added changed threadWithComment removed
e
e
IAccount
githubRepository githubRepository
remote octokit githubRepository
result octokitapipullslistRequestedReviewers
owner remoteowner
repo remoterepositoryName
pull_number
resultdatausersuser user githubRepository
reviewers
octokit remote githubRepository
octokitapipullsrequestReviewers
owner remoteowner
repo remoterepositoryName
pull_number
reviewers
reviewers
octokit remote githubRepository
octokitapipullsremoveRequestedReviewers
owner remoteowner
repo remoterepositoryName
pull_number
reviewers
assignees
octokit remote githubRepository
octokitapiissuesremoveAssignees
owner remoteowner
repo remoterepositoryName
issue_number
assignees
oldReviewThreads IReviewThread newReviewThreads IReviewThread
added IReviewThread
changed IReviewThread
removed IReviewThread
newReviewThreadsthread
existingThread oldReviewThreadst tid threadid
existingThread
thread existingThread
changedthread
addedthread
oldReviewThreadsthread
newReviewThreadst tid threadid
removedthread
_onDidChangeReviewThreads
added
changed
removed
IReviewThread
remote query schema githubRepository
data
query schemaPullRequestComments
variables
owner remoteowner
name remoterepositoryName
reviewThreads datarepositorypullRequestreviewThreadsnodesnode
node githubRepository
oldReviewThreads _reviewThreadsCache
_reviewThreadsCache reviewThreads
oldReviewThreads reviewThreads
reviewThreads
e
Logger PullRequestModel
remote query schema githubRepository
data
query schemaPullRequestComments
variables
owner remoteowner
name remoterepositoryName
comments datarepositorypullRequestreviewThreadsnodes
node nodecommentsnodescomment comment nodeisResolved githubRepository remote
prev curr prevcurr
a IComment b IComment
acreatedAt bcreatedAt
comments comments
e
Logger PullRequestModel
OctokitCommonPullsListCommitsResponseData
Logger PullRequestModel
remote octokit githubRepository
commitData octokitapipullslistCommits
pull_number
owner remoteowner
repo remoterepositoryName
Logger PullRequestModel
commitDatadata
e
vscodewindow
commit OctokitCommonPullsListCommitsResponseData
OctokitCommonReposGetCommitResponseFiles
Logger
PullRequestModel
octokit remote githubRepository
fullCommit octokitapireposgetCommit
owner remoteowner
repo remoterepositoryName
ref commitsha
Logger
PullRequestModel
fullCommitdatafiles
e
vscodewindow
filePath commit
octokit remote githubRepository
fileContent octokitapireposgetContent
owner remoteowner
repo remoterepositoryName
path filePath
ref commit
fileContentdata
contents fileContentdata content
buff bufferBuffercontents fileContentdata encoding
buff
TimelineEvent
Logger PullRequestModel
query remote schema githubRepository
data latestReviewCommitInfo currentUser reviewThreads
query schemaTimelineEvents
variables
owner remoteowner
name remoterepositoryName
githubRepository
ret datarepositorypullRequesttimelineItemsnodes
events ret githubRepository
events reviewThreads
events latestReviewCommitInfosha currentUser head
events
e
e
events TimelineEvent reviewThreads IReviewThread
childComments CommentNode
reviewEvents eventse e CommonReviewEvent eevent EventTypeReviewed
reviewComments reviewThreadsprevious current previous ICommentcurrentcomments
reviewEventsById reviewEventsindex evt
indexevtid evt
evtcomments
index
key CommonReviewEvent
commentsById reviewCommentsindex evt
indexevtid evt
index
key CommentNode
roots CommentNode
i reviewCommentslength
i
c CommentNode reviewCommentsi
cinReplyToId
rootsc
parent commentsByIdcinReplyToId
parentchildComments parentchildComments
parentchildComments c cchildComments parentchildComments
rootsc
review reviewEventsByIdcpullRequestReviewId
review
reviewcomments reviewcommentsccchildComments
reviewThreadsthread
threadprReviewDatabaseId reviewEventsByIdthreadprReviewDatabaseId
prReviewThreadEvent reviewEventsByIdthreadprReviewDatabaseId
prReviewThreadEventreviewThread
threadId threadid
canResolve threadviewerCanResolve
canUnresolve threadviewerCanUnresolve
isResolved threadisResolved
pendingReview reviewEventsr rstate
pendingReview
pendingReviewcomments reviewCommentsc cisDraft
query remote octokit schema githubRepository
branch reviewStates
octokitapireposgetBranch branch baseref owner remoteowner repo remoterepositoryName
query schemaLatestReviews
variables
owner remoteowner
name remoterepositoryName
branchdataprotected branchdataprotectionrequired_status_checks branchdataprotectionrequired_status_checksenforcement_level
id
context
description vscodel10n
state reviewStatesdata LatestReviewsResponserepositorypullRequestlatestReviewsnodesnode nodestate CheckStateNeutral CheckStateFailure
target_url html_url
PullRequestChecks
checks githubRepository
itemmergeable PullRequestMergeabilityNotMergeable checks checksstatusesstatus statusstate CheckStateSuccess
reviewRequiredCheck
reviewRequiredCheck
checks
checks
state CheckStateFailure
statuses
checksstatusesreviewRequiredCheck
checksstate CheckStateFailure
checks
folderManager FolderRepositoryManager
pullRequestModel PullRequestModel
comment IComment
contentChanges pullRequestModel
change contentChanges
fileChange fileChangefileName commentpath fileChangepreviousFileName commentpath
change
pathSegments commentpath
folderManager pullRequestModel change pathSegmentspathSegmentslength
folderManager FolderRepositoryManager
pullRequestModel PullRequestModel
contentChanges pullRequestModel
contentChangeslength
firstChange contentChanges
folderManager pullRequestModel firstChange firstChangefileName
folderManager FolderRepositoryManager
pullRequestModel PullRequestModel
change SlimFileChange InMemFileChange
diffTitle
headUri baseUri vscodeUri
pullRequestModelfolderManageractivePullRequest
headCommit pullRequestModelheadsha
parentFileName changestatus GitChangeType changepreviousFileName changefileName
headUri
vscodeUrifolderManagerrepositoryrootUri changefileName
pullRequestModel
changebaseCommit
headCommit
changefileName
changestatus
changepreviousFileName
baseUri
vscodeUrifolderManagerrepositoryrootUri parentFileName
pullRequestModel
changebaseCommit
headCommit
changefileName
changestatus
changepreviousFileName
uri vscodeUripathfolderManagerrepositoryrootUrifsPath changefileName
headUri
changestatus GitChangeType
uri
base
folderManagerrepositoryrootUri
uri
mergeBase pullRequestModelmergeBase pullRequestModelbasesha
baseUri
uri
changestatus GitChangeType changepreviousFileName changefileName
changestatus GitChangeType mergeBase
base
folderManagerrepositoryrootUri
vscodecommands
baseUri
headUri
_fileChanges Map SlimFileChange InMemFileChange
Map SlimFileChange InMemFileChange
_fileChanges
_fileChanges
data
mergebase mergeBase basesha
parsed data mergebase
parsedfileChange
_fileChangesfileChangefileName fileChange
parsed
IRawFileChange
Logger
PullRequestModel
githubRepository githubRepository
octokit remote githubRepository
base
info octokitapipullsget
owner remoteowner
repo remoterepositoryName
pull_number
infodata githubRepository
compareWithBaseRef basesha
latestReview
oldHasChangesSinceReview hasChangesSinceLastReview
hasChangesSinceLastReview latestReview headsha latestReviewsha
_showChangesSinceReview hasChangesSinceLastReview latestReview
compareWithBaseRef latestReviewsha
itemmerged
response octokitapipullslistFiles
repo remoterepositoryName
owner remoteowner
pull_number
mergeBase basesha
response
data octokitapireposcompareCommits
repo remoterepositoryName
owner remoteowner
base
head
mergeBase datamerge_base_commitsha
files IRawFileChange
datafiles datafileslength
Logger
PullRequestModel
files octokitapipullslistFiles
owner baserepositoryCloneUrlowner
pull_number
repo remoterepositoryName
files datafiles datafiles IRawFileChange
oldHasChangesSinceReview oldHasChangesSinceReview hasChangesSinceLastReview hasChangesSinceLastReview _showChangesSinceReview
_onDidChangeChangesSinceReview
Logger
PullRequestModel
files
itemautoMerge
MergeMethod
itemautoMergeMethod
itemallowAutoMerge
PullRequestMergeability
Logger PullRequestModel
query remote schema githubRepository
data
query schemaPullRequestMergeability
variables
owner remoteowner
name remoterepositoryName
Logger PullRequestModel
mergeability datarepositorypullRequestmergeable datarepositorypullRequestmergeStateStatus
itemmergeable mergeability
mergeability
e
Logger PullRequestModel
PullRequestMergeabilityUnknown
mutate schema githubRepository
data
mutation schemaReadyForReview
variables
input
pullRequestId graphNodeId
datamarkPullRequestReadyForReviewpullRequestisDraft
e
e
graphNodeId reactionGroups ReactionGroup
reviewThread _reviewThreadsCachethread
threadcommentsc cgraphNodeId graphNodeId
reviewThread
updatedComment reviewThreadcommentsc cgraphNodeId graphNodeId
updatedComment
updatedCommentreactions reactionGroups
_onDidChangeReviewThreads added changed reviewThread removed
graphNodeId reaction vscodeCommentReaction AddReactionResponse
reactionEmojiToContent prev curr
prevcurrlabel currtitle
prev
key
mutate schema githubRepository
data
mutation schemaAddReaction
variables
input
subjectId graphNodeId
content reactionEmojiToContentreactionlabel
data
reactionGroups dataaddReactionsubjectreactionGroups
graphNodeId reactionGroups
data
graphNodeId
reaction vscodeCommentReaction
DeleteReactionResponse
reactionEmojiToContent prev curr
prevcurrlabel currtitle
prev
key
mutate schema githubRepository
data
mutation schemaDeleteReaction
variables
input
subjectId graphNodeId
content reactionEmojiToContentreactionlabel
data
reactionGroups dataremoveReactionsubjectreactionGroups
graphNodeId reactionGroups
data
threadId
mutate schema githubRepository
oldThread _reviewThreadsCachethread threadid threadId
oldThread oldThreadviewerCanResolve
oldThreadisResolved
oldThreadviewerCanResolve
oldThreadviewerCanUnresolve
_onDidChangeReviewThreads added changed oldThread removed
data
mutation schemaResolveReviewThread
variables
input
threadId
data
oldThread oldThreadviewerCanUnresolve
oldThreadisResolved
oldThreadviewerCanResolve
oldThreadviewerCanUnresolve
_onDidChangeReviewThreads added changed oldThread removed
index _reviewThreadsCachethread threadid threadId
index
thread dataresolveReviewThreadthread githubRepository
_reviewThreadsCacheindex thread
_onDidChangeReviewThreads added changed thread removed
threadId
mutate schema githubRepository
oldThread _reviewThreadsCachethread threadid threadId
oldThread oldThreadviewerCanUnresolve
oldThreadisResolved
oldThreadviewerCanUnresolve
oldThreadviewerCanResolve
_onDidChangeReviewThreads added changed oldThread removed
data
mutation schemaUnresolveReviewThread
variables
input
threadId
data
oldThread oldThreadviewerCanResolve
oldThreadisResolved
oldThreadviewerCanUnresolve
oldThreadviewerCanResolve
_onDidChangeReviewThreads added changed oldThread removed
index _reviewThreadsCachethread threadid threadId
index
thread dataunresolveReviewThreadthread githubRepository
_reviewThreadsCacheindex thread
_onDidChangeReviewThreads added changed thread removed
mergeMethod MergeMethod
mutate schema githubRepository
data
mutation schemaEnablePullRequestAutoMerge
variables
input
mergeMethod mergeMethod
pullRequestId graphNodeId
data
itemautoMerge
itemautoMergeMethod mergeMethod
e
emessage
vscodewindowvscodel10n
e
mutate schema githubRepository
data
mutation schemaDisablePullRequestAutoMerge
variables
input
pullRequestId graphNodeId
data
itemautoMerge
e
emessage
vscodewindowvscodel10n
e
query schema remote githubRepository
changed fileName viewed ViewedState
after
hasNextPage
data
query schemaPullRequestFiles
variables
owner remoteowner
name remoterepositoryName
after after
datarepositorypullRequestfilesnodesn
_fileChangeViewedStatenpath nviewerViewedState
changed fileName npath viewed nviewerViewedState
npath nviewerViewedState
hasNextPage datarepositorypullRequestfilespageInfohasNextPage
after datarepositorypullRequestfilespageInfoendCursor
hasNextPage
changedlength
_onDidChangeFileViewedState changed
filePathOrSubpath
mutate schema githubRepository
fileName filePathOrSubpathgithubRepositoryrootUripath
filePathOrSubpathgithubRepositoryrootUripathlength filePathOrSubpath
mutation schemaMarkFileAsViewed
variables
input
path fileName
pullRequestId graphNodeId
fileName ViewedState
filePathOrSubpath
mutate schema githubRepository
fileName filePathOrSubpathgithubRepositoryrootUripath
filePathOrSubpathgithubRepositoryrootUripathlength filePathOrSubpath
mutation schemaUnmarkFileAsViewed
variables
input
path fileName
pullRequestId graphNodeId
fileName ViewedState
fileChangeschange change
fileSubpath viewedState ViewedState event
filePath vscodeUrigithubRepositoryrootUri fileSubpathfsPath
viewedState
ViewedState
_viewedFilesfilePath
_unviewedFilesfilePath
ViewedState
_viewedFilesfilePath
_unviewedFilesfilePath
ViewedState
_viewedFilesfilePath
_unviewedFilesfilePath
_fileChangeViewedStatefileSubpath viewedState
event
_onDidChangeFileViewedState changed fileName fileSubpath viewed viewedState
viewed _viewedFiles
unviewed _unviewedFiles