Skip to content

Commit 024f51c

Browse files
authored
Add webpack support for vscode java extension. (#751)
* Add webpack support for vscode java extension. Signed-off-by: Yaohai Zheng <[email protected]> * Address review feedback. Signed-off-by: Yaohai Zheng <[email protected]>
1 parent 42d311a commit 024f51c

13 files changed

+1899
-38
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,4 @@ node_modules
66
.vscode-test
77
undefined
88
target
9+
dist

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ install:
2424
- tar -xvzf jdt-language-server-latest.tar.gz -C ./server
2525
- rm jdt-language-server-latest.tar.gz
2626
- npm install
27+
- npm run compile
2728
- npm run vscode:prepublish
2829
- npm install -g vsce
2930
- vsce package

.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
1111
"stopOnEntry": false,
1212
"sourceMaps": true,
13-
"outFiles": [ "${workspaceRoot}/out/src/**" ],
13+
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
1414
"preLaunchTask": "npm: watch"
1515
},
1616
{
@@ -21,7 +21,7 @@
2121
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
2222
"stopOnEntry": false,
2323
"sourceMaps": true,
24-
"outFiles": [ "${workspaceRoot}/out/src/**" ],
24+
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
2525
"env": {
2626
"SERVER_PORT": "3333"
2727
},
@@ -35,7 +35,7 @@
3535
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
3636
"stopOnEntry": false,
3737
"sourceMaps": true,
38-
"outFiles": [ "${workspaceRoot}/out/src/**" ],
38+
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
3939
"env": {
4040
"JDTLS_CLIENT_PORT": "5036"
4141
},
@@ -50,7 +50,7 @@
5050
"stopOnEntry": false,
5151
"sourceMaps": true,
5252
"outFiles": ["${workspaceRoot}/out/test/**"],
53-
"preLaunchTask": "npm: watch"
53+
"preLaunchTask": "npm: compile"
5454
}
5555
]
5656
}

.vscode/tasks.json

Lines changed: 32 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
11
// See https://go.microsoft.com/fwlink/?LinkId=733558
22
// for the documentation about the tasks.json format
33
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never"
13-
},
14-
"group": {
15-
"kind": "build",
16-
"isDefault": true
17-
}
18-
}
19-
]
20-
}
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": {
10+
"owner": "typescript",
11+
"pattern":[
12+
{
13+
"regexp": "\\[tsl\\] ERROR",
14+
"file": 1,
15+
"location": 2,
16+
"message": 3
17+
}
18+
],
19+
"background": {
20+
"activeOnStart": true,
21+
"beginsPattern": "Compilation \\w+ starting…",
22+
"endsPattern": "Compilation\\s+finished"
23+
}
24+
},
25+
"isBackground": true,
26+
"presentation": {
27+
"reveal": "never"
28+
},
29+
"group": {
30+
"kind": "build",
31+
"isDefault": true
32+
}
33+
}
34+
]
35+
}

.vscodeignore

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.vscode/**
22
typings/**
3-
out/test/**
3+
out/**
44
test/**
55
src/**
66
images/**
@@ -14,3 +14,11 @@ CONTRIBUTING.md
1414
.vscode-test/**
1515
**/**.vsix
1616
**/**.tar.gz
17+
dist/**/*.map
18+
webpack.*.json
19+
node_modules
20+
.editorconfig
21+
.travis.yml
22+
gulpfile.jsonJenkinsfile
23+
tslint.json
24+
webpack.config.js

0 commit comments

Comments
 (0)