question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support vscode and webstorm

See original GitHub issue

Thanks for this great library.

I create a custom rule successfully, but unfortunately, when using the vscode tslint plugin, I can’t see the error ( the red curly brackets ).

Here is my code:

export class Rule extends Lint.Rules.AbstractRule {
  public static FAILURE_STRING = (path: string) => {
    return `${path} - debugger statement forbidden;`;
  }

  public apply(sourceFile: ts.SourceFile): Lint.RuleFailure[] {
    const nodes = tsquery(sourceFile, 'DebuggerStatement');
    return nodes.map(result => {
      return new RuleFailure(
        result.getSourceFile(),
        result.getStart(),
        result.getEnd(),
        Rule.FAILURE_STRING(sourceFile.fileName),
        this.ruleName
      );
    });
  }
}

Do you have any idea why?

Thanks.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:21 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
ArielGuetacommented, Oct 4, 2018

image

1reaction
phenomnomnominalcommented, Oct 4, 2018

just trying to figure out how to debug this! I’ll hopefully figure it out soon

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to move from VS Code to WebStorm - JetBrains
Explore some tips on how to migrate from VS Code to WebStorm. ... Here are a few tips that can help you with...
Read more >
VSCode vs WebStorm - Robert Cooper
WebStorm is better at refactoring JavaScript/TypeScript code. You're able to move functions and variables from one file to another, which VSCode ...
Read more >
WebStorm vs VS Code: Compare Top IDEs | TechRepublic
“Visual Studio” is Microsoft's IDE platform, while Visual Studio Code/VS Code is Microsoft's code editor. The two products can be used together.
Read more >
How to Switch from WebStorm to VS Code
How To Switch from WebStorm to VS Code. In this article, I'm not going to compare WebStorm with VS Code or share the...
Read more >
VSCode vs Webstorm for developing applications using ...
WebStorm is noticeably faster than vscode, 100%. I used vscode forever and like everything about it, except that it's typescript compiler is ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found