Skip to content

Commit 515fbeb

Browse files
authored
Use webpack to improve performance (#129)
1 parent c94ac71 commit 515fbeb

File tree

7 files changed

+2924
-538
lines changed

7 files changed

+2924
-538
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ out/
88
**/*.vsix
99
.vscode-test/
1010
vscode-java-*.vsix
11-
packages/
11+
packages/
12+
dist

.vscode/launch.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
1111
"stopOnEntry": false,
1212
"sourceMaps": true,
13-
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
14-
"preLaunchTask": "npm"
13+
"outFiles": [ "${workspaceRoot}/dist/**/*.js" ],
14+
"preLaunchTask": "npm: watch"
1515
},
1616
{
1717
"name": "Launch Tests",

.vscode/tasks.json

Lines changed: 33 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,35 @@
1-
// Available variables which can be used inside of strings.
2-
// ${workspaceRoot}: the root folder of the team
3-
// ${file}: the current opened file
4-
// ${fileBasename}: the current opened file's basename
5-
// ${fileDirname}: the current opened file's dirname
6-
// ${fileExtname}: the current opened file's extension
7-
// ${cwd}: the current working directory of the spawned process
8-
9-
// A task runner that calls a custom npm script that compiles the extension.
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
103
{
11-
"version": "0.1.0",
12-
13-
// we want to run npm
14-
"command": "npm",
15-
16-
// the command is a shell script
17-
"isShellCommand": true,
18-
19-
// show the output window only if unrecognized errors occur.
20-
"showOutput": "silent",
21-
22-
// we run the custom script "compile" as defined in package.json
23-
"args": ["run", "compile", "--loglevel", "silent"],
24-
25-
// The tsc compiler is started in watching mode
26-
"isBackground": true,
27-
28-
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
29-
"problemMatcher": "$tsc-watch"
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+
]
3035
}

.vscodeignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.vscode/**
22
.vscode-test/**
3-
out/test/**
3+
out/**
44
test/**
55
src/**
66
**/*.map
@@ -9,3 +9,6 @@ vscode/**
99
tsconfig.json
1010
gulpfile.js
1111
.gitignore
12+
dist/**/*.map
13+
webpack.*.js
14+
node_modules

0 commit comments

Comments
 (0)