Skip to content

Commit

Permalink
use webpack for packaging
Browse files Browse the repository at this point in the history
WIP

Following the instruction in https://aka.ms/vscode-bundle-extension.

I couldn't turn on the 'production' mode yet in packaging due to
an issue with the Go Debug Adapter host program. Will keep investigating.

Updates golang/vscode-go#53

Change-Id: I3466188557038772966a351f9cd41754d8b5ffe4
  • Loading branch information
hyangah committed May 20, 2020
1 parent e2aa002 commit acc38cc
Show file tree
Hide file tree
Showing 6 changed files with 3,710 additions and 51 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
out
node_modules
dist
.vscode-test
.DS_Store
.DS_Store
**.vsix
10 changes: 5 additions & 5 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,24 @@
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm: watch"
"preLaunchTask": "npm: webpack"
},
{
"name": "Launch as server",
"type": "node",
"protocol": "inspector",
"request": "launch",
"program": "${workspaceFolder}/out/src/debugAdapter/goDebug.js",
"program": "${workspaceFolder}/dist/bin/goDebug.js",
"args": [
"--server=4711"
],
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/out/**/*.js"
"${workspaceFolder}/dist/**/*.js"
],
"preLaunchTask": "npm"
"preLaunchTask": "npm: webpack"
},
{
"name": "Launch Extension Tests",
Expand Down
26 changes: 17 additions & 9 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,12 +1,20 @@
src/**/*
typings/**/*
.vscode/**/*
tsconfig.json
.github/**
.gitignore
node_modules/fs-extra
test/
.prettierrc.json
.vscode/**
.vscode-test/**
*.md.nightly
**/*.map
**/tslint.json
build/**/*
docs/
*.md.nightly
build/**
docs/**
node_modules/**
out/**
src/**
test/**
tsconfig.json
typings/**/*
webpack.config.js
!*.md
**/*.md
**/goIcon.png
Loading

0 comments on commit acc38cc

Please sign in to comment.