-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Mz/w 14720788/diff refresh to sf #5418
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Just one comment :)
defaultUsernameorAlias, | ||
filePart, | ||
filePart | ||
) | ||
); | ||
} catch (err) { | ||
notificationService.showErrorMessage(err.message); | ||
await notificationService.showErrorMessage(err.message); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why this await? the function doesn't return a promise
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
From what I learnt, the return type Thenable also needs await. My vscode lint check also reminds me to do so.
telemetryService.sendException('unsupported_type_on_diff', errorMessage); | ||
notificationService.showErrorMessage(errorMessage); | ||
await notificationService.showErrorMessage(errorMessage); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
@@ -38,13 +38,15 @@ export async function forceSourceDiff(sourceUri?: vscode.Uri) { | |||
|
|||
const defaultUsernameorAlias = WorkspaceContext.getInstance().username; | |||
if (!defaultUsernameorAlias) { | |||
notificationService.showErrorMessage(nls.localize('missing_default_org')); | |||
await notificationService.showErrorMessage( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
telemetryService.sendException('unsupported_type_on_diff', errorMessage); | ||
notificationService.showErrorMessage(errorMessage); | ||
await notificationService.showErrorMessage(errorMessage); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here
@@ -72,7 +74,9 @@ export async function forceSourceFolderDiff(explorerPath: vscode.Uri) { | |||
|
|||
const username = WorkspaceContext.getInstance().username; | |||
if (!username) { | |||
notificationService.showErrorMessage(nls.localize('missing_default_org')); | |||
await notificationService.showErrorMessage( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and here (?
QE notes:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for helping with this!
What does this PR do?
Change the style of diff files, folders & refresh sobject to sf
What issues does this PR fix or reference?
@W-14720788@
Functionality Before
sfdx style
Functionality After
sf style