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