Skip to content

Commit

Permalink
chore: set default formatter in vscode and revert format changes
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx committed Jan 29, 2025
1 parent 65e5c0e commit 6a9bdf1
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 17 deletions.
1 change: 1 addition & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"files.insertFinalNewline": true,
"files.trimFinalNewlines": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.enable": true,
"eslint.run": "onSave",
"editor.codeActionsOnSave": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import {
import { getTelemetryService } from '../telemetry/telemetry';
import { MetadataOrchestrator } from './metadataOrchestrator';
export class ApexActionController {
constructor(private metadataOrchestrator: MetadataOrchestrator) { }
constructor(private metadataOrchestrator: MetadataOrchestrator) {}

/**
* Creates an OpenAPI Document.
Expand Down Expand Up @@ -345,18 +345,18 @@ export class ApexActionController {
registrationProvider: className,
...(this.isVersionGte(orgVersion, '63.0') // Guarded inclusion for API version 254 and above (instance api version 63.0 and above)
? {
registrationProviderType: 'ApexRest',
namedCredential: null,
namedCredentialReferenceId: null,
catalogedApiVersion: null,
isStartSchemaVersion: true,
isHeadSchemaVersion: true,
schemaArtifactVersion: version
}
registrationProviderType: 'ApexRest',
namedCredential: null,
namedCredentialReferenceId: null,
catalogedApiVersion: null,
isStartSchemaVersion: true,
isHeadSchemaVersion: true,
schemaArtifactVersion: version
}
: {
registrationProviderType: 'Custom',
namedCredentialReference: namedCredential
})
registrationProviderType: 'Custom',
namedCredentialReference: namedCredential
})
}
};
}
Expand Down Expand Up @@ -390,11 +390,11 @@ export class ApexActionController {
}
const operations = parsed.paths
? Object.keys(parsed.paths).flatMap(p =>
Object.keys(parsed.paths[p]).map(operation => ({
name: parsed.paths[p][operation].operationId,
active: true
}))
)
Object.keys(parsed.paths[p]).map(operation => ({
name: parsed.paths[p][operation].operationId,
active: true
}))
)
: [];

return operations;
Expand Down

0 comments on commit 6a9bdf1

Please sign in to comment.