Skip to content

Commit 61469dd

Browse files
committed
Removing unwanted code
1 parent 5110c12 commit 61469dd

File tree

3 files changed

+1
-26
lines changed

3 files changed

+1
-26
lines changed

packages/amazonq/src/lsp/chat/commands.ts

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import { window } from 'vscode'
88
import { AmazonQChatViewProvider } from './webviewProvider'
99
import { CodeScanIssue } from 'aws-core-vscode/codewhisperer'
1010
import { EditorContextExtractor } from 'aws-core-vscode/codewhispererChat'
11-
// import { DefaultAmazonQAppInitContext } from 'aws-core-vscode/amazonq'
1211

1312
/**
1413
* TODO: Re-enable these once we can figure out which path they're going to live in
@@ -21,13 +20,7 @@ export function registerCommands(provider: AmazonQChatViewProvider) {
2120
registerGenericCommand('aws.amazonq.fixCode', 'Fix', provider),
2221
registerGenericCommand('aws.amazonq.optimizeCode', 'Optimize', provider),
2322
registerGenericCommand('aws.amazonq.generateUnitTests', 'Generate Tests', provider),
24-
// Commands.register('aws.amazonq.generateUnitTests', async () => {
25-
// DefaultAmazonQAppInitContext.instance.getAppsToWebViewMessagePublisher().publish({
26-
// sender: 'testChat',
27-
// command: 'test',
28-
// type: 'chatMessage',
29-
// })
30-
// }),
23+
3124
Commands.register('aws.amazonq.explainIssue', async (issue: CodeScanIssue) => {
3225
void focusAmazonQPanel().then(async () => {
3326
const editorContextExtractor = new EditorContextExtractor()

packages/core/src/amazonq/webview/ui/quickActions/generator.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export class QuickActionGenerator {
4242
// TODO: Update acc to UX
4343
const quickActionCommands = [
4444
{
45-
// groupName: `Q Developer agentic capabilities`,
4645
commands: [
4746
...(this.isFeatureDevEnabled && !this.disabledCommands.includes('/dev')
4847
? [

packages/core/src/amazonq/webview/ui/quickActions/handler.ts

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,6 @@ export class QuickActionHandler {
126126
return
127127
}
128128

129-
/**
130-
* status bar -> "full project scan is now /review" doesn't have a tab ID
131-
* since it's called via a command so we need to manually create one
132-
*/
133-
if (!tabID) {
134-
tabID = this.mynahUI.updateStore('', {})
135-
}
136-
137129
// if there is no scan tab, open a new one
138130
const affectedTabId: string | undefined = this.addTab(tabID)
139131

@@ -177,15 +169,6 @@ export class QuickActionHandler {
177169
return
178170
}
179171

180-
/**
181-
* right click -> generate test has no tab id
182-
* we have to manually create one if a testgen tab
183-
* wasn't previously created
184-
*/
185-
// if (!tabID) {
186-
// tabID = this.mynahUI.updateStore('', {})
187-
// }
188-
189172
// if there is no test tab, open a new one
190173
const affectedTabId: string | undefined = this.addTab(tabID)
191174

0 commit comments

Comments
 (0)