michaelangeloio / does-it-throw

lsp server for finding ES statements that throw!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature Request: Add @dit-throw to ignore error

khuezy opened this issue · comments

Use case: Some workflows are expected to throw, eg a temporal workflow that aborts on a thrown error.

//@dit-ignore (or equivalent) should tell DIT to ignore the throw statement.

Why: I don't want DIT to give me the squigglies when I expect a function to throw.

@khuezy do we prefer // @dit-ignore or // @does-it-throw-ignore, or both?

@michaelangeloio or maybe @throw-ignore? I'm fine with whatever is best.

@michaelangeloio Can the @ flag be configurable? I kinda like // @it-throws as an answer to does-it-throw.