File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ export function activate(ctx: vscode.ExtensionContext) {
217
217
ctx . subscriptions . push (
218
218
vscode . commands . registerCommand ( 'go.debug.cursor' , ( args ) => {
219
219
if ( vscode . debug . activeDebugSession ) {
220
- vscode . window . showErrorMessage ( 'Debug session has already been started. ' ) ;
220
+ vscode . window . showErrorMessage ( 'Debug session has already been started' ) ;
221
221
return ;
222
222
}
223
223
const goConfig = getGoConfig ( ) ;
@@ -596,7 +596,8 @@ function addOnSaveTextDocumentListeners(ctx: vscode.ExtensionContext) {
596
596
if ( document . languageId !== 'go' ) {
597
597
return ;
598
598
}
599
- if ( vscode . debug . activeDebugSession ) {
599
+ const session = vscode . debug . activeDebugSession ;
600
+ if ( session && ( session . type === 'go' || session . type === 'godlvdap' ) ) {
600
601
const neverAgain = { title : `Don't Show Again` } ;
601
602
const ignoreActiveDebugWarningKey = 'ignoreActiveDebugWarningKey' ;
602
603
const ignoreActiveDebugWarning = getFromGlobalState ( ignoreActiveDebugWarningKey ) ;
You can’t perform that action at this time.
0 commit comments