tiagobento commented on code in PR #3078:
URL:
https://github.com/apache/incubator-kie-tools/pull/3078#discussion_r2059192453
##########
packages/vscode-extension/src/VsCodeKieEditorController.ts:
##########
@@ -257,6 +273,35 @@ export class VsCodeKieEditorController implements
EditorApi {
this.changeDocumentSubscription = undefined;
}
+ private async showExternalChangesNotification() {
+ const selection = await vscode.window.showWarningMessage(
+ this.warningMessage,
+ this.yesKeepTheChanges,
+ this.noDiscardTheChanges
+ );
+ if (selection === this.noDiscardTheChanges) {
+ await (this.document.document as
VsCodeKieEditorCustomDocument).revert(undefined!);
+ }
+ this.hasPendingExternalChanges = false;
+ }
+
+ public startListenToFileChanges() {
Review Comment:
```suggestion
public startListeningToExternalFileChanges() {
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]