Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ export class EditCompletionHandler {
)

// Both classifier and rule based conditions need to evaluate to true otherwise we wont fire Edits requests
const shouldFire = classifierBasedTrigger.shouldTrigger && ruleBasedTrigger !== undefined
const shouldFire = ruleBasedTrigger !== undefined

if (!shouldFire) {
return EMPTY_RESULT
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,10 @@ export function processEditSuggestion(
document: TextDocument,
rightContext: string
): { suggestionContent: string; type: SuggestionType } {
return {
suggestionContent: unifiedDiff,
type: SuggestionType.EDIT,
}
// Assume it's an edit if anything goes wrong, at the very least it will not be rendered incorrectly
let diffCategory: ReturnType<typeof categorizeUnifieddiff> = 'edit'
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,8 @@ export class CodeWhispererServiceToken extends CodeWhispererServiceBase {
return group === 'TREATMENT' ? 'codemap-2hop' : 'codemap'
}

console.log(`repomapTarget=${getRepomapTarget()}`)

const items: SupplementalContext[] = []

const projectContext = await fetchSupplementalContext(
Expand Down
Loading