Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Commit

Permalink
Show warning message when modifying debugged file (#2653)
Browse files Browse the repository at this point in the history
  • Loading branch information
haryps authored and ramya-rao-a committed Sep 8, 2019
1 parent 12e064c commit c3eed78
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/goMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,9 @@ function addOnSaveTextDocumentListeners(ctx: vscode.ExtensionContext) {
if (document.languageId !== 'go') {
return;
}
if (vscode.debug.activeDebugSession) {
vscode.window.showWarningMessage('A debug session is currently active. Changes to your Go files may result in unexpected behaviour.');
}
if (vscode.window.visibleTextEditors.some(e => e.document.fileName === document.fileName)) {
runBuilds(document, vscode.workspace.getConfiguration('go', document.uri));
}
Expand Down

0 comments on commit c3eed78

Please sign in to comment.