Skip to content

Commit f114894

Browse files
authored
refactor(amazonq): deprecate codewhisperer context utils (#7241)
## Problem deprecation for inline ## Solution deprecates: 1. supplemental context + its tests, since that was only passed into codewhisperer 2. codewhisperer coverage tracker, since thats [already in flare](https://github.com/aws/language-servers/blob/main/server/aws-lsp-codewhisperer/src/language-server/inline-completion/codePercentage.ts) 3. [classifier trigger](https://github.com/aws/language-servers/blob/main/server/aws-lsp-codewhisperer/src/language-server/inline-completion/auto-trigger/coefficients.json), since that's in flare 4. inlineCompletionProvider is no longer used and should have been in my other PR 5. editorContext utils, since that was used with supplemental context --- - Treat all work as PUBLIC. Private `feature/x` branches will not be squash-merged at release time. - Your code changes must meet the guidelines in [CONTRIBUTING.md](https://github.com/aws/aws-toolkit-vscode/blob/master/CONTRIBUTING.md#guidelines). - License: I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 3e1614d commit f114894

26 files changed

+1
-5277
lines changed

packages/amazonq/src/app/inline/activation.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
import vscode from 'vscode'
77
import {
88
AuthUtil,
9-
CodeWhispererCodeCoverageTracker,
109
CodeWhispererConstants,
1110
isInlineCompletionEnabled,
1211
runtimeLanguageContext,
@@ -39,7 +38,6 @@ export async function activate() {
3938
return
4039
}
4140

42-
CodeWhispererCodeCoverageTracker.getTracker(e.document.languageId)?.countTotalTokens(e)
4341
UserWrittenCodeTracker.instance.onTextDocumentChange(e)
4442
/**
4543
* Handle this keystroke event only when

0 commit comments

Comments
 (0)