webpack: fix launch.json

Following the webpack example in

https://github.com/microsoft/vscode-extension-samples/blob/master/webpack-sample/.vscode/launch.json

I am still fuzzy about the unit tests and integration tests
arrangement, but it seems like the basic testing works (breakpoint
and variable lookup) so far. We will keep improving as we find issues.

Fixes golang/vscode-go#308

Change-Id: I53aa4e63a7683f51ff2eaa20fe932305cadf91ad
Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/241861
Reviewed-by: Eli Bendersky <eliben@google.com>
diff --git a/.vscode/launch.json b/.vscode/launch.json
index 46902e2..4f23b75 100644
--- a/.vscode/launch.json
+++ b/.vscode/launch.json
@@ -11,42 +11,45 @@
 				"--extensionDevelopmentPath=${workspaceFolder}",
 				"--disable-extensions"
 			],
+			"outFiles": [
+                "${workspaceFolder}/dist/**/*.js"
+            ],
 			"stopOnEntry": false,
 			"sourceMaps": true,
-			"outFiles": [
-				"${workspaceFolder}/out/**/*.js"
-			],
-			"preLaunchTask": "npm: watch"
+			"smartStep": true,
+			"preLaunchTask": "npm: webpack",
 		},
 		{
 			"name": "Launch as server",
 			"type": "node",
 			"protocol": "inspector",
 			"request": "launch",
-			"program": "${workspaceFolder}/out/src/debugAdapter/goDebug.js",
+			"program": "${workspaceFolder}/dist/debugAdapter.js",
 			"args": [
 				"--server=4711"
 			],
-			"sourceMaps": true,
 			"outFiles": [
-				"${workspaceFolder}/out/**/*.js"
+				"${workspaceFolder}/dist/**/*.js"
 			],
-			"preLaunchTask": "npm"
+			"sourceMaps": true,
+			"smartStep": true,
+			"preLaunchTask": "npm: webpack"
 		},
 		{
 			"name": "Launch as server (dlv dap)",
 			"type": "node",
 			"protocol": "inspector",
 			"request": "launch",
-			"program": "${workspaceFolder}/out/src/debugAdapter2/goDlvDebugMain.js",
+			"program": "${workspaceFolder}/dist/debugAdapter2.js",
 			"args": [
 				"--server=4711"
 			],
 			"sourceMaps": true,
+			"smartStep": true,
 			"outFiles": [
-				"${workspaceFolder}/out/**/*.js"
+				"${workspaceFolder}/dist/**/*.js"
 			],
-			"preLaunchTask": "npm"
+			"preLaunchTask": "npm: webpack"
 		},
 		{
 			"name": "Launch Extension Tests",
@@ -63,6 +66,7 @@
 			],
 			"stopOnEntry": false,
 			"sourceMaps": true,
+			"smartStep": true,
 			"outFiles": [
 				"${workspaceFolder}/out/test/**/*.js"
 			],
@@ -101,7 +105,8 @@
 				"--colors",
 				"${workspaceFolder}/out/test/unit"
 			],
-			"internalConsoleOptions": "openOnSessionStart"
+			"internalConsoleOptions": "openOnSessionStart",
+			"preLaunchTask": "npm: watch",
 		},
 	],
 	"compounds": [