-
Notifications
You must be signed in to change notification settings - Fork 36k
revert 63814385d1304896c0a269629236df1271261b4c #274256
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
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -312,8 +312,6 @@ export class ChatEditingSession extends Disposable implements IChatEditingSessio | |
| } | ||
|
|
||
| public async getSnapshotModel(requestId: string, undoStop: string | undefined, snapshotUri: URI): Promise<ITextModel | null> { | ||
| await this._baselineCreationLocks.peek(snapshotUri.path); | ||
|
|
||
| const content = await this._timeline.getContentAtStop(requestId, snapshotUri, undoStop); | ||
| if (content === undefined) { | ||
| return null; | ||
|
|
@@ -440,6 +438,8 @@ export class ChatEditingSession extends Disposable implements IChatEditingSessio | |
| this._onDidDispose.dispose(); | ||
| } | ||
|
|
||
| private _streamingEditLocks = new SequencerByKey</* URI */ string>(); | ||
|
||
|
|
||
| private get isDisposed() { | ||
| return this._state.get() === ChatEditingSessionState.Disposed; | ||
| } | ||
|
|
@@ -454,10 +454,6 @@ export class ChatEditingSession extends Disposable implements IChatEditingSessio | |
| const sequencer = new ThrottledSequencer(15, 1000); | ||
| sequencer.queue(() => startPromise.p); | ||
|
|
||
| // Lock around creating the baseline so we don't fail to resolve models | ||
| // in the edit pills if they render quickly | ||
| this._baselineCreationLocks.queue(resource.path, () => startPromise.p); | ||
|
|
||
| this._streamingEditLocks.queue(resource.toString(), async () => { | ||
| if (!this.isDisposed) { | ||
| await this._acceptStreamingEditsStart(responseModel, inUndoStop, resource); | ||
|
|
||
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.
The return type was changed from
stringtovoid, removing the ability for callers to get the checkpoint ID. However, there's no indication that all call sites have been updated. If callers need the checkpoint ID (which seems likely for thenavigateToCheckpointAPI), they must now callgetCheckpointIdForRequestseparately. Consider whether this is an intentional API breaking change or if the return value should be restored.