tiagobento commented on code in PR #3078:
URL: 
https://github.com/apache/incubator-kie-tools/pull/3078#discussion_r2059208347


##########
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() {
+    this.fileWatcher?.dispose();
+    this.fileWatcher = 
vscode.workspace.createFileSystemWatcher("**/*.{dmn,bpmn,scesim}");

Review Comment:
   I guess we need a parameter here, or infer those extensions from the other 
parameters we already have, since this package is generic and format-agnostic.



-- 
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]

Reply via email to