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 configuration for gulp. Gulp provides a less task
10
+ // which compiles less to css.
11
+ {
12
+ "version" : " 0.1.0" ,
13
+ "command" : " gulp" ,
14
+ "isShellCommand" : true ,
15
+ "tasks" : [
16
+ {
17
+ "taskName" : " tsc" ,
18
+ // Make this the default build command.
19
+ "isBuildCommand" : true ,
20
+ // Show the output window only if unrecognized errors occur.
21
+ "showOutput" : " silent" ,
22
+ // Use the standard less compilation problem matcher.
23
+ "problemMatcher" : " $lessCompile"
24
+ }
25
+ ]
26
+ }
27
+
28
+ // Uncomment the following section to use jake to build a workspace
29
+ // cloned from https://github.com/Microsoft/TypeScript.git
30
+ /*
31
+ {
32
+ "version" : " 0.1.0" ,
33
+ // Task runner is jake
34
+ "command" : " jake" ,
35
+ // Need to be executed in shell / cmd
36
+ "isShellCommand" : true ,
37
+ "showOutput" : " silent" ,
38
+ "tasks" : [
39
+ {
40
+ // TS build command is local.
41
+ "taskName" : " local" ,
42
+ // Make this the default build command.
43
+ "isBuildCommand" : true ,
44
+ // Show the output window only if unrecognized errors occur.
45
+ "showOutput" : " silent" ,
46
+ // Use the redefined Typescript output problem matcher.
47
+ "problemMatcher" : [
48
+ " $tsc"
49
+ ]
50
+ }
51
+ ]
52
+ }
53
+ */
54
+
55
+ // Uncomment the section below to use msbuild and generate problems
56
+ // for csc, cpp, tsc and vb. The configuration assumes that msbuild
57
+ // is available on the path and a solution file exists in the
58
+ // workspace folder root.
59
+ /*
60
+ {
61
+ "version" : " 0.1.0" ,
62
+ "command" : " msbuild" ,
63
+ "args" : [
64
+ // Ask msbuild to generate full paths for file names.
65
+ " /property:GenerateFullPaths=true"
66
+ ],
67
+ "taskSelector" : " /t:" ,
68
+ "showOutput" : " silent" ,
69
+ "tasks" : [
70
+ {
71
+ "taskName" : " build" ,
72
+ // Show the output window only if unrecognized errors occur.
73
+ "showOutput" : " silent" ,
74
+ // Use the standard MS compiler pattern to detect errors, warnings
75
+ // and infos in the output.
76
+ "problemMatcher" : " $msCompile"
77
+ }
78
+ ]
79
+ }
80
+ */
81
+
82
+ // Uncomment the following section to use msbuild which compiles Typescript
83
+ // and less files.
84
+ /*
85
+ {
86
+ "version" : " 0.1.0" ,
87
+ "command" : " msbuild" ,
88
+ "args" : [
89
+ // Ask msbuild to generate full paths for file names.
90
+ " /property:GenerateFullPaths=true"
91
+ ],
92
+ "taskSelector" : " /t:" ,
93
+ "showOutput" : " silent" ,
94
+ "tasks" : [
95
+ {
96
+ "taskName" : " build" ,
97
+ // Show the output window only if unrecognized errors occur.
98
+ "showOutput" : " silent" ,
99
+ // Use the standard MS compiler pattern to detect errors, warnings
100
+ // and infos in the output.
101
+ "problemMatcher" : [
102
+ " $msCompile" ,
103
+ " $lessCompile"
104
+ ]
105
+ }
106
+ ]
107
+ }
108
+ */
109
+ // A task runner example that defines a problemMatcher inline instead of using
110
+ // a predefined one.
111
+ /*
112
+ {
113
+ "version" : " 0.1.0" ,
114
+ "command" : " tsc" ,
115
+ "isShellCommand" : true ,
116
+ "args" : [" HelloWorld.ts" ],
117
+ "showOutput" : " silent" ,
118
+ "problemMatcher" : {
119
+ // The problem is owned by the typescript language service. Ensure that the problems
120
+ // are merged with problems produced by Visual Studio's language service.
121
+ "owner" : " typescript" ,
122
+ // The file name for reported problems is relative to the current working directory.
123
+ "fileLocation" : [" relative" , " ${cwd}" ],
124
+ // The actual pattern to match problems in the output.
125
+ "pattern" : {
126
+ // The regular expression. Matches HelloWorld.ts(2,10): error TS2339: Property 'logg' does not exist on type 'Console'.
127
+ "regexp" : " ^([^\\ s].*)\\ ((\\ d+|\\ d+,\\ d+|\\ d+,\\ d+,\\ d+,\\ d+)\\ ):\\ s+(error|warning|info)\\ s+(TS\\ d+)\\ s*:\\ s*(.*)$" ,
128
+ // The match group that denotes the file containing the problem.
129
+ "file" : 1 ,
130
+ // The match group that denotes the problem location.
131
+ "location" : 2 ,
132
+ // The match group that denotes the problem's severity. Can be omitted.
133
+ "severity" : 3 ,
134
+ // The match group that denotes the problem code. Can be omitted.
135
+ "code" : 4 ,
136
+ // The match group that denotes the problem's message.
137
+ "message" : 5
138
+ }
139
+ }
140
+ }
141
+ */
0 commit comments