Skip to content

Commit 9bfe247

Browse files
committed
fix: removing duplicate refreshStatusBar declare method
1 parent 0102385 commit 9bfe247

File tree

3 files changed

+2
-11
lines changed

3 files changed

+2
-11
lines changed

packages/amazonq/src/lsp/client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ async function onLanguageServerReady(
339339
// tutorial for inline chat
340340
const inlineChatTutorialAnnotation = new InlineChatTutorialAnnotation(inlineTutorialAnnotation)
341341

342-
const enableInlineRollback = false
342+
const enableInlineRollback = true
343343
if (enableInlineRollback) {
344344
// use VSC inline
345345
await activateInline()

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

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import { getSelectedCustomization } from '../util/customizationUtil'
1818
import { codicon, getIcon } from '../../shared/icons'
1919
import { session } from '../util/codeWhispererSession'
2020
import { noSuggestions } from '../models/constants'
21-
import { Commands } from '../../shared/vscode/commands2'
2221
import { listCodeWhispererCommandsId } from '../ui/statusBarMenu'
2322

2423
export class InlineCompletionService {
@@ -263,11 +262,3 @@ export class CodeWhispererStatusBar {
263262
statusBar.show()
264263
}
265264
}
266-
267-
/** In this module due to circulare dependency issues */
268-
export const refreshStatusBar = Commands.declare(
269-
{ id: 'aws.amazonq.refreshStatusBar', logging: false },
270-
() => async () => {
271-
await InlineCompletionService.instance.refreshStatusBar()
272-
}
273-
)

packages/core/src/codewhisperer/util/supplementalContext/crossFileContextUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ export async function fetchProjectContext(
194194
editor: vscode.TextEditor,
195195
target: 'default' | 'codemap' | 'bm25'
196196
): Promise<CodeWhispererSupplementalContextItem[]> {
197-
//const inputChunkContent = getInputChunk(editor)
197+
// const inputChunkContent = getInputChunk(editor)
198198
// TODO:
199199
const inlineProjectContext: { content: string; score: number; filePath: string }[] = []
200200

0 commit comments

Comments
 (0)