Skip to content
Closed
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
35 changes: 35 additions & 0 deletions packages/amazonq/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,41 @@
"items": {
"type": "string"
}
},
"amazonQ.nextEditPrediction.maxFiles": {
"type": "number",
"default": 15,
"description": "Maximum number of files to track for edit predictions",
"minimum": 1,
"scope": "application"
},
"amazonQ.nextEditPrediction.maxTotalSizeKb": {
"type": "number",
"default": 50000,
"description": "Maximum total size of snapshots in kilobytes",
"minimum": 10,
"scope": "application"
},
"amazonQ.nextEditPrediction.maxFileSizeKb": {
"type": "number",
"default": 100,
"description": "Maximum size per file in kilobytes",
"minimum": 5,
"scope": "application"
},
"amazonQ.nextEditPrediction.debounceIntervalMs": {
"type": "number",
"default": 1000,
"description": "Debounce interval in milliseconds between taking snapshots",
"minimum": 500,
"scope": "application"
},
"amazonQ.nextEditPrediction.maxAgeMs": {
"type": "number",
"default": 30000,
"description": "Maximum age of snapshots in milliseconds",
"minimum": 5000,
"scope": "application"
}
}
},
Expand Down
3 changes: 2 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"./feedback": "./dist/src/feedback/index.js",
"./telemetry": "./dist/src/shared/telemetry/index.js",
"./dev": "./dist/src/dev/index.js",
"./notifications": "./dist/src/notifications/index.js"
"./notifications": "./dist/src/notifications/index.js",
"./nep": "./dist/src/nep/index.js"
},
"contributes": {
"icons": {
Expand Down
3 changes: 3 additions & 0 deletions packages/core/src/codewhisperer/activation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,13 @@ import { SecurityIssueTreeViewProvider } from './service/securityIssueTreeViewPr
import { setContext } from '../shared/vscode/setContext'
import { syncSecurityIssueWebview } from './views/securityIssue/securityIssueWebview'
import { detectCommentAboveLine } from '../shared/utilities/commentUtils'
import { activateNextEditPrediction } from './nextEditPrediction/activation'

let localize: nls.LocalizeFunc

export async function activate(context: ExtContext): Promise<void> {
// Activate the Next Edit Prediction system
activateNextEditPrediction(context)
localize = nls.loadMessageBundle()

// Import old CodeWhisperer settings into Amazon Q
Expand Down
Loading