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 the Typescipt compiler (tsc) and
10+ // Compiles a HelloWorld.ts program
11+ {
12+ "version" : " 0.1.0" ,
13+
14+ // The command is tsc.
15+ "command" : " grunt" ,
16+
17+ // Show the output window only if unrecognized errors occur.
18+ "showOutput" : " silent" ,
19+
20+ // Under windows use tsc.exe. This ensures we don't need a shell.
21+ "windows" : {
22+ "command" : " tsc.exe"
23+ },
24+
25+ "isShellCommand" : true ,
26+
27+ // args is the HelloWorld program to compile.
28+ "args" : [" ts:devall" ],
29+
30+ // use the standard tsc problem matcher to find compile problems
31+ // in the output.
32+ "problemMatcher" : " $tsc"
33+ }
34+
35+ // A task runner configuration for gulp. Gulp provides a less task
36+ // which compiles less to css.
37+ /*
38+ {
39+ "version" : " 0.1.0" ,
40+ "command" : " gulp" ,
41+ "isShellCommand" : true ,
42+ "tasks" : [
43+ {
44+ "taskName" : " less" ,
45+ // Make this the default build command.
46+ "isBuildCommand" : true ,
47+ // Show the output window only if unrecognized errors occur.
48+ "showOutput" : " silent" ,
49+ // Use the standard less compilation problem matcher.
50+ "problemMatcher" : " $lessCompile"
51+ }
52+ ]
53+ }
54+ */
55+
56+ // Uncomment the following section to use gulp in a watching mode that compiles a
57+ // less file. The gulp task prints "[hh:mm:ss] Starting 'clean-styles'" to the console
58+ // when existing css files get deleted and "[hh:mm:ss] Finished 'styles'" when the
59+ // overall less compilation has finished. When the clean pattern is detect internal less
60+ // problems are cleaned. When the finshed pattern is detected in the output less
61+ // problems are published.
62+ /*
63+ {
64+ "version" : " 0.1.0" ,
65+ "command" : " gulp" ,
66+ "isShellCommand" : true ,
67+ "tasks" : [
68+ {
69+ "taskName" : " watch-less" ,
70+ // Make this the default build command.
71+ "isBuildCommand" : true ,
72+ // Show the output window only if unrecognized errors occur.
73+ "showOutput" : " silent" ,
74+ // Task is running in watching mode.
75+ "isWatching" : true ,
76+ "problemMatcher" : {
77+ // Use the standard less compilation problem matcher as the base.
78+ "base" : " $lessCompile" ,
79+ // A regular expression signalling that a watched task begins executing (usually triggered through file watching).
80+ "watchedTaskBeginsRegExp" : " ^\\ [\\ d+:\\ d+:\\ d+\\ ] Starting 'clean-styles'\\ .\\ .\\ .$" ,
81+ // A regular expression signalling that a watched tasks ends executing.
82+ "watchedTaskEndsRegExp" : " ^\\ [\\ d+:\\ d+:\\ d+\\ ] Finished 'styles' after \\ d+"
83+ }
84+ }
85+ ]
86+ }
87+ */
88+
89+ // Uncomment the following section to use jake to build a workspace
90+ // cloned from https://github.com/Microsoft/TypeScript.git
91+ /*
92+ {
93+ "version" : " 0.1.0" ,
94+ // Task runner is jake
95+ "command" : " jake" ,
96+ // Need to be executed in shell / cmd
97+ "isShellCommand" : true ,
98+ "showOutput" : " silent" ,
99+ "tasks" : [
100+ {
101+ // TS build command is local.
102+ "taskName" : " local" ,
103+ // Make this the default build command.
104+ "isBuildCommand" : true ,
105+ // Show the output window only if unrecognized errors occur.
106+ "showOutput" : " silent" ,
107+ // Use the redefined Typescript output problem matcher.
108+ "problemMatcher" : [
109+ " $tsc"
110+ ]
111+ }
112+ ]
113+ }
114+ */
115+
116+ // Uncomment the section below to use msbuild and generate problems
117+ // for csc, cpp, tsc and vb. The configuration assumes that msbuild
118+ // is available on the path and a solution file exists in the
119+ // workspace folder root.
120+ /*
121+ {
122+ "version" : " 0.1.0" ,
123+ "command" : " msbuild" ,
124+ "args" : [
125+ // Ask msbuild to generate full paths for file names.
126+ " /property:GenerateFullPaths=true"
127+ ],
128+ "taskSelector" : " /t:" ,
129+ "showOutput" : " silent" ,
130+ "tasks" : [
131+ {
132+ "taskName" : " build" ,
133+ // Show the output window only if unrecognized errors occur.
134+ "showOutput" : " silent" ,
135+ // Use the standard MS compiler pattern to detect errors, warnings
136+ // and infos in the output.
137+ "problemMatcher" : " $msCompile"
138+ }
139+ ]
140+ }
141+ */
142+
143+ // Uncomment the following section to use msbuild which compiles Typescript
144+ // and less files.
145+ /*
146+ {
147+ "version" : " 0.1.0" ,
148+ "command" : " msbuild" ,
149+ "args" : [
150+ // Ask msbuild to generate full paths for file names.
151+ " /property:GenerateFullPaths=true"
152+ ],
153+ "taskSelector" : " /t:" ,
154+ "showOutput" : " silent" ,
155+ "tasks" : [
156+ {
157+ "taskName" : " build" ,
158+ // Show the output window only if unrecognized errors occur.
159+ "showOutput" : " silent" ,
160+ // Use the standard MS compiler pattern to detect errors, warnings
161+ // and infos in the output.
162+ "problemMatcher" : [
163+ " $msCompile" ,
164+ " $lessCompile"
165+ ]
166+ }
167+ ]
168+ }
169+ */
170+ // A task runner example that defines a problemMatcher inline instead of using
171+ // a predfined one.
172+ /*
173+ {
174+ "version" : " 0.1.0" ,
175+ "command" : " tsc.exe" ,
176+ "args" : [" HelloWorld.ts" ],
177+ "showOutput" : " silent" ,
178+ "problemMatcher" : {
179+ // The problem is owned by the typescript language service. Ensure that the problems
180+ // are merged with problems produced by Visual Studio's language service.
181+ "owner" : " typescript" ,
182+ // The file name for reported problems is relative to the current working directory.
183+ "fileLocation" : [" relative" , " ${cwd}" ],
184+ // The actual pattern to match problems in the output.
185+ "pattern" : {
186+ // The regular expression. Matches HelloWorld.ts(2,10): error TS2339: Property 'logg' does not exist on type 'Console'.
187+ "regexp" : " ^([^\\ s].*)\\ ((\\ d+|\\ d+,\\ d+|\\ d+,\\ d+,\\ d+,\\ d+)\\ ):\\ s+(error|warning|info)\\ s+(TS\\ d+)\\ s*:\\ s*(.*)$" ,
188+ // The match group that denotes the file containing the problem.
189+ "file" : 1 ,
190+ // The match group that denotes the problem location.
191+ "location" : 2 ,
192+ // The match group that denotes the problem's severity. Can be omitted.
193+ "severity" : 3 ,
194+ // The match group that denotes the problem code. Can be omitted.
195+ "code" : 4 ,
196+ // The match group that denotes the problem's message.
197+ "message" : 5
198+ }
199+ }
200+ }
201+ */
0 commit comments