File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
core/src/test/codewhisperer Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ describe('Amazon Q Inline', async function () {
3737 const folder = await TestFolder . create ( )
3838 tempFolder = folder . path
3939 await closeAllEditors ( )
40- await resetCodeWhispererGlobalVariables ( false )
40+ await resetCodeWhispererGlobalVariables ( )
4141 } )
4242
4343 afterEach ( async function ( ) {
Original file line number Diff line number Diff line change @@ -28,15 +28,13 @@ import * as model from '../../codewhisperer/models/model'
2828import { stub } from '../utilities/stubber'
2929import { Dirent } from 'fs' // eslint-disable-line no-restricted-imports
3030
31- export async function resetCodeWhispererGlobalVariables ( clearGlobalState : boolean = true ) {
31+ export async function resetCodeWhispererGlobalVariables ( ) {
3232 vsCodeState . isIntelliSenseActive = false
3333 vsCodeState . isCodeWhispererEditing = false
3434 CodeWhispererCodeCoverageTracker . instances . clear ( )
3535 globals . telemetry . logger . clear ( )
3636 session . reset ( )
37- if ( clearGlobalState ) {
38- await globals . globalState . clear ( )
39- }
37+ await globals . globalState . clear ( )
4038 await CodeSuggestionsState . instance . setSuggestionsEnabled ( true )
4139 await RecommendationHandler . instance . clearInlineCompletionStates ( )
4240}
You can’t perform that action at this time.
0 commit comments