arosien commented on code in PR #502:
URL: https://github.com/apache/daffodil-vscode/pull/502#discussion_r1142870575
##########
src/omega_edit/dataEditWebView.ts:
##########
@@ -334,25 +304,17 @@ export class DataEditWebView implements vscode.Disposable
{
})
.then(async (uri) => {
if (uri && uri.fsPath) {
- if (uri.path === this.fileToEdit) {
- await this.saveSession(this.omegaSessionId, true).catch(() => {
- vscode.window.showErrorMessage('Failed to save')
+ await omegaEditSession
+ .saveSession(this.omegaSessionId, uri.path, true)
+ .then(async (fp) => {
+ vscode.window.showInformationMessage(`Saved to file: ${fp}`)
Review Comment:
Sorry, bad code navigation in Github.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]