src/goMain: do not show warning if the active debug session is not ours

In multi-language project, we probably don't need to warn about go file
editing just because a debugging session is active.

Fixes golang/vscode-go#892

Change-Id: I2c649537605e767fe92183687a714d6193f1abf8
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/269137
Trust: Hyang-Ah Hana Kim <hyangah@gmail.com>
Run-TryBot: Hyang-Ah Hana Kim <hyangah@gmail.com>
TryBot-Result: kokoro <noreply+kokoro@google.com>
Reviewed-by: Suzy Mueller <suzmue@golang.org>
diff --git a/src/goMain.ts b/src/goMain.ts
index 7c370c5..bba7a75 100644
--- a/src/goMain.ts
+++ b/src/goMain.ts
@@ -217,7 +217,7 @@
 	ctx.subscriptions.push(
 		vscode.commands.registerCommand('go.debug.cursor', (args) => {
 			if (vscode.debug.activeDebugSession) {
-				vscode.window.showErrorMessage('Debug session has already been started.');
+				vscode.window.showErrorMessage('Debug session has already been started');
 				return;
 			}
 			const goConfig = getGoConfig();
@@ -596,7 +596,8 @@
 			if (document.languageId !== 'go') {
 				return;
 			}
-			if (vscode.debug.activeDebugSession) {
+			const session =  vscode.debug.activeDebugSession;
+			if (session && (session.type === 'go' || session.type === 'godlvdap')) {
 				const neverAgain = { title: `Don't Show Again` };
 				const ignoreActiveDebugWarningKey = 'ignoreActiveDebugWarningKey';
 				const ignoreActiveDebugWarning = getFromGlobalState(ignoreActiveDebugWarningKey);