You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Contribute problem matcher for the webpack ts-loader #29619
I'd like to point out that the project you link to, AngularClass/angular-starter is not using the default ts-loader but actually awesome-typescript-loader ( le proof is in teh pudding 🍮 ) which I actually use myself.
IIRC, the $tsc watcher doesn't work for ts-loader either, so preferably someone could write one for both loaders seeing as they're pretty prominent.
Patrick Lienau (@rozzzly) thanks for pointing this out please keep us posted on your progress for defining a problem matcher. Since problem matchers can be contributed by extensions please consider to make the matcher also available as an extension.
Matt Bierner (@mattbierner) thinking about this again, the web pack specific problem matchers should not be contributed by the bundled TypeScript extension but by a web pack extension.
What about webpack running in watch mode? For background task you need to define begins/endsPattern, but for both ts-loader and awesome-typescript-loader, there is no good hook to detect task end.
Juan (@ragnarol) , thx but I don't think that you can do anything in extension. Problem is that webpack, doesn't generate any solid compilation start/end message, so you can not detect process end which is required by vscode. Possible solution is to make endPattern optional, more here #25161.
Activity
rozzzly commentedon Jun 27, 2017
I'd like to point out that the project you link to,
AngularClass/angular-starteris not using the defaultts-loaderbut actuallyawesome-typescript-loader( le proof is in teh pudding 🍮 ) which I actually use myself.IIRC, the
$tscwatcher doesn't work forts-loadereither, so preferably someone could write one for both loaders seeing as they're pretty prominent.I'll try to define my own and then contribute it.
egamma commentedon Jul 4, 2017
Patrick Lienau (@rozzzly) thanks for pointing this out please keep us posted on your progress for defining a problem matcher. Since problem matchers can be contributed by extensions please consider to make the matcher also available as an extension.
Matt Bierner (@mattbierner) thinking about this again, the web pack specific problem matchers should not be contributed by the bundled TypeScript extension but by a web pack extension.
//CC Dirk Bäumer (@dbaeumer)
ragnarol commentedon Jul 5, 2017
I have created my own matcher and works quite well. I will try to contribute it as an extension to:
ragnarol commentedon Jul 8, 2017
And the extension is published:
https://marketplace.visualstudio.com/items?itemName=JuanCasanova.awesometypescriptproblemmatcher
I will upload it to github shortly too.
Updated: It is available in github now too:
https://github.com/ragnarol/Awesome-Typescript-Problem-Matcher
edvinv commentedon Jul 18, 2017
What about webpack running in watch mode? For background task you need to define begins/endsPattern, but for both ts-loader and awesome-typescript-loader, there is no good hook to detect task end.
ragnarol commentedon Jul 18, 2017
Edvin Vidmar (@edvinv) I will have a look, if you create an issue in the extension repository would be great :)
edvinv commentedon Jul 24, 2017
Juan (@ragnarol) , thx but I don't think that you can do anything in extension. Problem is that webpack, doesn't generate any solid compilation start/end message, so you can not detect process end which is required by vscode. Possible solution is to make endPattern optional, more here #25161.
Lixire commentedon Aug 8, 2017
If anyone's interested, I've made a ts-loader problem matcher here: https://marketplace.visualstudio.com/items?itemName=alqiu.ts-loader-problem-matcher . If there are any errors that I didn't capture or there's something wrong with the regex, don't hesitate to raise an issue in the repo.