Skip to content

Commit bdca1b2

Browse files
committed
Removing unwanted code
1 parent 5110c12 commit bdca1b2

File tree

3 files changed

+1
-17
lines changed

3 files changed

+1
-17
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 & 8 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

0 commit comments

Comments
 (0)