Skip to content

Commit

Permalink
Rebase against the upstream 08235aa
Browse files Browse the repository at this point in the history
vscode-upstream-sha1: 08235aa
  • Loading branch information
Eclipse Che Sync committed Jul 25, 2023
2 parents 4845055 + 08235aa commit 2d4b064
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
5 changes: 0 additions & 5 deletions code/.vscode/notebooks/my-endgame.github-issues
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,6 @@
"language": "github-issues",
"value": "$REPOS $MILESTONE $MINE is:issue is:closed reason:completed label:feature-request -label:verification-needed -label:on-testplan -label:verified -label:*duplicate"
},
{
"kind": 1,
"language": "markdown",
"value": ""
},
{
"kind": 1,
"language": "markdown",
Expand Down
9 changes: 5 additions & 4 deletions code/src/vs/editor/common/model/textModelTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import { assertFn } from 'vs/base/common/assert';
import { IdleDeadline, runWhenIdle } from 'vs/base/common/async';
import { BugIndicatingError, onUnexpectedError } from 'vs/base/common/errors';
import { setTimeout0 } from 'vs/base/common/platform';
Expand Down Expand Up @@ -68,7 +69,7 @@ export class TokenizerWithStateStoreAndTextModel<TState extends IState = IState>

const r = safeTokenize(this._languageIdCodec, languageId, this.tokenizationSupport, text, true, lineToTokenize.startState);
builder.add(lineToTokenize.lineNumber, r.tokens);
this!.store.setEndState(lineToTokenize.lineNumber, r.endState as TState);
this.store.setEndState(lineToTokenize.lineNumber, r.endState as TState);
}
}

Expand Down Expand Up @@ -220,9 +221,9 @@ export class TrackingTokenizationStateStore<TState extends IState> {
if (!state) {
throw new BugIndicatingError('Cannot set null/undefined state');
}
if (lineNumber > 1 && !this.tokenizationStateStore.getEndState(lineNumber - 1)) {
throw new BugIndicatingError('Cannot set state before setting previous state');
}

// Cannot set state before setting previous state
assertFn(() => lineNumber === 1 || !!this.tokenizationStateStore.getEndState(lineNumber - 1));

while (true) {
const min = this._invalidEndStatesLineNumbers.min;
Expand Down
2 changes: 1 addition & 1 deletion code/src/vs/workbench/contrib/chat/common/chatModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ class Response {

responsePart.resolvedContent?.then((content) => {
// Replace the resolving part's content with the resolved response
this._responseParts[responsePosition] = { string: new MarkdownString(content) };
this._responseParts[responsePosition] = { string: new MarkdownString(content), resolving: true };
this._updateRepr(quiet);
});
}
Expand Down

0 comments on commit 2d4b064

Please sign in to comment.