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.

source.fixAll.tslint has no effect

See original GitHub issue

The extension page says to use the setting below to enforce format on save:

"editor.codeActionsOnSave": {
    "source.fixAll.tslint": true
}

This has no effect, however. tslint only formats on save if the key is source.fixAll, adding the .tslint to the end breaks it.

VS Code version 1.33.0-insider Extension version 1.0.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:12
  • Comments:29 (6 by maintainers)

github_iconTop GitHub Comments

4reactions
gauravmahtocommented, May 27, 2019

I also confirm that after updating to v1.34, the autofix feature doesn’t work anymore.

Version: 1.34.0 (user setup) Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758 Date: 2019-05-15T21:59:37.030Z Electron: 3.1.8 Chrome: 66.0.3359.181 Node.js: 10.2.0 V8: 6.6.346.32 OS: Windows_NT x64 10.0.18362

4reactions
ExtraBBcommented, Apr 15, 2019

Can confirm that the following setting is not working with vs-code 1.33.1:

    "editor.codeActionsOnSave": {
        "source.fixAll": true
    }
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to stop Visual Studio Code from adding a two spaces ...
Try adding this to your vscode settings: "editor.codeActionsOnSave": { "source.fixAll.tslint": true, },.
Read more >
vscode-stylelint - Visual Studio Marketplace
⚠️ Stylelint is No Longer Bundled. Unlike 0.x, 1.x no longer provides a copy of Stylelint bundled with the extension. Bundling Stylelint ...
Read more >
tslint auto fix vscode, tslint autofix on save, tslint --fix example, tslint ...
"tslint.exclude": "src/**/*.spec.ts" This has no effect. Tslint is still reporting violations in the editor and in the Problems pane. Any file ...
Read more >
PhpStorm - Code Inspections in JavaScript and TypeScript
This is usually the case if the imported symbols are not used in the source file. To avoid side-effects, consider using bare import...
Read more >
How to configure Prettier and VSCode
You can configure JavaScript code auto-formatting with Prettier to ... you have files that should not be formatted: auto-generated source ...
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