Skip to content

Commit 51af404

Browse files
author
Zelin Zhou
committed
fix: linting error caused by merge conflicts
1 parent 67c62af commit 51af404

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

packages/amazonq/src/app/inline/recommendationService.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,6 @@ export class RecommendationService {
6363
)
6464
}
6565

66-
/**
67-
* Set the recommendation service
68-
*/
69-
public setCursorUpdateRecorder(recorder: ICursorUpdateRecorder): void {
70-
this.cursorUpdateRecorder = recorder
71-
}
72-
7366
async getAllRecommendations(
7467
languageClient: LanguageClient,
7568
document: TextDocument,
@@ -109,7 +102,7 @@ export class RecommendationService {
109102
if (document.uri.scheme === 'vscode-notebook-cell') {
110103
request.fileContextOverride = extractFileContextInNotebooks(document, position)
111104
}
112-
const requestStartTime = globals.clock.Date.now()
105+
const requestStartTime = Date.now()
113106
const statusBar = CodeWhispererStatusBarManager.instance
114107

115108
// Only track telemetry if enabled
@@ -238,7 +231,7 @@ export class RecommendationService {
238231
}
239232
TelemetryHelper.instance.setFirstSuggestionShowTime()
240233

241-
const firstCompletionDisplayLatency = globals.clock.Date.now() - requestStartTime
234+
const firstCompletionDisplayLatency = Date.now() - requestStartTime
242235
this.sessionManager.startSession(
243236
result.sessionId,
244237
result.items,

packages/amazonq/src/lsp/client.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,6 @@ export async function startLanguageServer(
196196
textDocument: {
197197
inlineCompletionWithReferences: textDocSection,
198198
},
199-
textDocument: {
200-
inlineCompletionWithReferences: {
201-
inlineEditSupport: Experiments.instance.isExperimentEnabled('amazonqLSPNEP'),
202-
},
203-
},
204199
},
205200
contextConfiguration: {
206201
workspaceIdentifier: extensionContext.storageUri?.path,

0 commit comments

Comments
 (0)