File tree Expand file tree Collapse file tree 2 files changed +104
-110
lines changed
core/src/codewhisperer/tracker Expand file tree Collapse file tree 2 files changed +104
-110
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ export class UserWrittenCodeTracker {
2929 static #instance: UserWrittenCodeTracker
3030 static copySnippetThreshold = 50
3131 static resetQIsEditingTimeoutMs = 5 * 60 * 1000
32- static defaultCheckPeriodMillis = 1000 * 60 * 5
32+ static defaultCheckPeriodMillis = 5 * 60 * 1000
33+
3334 private constructor ( ) {
3435 this . _userWrittenNewCodeLineCount = new Map < CodewhispererLanguage , number > ( )
3536 this . _userWrittenNewCodeCharacterCount = new Map < CodewhispererLanguage , number > ( )
@@ -166,9 +167,10 @@ export class UserWrittenCodeTracker {
166167 ) {
167168 // if the boolean of qIsMakingEdits was incorrectly set to true
168169 // due to unhandled edge cases or early terminated code paths
169- // reset it back to false after reasonabe period of time
170+ // reset it back to false after a reasonable period of time
170171 if ( this . _qIsMakingEdits ) {
171172 if ( performance . now ( ) - this . _lastQInvocationTime > UserWrittenCodeTracker . resetQIsEditingTimeoutMs ) {
173+ getLogger ( ) . warn ( `Reset Q is editing state to false.` )
172174 this . _qIsMakingEdits = false
173175 }
174176 }
You can’t perform that action at this time.
0 commit comments