Skip to content

Commit 98b1265

Browse files
fix(amazonq): commenting out unncalled functions, unused imports
1 parent 865b0e3 commit 98b1265

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ import {
7272
CodeWhispererSettings,
7373
initSecurityScanRender,
7474
ReferenceLogViewProvider,
75-
SecurityIssueProvider,
75+
// SecurityIssueProvider,
7676
SecurityIssueTreeViewProvider,
7777
CodeWhispererConstants,
7878
} from 'aws-core-vscode/codewhisperer'
@@ -90,7 +90,7 @@ import { decryptResponse, encryptRequest } from '../encryption'
9090
import { getCursorState } from '../utils'
9191
import { focusAmazonQPanel } from './commands'
9292
import { ChatMessage } from '@aws/language-server-runtimes/server-interface'
93-
import path from 'path'
93+
// import path from 'path'
9494

9595
export function registerActiveEditorChangeListener(languageClient: LanguageClient) {
9696
let debounceTimer: NodeJS.Timeout | undefined

packages/core/src/codewhisperer/service/securityIssueHoverProvider.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import path from 'path'
1010
import { AuthUtil } from '../util/authUtil'
1111
import { TelemetryHelper } from '../util/telemetryHelper'
1212
import { SecurityIssueProvider } from './securityIssueProvider'
13-
import { amazonqCodeIssueDetailsTabTitle } from '../models/constants'
13+
// import { amazonqCodeIssueDetailsTabTitle } from '../models/constants'
1414

1515
export class SecurityIssueHoverProvider implements vscode.HoverProvider {
1616
static #instance: SecurityIssueHoverProvider
@@ -158,6 +158,8 @@ export class SecurityIssueHoverProvider implements vscode.HoverProvider {
158158
* @param language The language for syntax highlighting
159159
* @returns The markdown string
160160
*/
161+
162+
/*
161163
private _makeCodeBlock(code: string, language?: string) {
162164
const lines = code
163165
.replaceAll('\n\\ No newline at end of file', '')
@@ -203,4 +205,5 @@ ${section}
203205
)
204206
.join('<br />')
205207
}
208+
*/
206209
}

0 commit comments

Comments
 (0)