Skip to content

Declare watching tasks without endsPattern #25161

Closed

Description

Reference ionide/ionide-vscode-fsharp#412

I'm trying to use Webpack with a custom loader (fable-loader) together with Visual Studio Code tasks so the custom loader can highlight warnings and errors directly in the IDE. This is already working fine for single compilations, but not so well in watch compilations. The reason is VS Code task configuration requires both beginsPattern and endsPattern of a watch compilation in the output. However I cannot get Webpack to output a message at the end of a watch compilation after all warnings and errors have been displayed. (I've asked in Webpack forum and StackOverflow but didn't get a reply.)

Would it be possible to make the endsPattern optional? In this case, every time the beginsPattern occurs, VS Code would just reset all errors and warnings previously reported by the task an start over. That would be perfect for my use case.

Thanks a lot for your support and for the great tool!

Activity

  1. added
    *question
    tasks
    on Apr 21, 2017
  2. added
    feature-request
    and removed
    *question
    on Apr 25, 2017
  3. alfonsogarciacaro commented on Jun 16, 2017

    @alfonsogarciacaro
    Author

    Finally webpack is outputting messages at the start and end of recompilations so this can be closed :)

  4. edvinv commented on Jun 17, 2017

    @edvinv

    Alfonso Garcia-Caro (@alfonsogarciacaro) , can you please provide link to this webpack feature.

  5. alfonsogarciacaro commented on Jun 17, 2017

    @alfonsogarciacaro
    Author

    Edvin Syse (@edvin) It's not a feature in the sense you activate or deactivate it. Also, I couldn't find it in the Webpack releases. I just noticed that in latest Webpack version (2.4.1) when compiling in watch mode you get the following messages at the start and the end of each recompilation:

    webpack: Compiling...
    
    ...
    
    webpack: Compiled Successfully
    
  6. edvin commented on Jun 17, 2017

    @edvin
  7. alfonsogarciacaro commented on Jun 17, 2017

    @alfonsogarciacaro
    Author

    Ups, sorry! 😅

  8. edvinv commented on Jul 24, 2017

    @edvinv

    Alfonso Garcia-Caro (@alfonsogarciacaro) , thx but I see those two messages only in webpack-dev-server and not in webpack --watch. And also, error messages (in my case for ts-loader or awesome-typescript-loader) are generated after "webpack: Compiled Successfully", so no way to detect compalation end.

  9. removed this from the Backlog milestone on Nov 10, 2017
  10. locked and limited conversation to collaborators on Nov 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesttasks

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions