Skip to content

Commit 80e37c4

Browse files
committed
Fix langserver issues, add config options to beautifier, closes #3
1 parent b68e947 commit 80e37c4

9 files changed

Lines changed: 3402 additions & 2070 deletions

File tree

.vscode/tasks.json

Lines changed: 38 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,42 @@
77
// ${cwd}: the current working directory of the spawned process
88
// A task runner that calls a custom npm script that compiles the extension.
99
{
10-
"version": "0.1.0",
11-
// we want to run npm
12-
"command": "npm",
13-
// the command is a shell script
14-
"isShellCommand": true,
15-
// show the output window only if unrecognized errors occur.
16-
"showOutput": "silent",
17-
// we run the custom script "compile" as defined in package.json
18-
"args": [
19-
"run",
20-
"--loglevel",
21-
"silent"
22-
],
23-
"tasks": [
24-
{
25-
"taskName": "compile",
26-
"isBuildCommand": true,
27-
"problemMatcher": "$tsc"
28-
},
29-
{
30-
"taskName": "watch",
31-
// The tsc compiler is started in watching mode
32-
"isBackground": true,
33-
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
34-
"problemMatcher": "$tsc-watch"
10+
"version": "2.0.0",
11+
// we want to run npm
12+
"command": "npm",
13+
// we run the custom script "compile" as defined in package.json
14+
"args": [
15+
"run"
16+
],
17+
"tasks": [
18+
{
19+
"label": "compile",
20+
"type": "shell",
21+
"command": "npm",
22+
"args": [
23+
"run",
24+
"--loglevel",
25+
"silent",
26+
"compile"
27+
],
28+
"problemMatcher": "$tsc",
29+
"group": {
30+
"_id": "build",
31+
"isDefault": false
3532
}
36-
]
37-
}
38-
33+
},
34+
{
35+
"label": "watch",
36+
"type": "shell",
37+
"command": "npm",
38+
"args": [
39+
"run",
40+
"--loglevel",
41+
"silent",
42+
"watch"
43+
],
44+
"isBackground": true,
45+
"problemMatcher": "$tsc-watch"
46+
}
47+
]
48+
}

.vscode/tasks.json.old

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
// A task runner that calls a custom npm script that compiles the extension.
9+
{
10+
"version": "0.1.0",
11+
// we want to run npm
12+
"command": "npm",
13+
// the command is a shell script
14+
"isShellCommand": true,
15+
// show the output window only if unrecognized errors occur.
16+
"showOutput": "silent",
17+
// we run the custom script "compile" as defined in package.json
18+
"args": [
19+
"run",
20+
"--loglevel",
21+
"silent"
22+
],
23+
"tasks": [
24+
{
25+
"taskName": "compile",
26+
"isBuildCommand": true,
27+
"problemMatcher": "$tsc"
28+
},
29+
{
30+
"taskName": "watch",
31+
// The tsc compiler is started in watching mode
32+
"isBackground": true,
33+
// use the standard tsc in watch mode problem matcher to find compile problems in the output.
34+
"problemMatcher": "$tsc-watch"
35+
}
36+
]
37+
}
38+

language-configuration.json

Lines changed: 56 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,28 +3,70 @@
33
// symbol used for single line comment. Remove this entry if your language does not support line comments
44
"lineComment": "//",
55
// symbols used for start and end a block comment. Remove this entry if your language does not support block comments
6-
"blockComment": [ "/*", "*/" ]
6+
"blockComment": [
7+
"/*",
8+
"*/"
9+
]
710
},
811
// symbols used as brackets
912
"brackets": [
10-
["{", "}"],
11-
["[", "]"],
12-
["(", ")"]
13+
[
14+
"{",
15+
"}"
16+
],
17+
[
18+
"[",
19+
"]"
20+
],
21+
[
22+
"(",
23+
")"
24+
]
1325
],
1426
// symbols that are auto closed when typing
1527
"autoClosingPairs": [
16-
["{", "}"],
17-
["[", "]"],
18-
["(", ")"],
19-
["\"", "\""],
20-
["'", "'"]
28+
[
29+
"{",
30+
"}"
31+
],
32+
[
33+
"[",
34+
"]"
35+
],
36+
[
37+
"(",
38+
")"
39+
],
40+
[
41+
"\"",
42+
"\""
43+
],
44+
[
45+
"'",
46+
"'"
47+
]
2148
],
2249
// symbols that that can be used to surround a selection
2350
"surroundingPairs": [
24-
["{", "}"],
25-
["[", "]"],
26-
["(", ")"],
27-
["\"", "\""],
28-
["'", "'"]
51+
[
52+
"{",
53+
"}"
54+
],
55+
[
56+
"[",
57+
"]"
58+
],
59+
[
60+
"(",
61+
")"
62+
],
63+
[
64+
"\"",
65+
"\""
66+
],
67+
[
68+
"'",
69+
"'"
70+
]
2971
]
3072
}

0 commit comments

Comments
 (0)