-
Notifications
You must be signed in to change notification settings - Fork 645
Feature Request: go.lintOnSave = "file" #1931
Comments
That sounds like a good idea.
PRs for this feature are most welcome. Code Pointers:
|
golint - supports individual files given the general lack of robust support for single files, does this still seem like a good idea @ramya-rao-a ? |
The event for file save gets fired for one file at a time. Therefore, we won't be falling under the "files not comprising a package" issue. So we should be good to go. |
@jeffb4 If you are working on this, wait a few days till October starts before submitting the PR to win a t-shirt! See https://open.microsoft.com/2018/09/18/hacktoberfest-2018-microsoft/?WT.mc_id=hacktoberfest-twitter-beverst for more details |
If @jeffb4 isn't working on it. I'd be interested in taking a shot at it. |
We haven't heard back from @jeffb4, so go ahead @brainsnail. |
Hey @ramya-rao-a! I've got something sort-of-working in a branch, but I keep running into I'm not super familiar with the TypeScript / JavaScript workflow, so I apologize if there is an obvious approach to this that I haven't taken yet. Any suggestions? |
@brainsnail Can you share the link to your branch? |
@ramya-rao-a Yep, absolutely - https://github.com/brainsnail/vscode-go - I intend to clean up what I added in |
I believe the change should be that |
This feature is now out in the latest update to the Go extension (0.6.92). Thanks @brainsnail! |
Thank you @ramya-rao-a for being so patient and providing guidance as well! |
When using gometalint with all linters enabled, even a package lint can take a significant period of time. It'd be nice to have an additional go.lintOnSave option "file", to only run the linter on the file that was just saved.
The text was updated successfully, but these errors were encountered: