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.

Extend API to give suggestions that can be used to refactor to fix warnings

See original GitHub issue

https://github.com/fsprojects/VisualFSharpPowerTools/issues/1130

A warning returned from the API should be extended to include optional information on how the warning could be fixed e.g. from text, to text and positions of both - if there’s no value then the fix needs to be done manually/is not yet implemented

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
duckmattcommented, Dec 1, 2016

Ah awesome. For just the hints to start with, I don’t think it’ll be too much work as the linter already know which parts need to be shuffled to get the end result. I think we just need the ranges for each part of both sides of the hint (the match, and the suggestion), which we can get when the hints are matched

I’ll try to make a start on a branch, hopefully something rudimentary by the end of the weekend 🐣

0reactions
Krzysztof-Cieslakcommented, Dec 21, 2016

I mean, all I’d need is pre-release nuget package 😉

Read more comments on GitHub >

github_iconTop Results From Across the Web

Refactoring source code in Visual Studio Code
In VS Code, Code Actions can provide both refactorings and Quick Fixes for detected issues (highlighted with green squiggles). An available Code Action...
Read more >
refactor to "move to another (existing) file" · Issue #29988 · ...
My suggestion meets these guidelines: This wouldn't be a breaking change in existing TypeScript/JavaScript code
Read more >
Refactoring made easy with IntelliCode! - Visual Studio Blog
Illustration showing how IntelliCode can detect patterns syntactically and offer suggestions. If you don't like a suggested change you can ...
Read more >
Introduction to refactoring | IntelliJ IDEA Documentation
If you find a public method that appears to be unused but does form part of a public API, it should be covered...
Read more >
Eclipse: Most useful refactorings [closed]
1) Rename - It works on method names, variable names, class names, fields-- really anything with a name. 2) Convert Anonymous Class to...
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