Skip to content

Commit a9cd834

Browse files
committed
minimize changes
1 parent 7f754d7 commit a9cd834

File tree

6 files changed

+11
-11
lines changed

6 files changed

+11
-11
lines changed

packages/core/src/amazonqFeatureDev/session/sessionState.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,10 +77,10 @@ export function registerNewFiles(
7777
const folder =
7878
workspaceFolderPrefixes === undefined
7979
? workspaceFolders[0]
80-
: workspaceFolderPrefixes[prefix] ??
81-
workspaceFolderPrefixes[
82-
Object.values(workspaceFolderPrefixes).find((val) => val.index === 0)?.name ?? ''
83-
]
80+
: (workspaceFolderPrefixes[prefix] ??
81+
workspaceFolderPrefixes[
82+
Object.values(workspaceFolderPrefixes).find((val) => val.index === 0)?.name ?? ''
83+
])
8484
if (folder === undefined) {
8585
telemetry.toolkit_trackScenario.emit({
8686
count: 1,

packages/core/src/auth/connection.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ export function hasScopes(target: SsoConnection | SsoProfile | string[], scopes:
7373
* Not optimized, but the set of possible scopes is currently very small (< 8)
7474
*/
7575
export function hasExactScopes(target: SsoConnection | SsoProfile | string[], scopes: string[]): boolean {
76-
const targetScopes = Array.isArray(target) ? target : target.scopes ?? []
76+
const targetScopes = Array.isArray(target) ? target : (target.scopes ?? [])
7777
return scopes.length === targetScopes.length && scopes.every((s) => targetScopes.includes(s))
7878
}
7979

@@ -233,7 +233,7 @@ export class ProfileStore {
233233
// To de-dupe telemetry
234234
private _prevGetProfile: { id: string; connectionState: ProfileMetadata['connectionState'] } | undefined
235235

236-
public constructor(private readonly memento: vscode.Memento) {}
236+
public constructor(private readonly memento: vscode.Memento) { }
237237

238238
public getProfile(id: string): StoredProfile | undefined {
239239
return this.getData()[id]

packages/core/src/awsService/iot/explorer/iotCertificateNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export abstract class IotCertificateNode extends AWSTreeNodeBase implements AWSR
5050
this.certificate.id,
5151
this.certificate.activeStatus,
5252
formatLocalized(this.certificate.creationDate),
53-
things?.length ?? 0 > 0 ? `\nAttached to: ${things!.join(', ')}` : ''
53+
(things?.length ?? 0 > 0) ? `\nAttached to: ${things!.join(', ')}` : ''
5454
)
5555
this.iconPath = getIcon('aws-iot-certificate')
5656
this.description = `\t[${this.certificate.activeStatus}]`

packages/core/src/awsService/iot/explorer/iotPolicyNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class IotPolicyNode extends AWSTreeNodeBase implements AWSResourceNode {
3939
'AWS.explorerNode.iot.policyToolTip',
4040
'{0}{1}',
4141
policy.name,
42-
certs?.length ?? 0 > 0 ? `\nAttached to: ${certs?.join(', ')}` : ''
42+
(certs?.length ?? 0 > 0) ? `\nAttached to: ${certs?.join(', ')}` : ''
4343
)
4444
this.iconPath = getIcon('aws-iot-policy')
4545
this.contextValue = 'awsIotPolicyNode.Certificates'

packages/core/src/codewhisperer/models/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -712,7 +712,7 @@ export const crossFileContextConfig = {
712712
numberOfChunkToFetch: 60,
713713
topK: 3,
714714
numberOfLinesEachChunk: 50,
715-
codemapMark: 'q-inline',
715+
filenameMark: 'q-inline',
716716
}
717717

718718
export const utgConfig = {

packages/core/src/testInteg/perf/buildIndex.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import assert from 'assert'
1010
import { LspClient, LspController } from '../../amazonq'
1111
import { LanguageClient, ServerOptions } from 'vscode-languageclient'
1212
import { createTestWorkspace } from '../../test/testUtil'
13-
import { GetUsageRequestType } from '../../amazonq/lsp/types'
13+
import { BuildIndexRequestType, GetUsageRequestType } from '../../amazonq/lsp/types'
1414
import { getRandomString } from '../../shared'
1515

1616
interface SetupResult {
@@ -19,7 +19,7 @@ interface SetupResult {
1919

2020
async function verifyResult(setup: SetupResult) {
2121
assert.ok(setup.clientReqStub.calledTwice)
22-
// assert.ok(setup.clientReqStub.firstCall.calledWith(IndexRequestType))
22+
assert.ok(setup.clientReqStub.firstCall.calledWith(BuildIndexRequestType))
2323
assert.ok(setup.clientReqStub.secondCall.calledWith(GetUsageRequestType))
2424
}
2525

0 commit comments

Comments
 (0)