Skip to content

Commit f92d451

Browse files
authored
changelog(codewhisperer): inline hint + active state UI improvements (#4554)
* changelog * address comment
1 parent 9125872 commit f92d451

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "CodeWhisperer: Improve UI to indicate CodeWhisperer is generating suggestions"
4+
}
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"type": "Feature",
3+
"description": "CodeWhisperer: Improve UI to walk through new CodeWhisperer users how-to"
4+
}

packages/core/src/codewhisperer/views/lineAnnotationController.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -424,13 +424,7 @@ export class LineAnnotationController implements vscode.Disposable {
424424
return undefined
425425
}
426426

427-
let nextState: AnnotationState | undefined
428-
429-
if (force) {
430-
nextState = this._currentState.nextState(source, true)
431-
} else {
432-
nextState = this._currentState.nextState(source, false)
433-
}
427+
const nextState: AnnotationState | undefined = this._currentState.nextState(source, force ?? false)
434428

435429
if (nextState === undefined) {
436430
return undefined

0 commit comments

Comments
 (0)