Added condition to handle .go files detected as Go language type #2
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Brackets version:
Release 1.8 experimental build 1.8.0-17108 (alf_localization_release_1.8 3af64fae4)
build timestamp: Wed Nov 09 2016 02:47:52 GMT+0000
bokub/brackets-gofmt version:
1.2.0
Description:
When I open a .go file, Brackets detects the language type as "Go", not "Golang". When I attempt to format the .go file with the gofmt extension the following error dialog pops up:
Go Formatter error
The current file is a Go file.
Go Formatter can format Go files only.
Proposed change:
I added another condition to handle the document language name Go in addition to Golang in main.js on line 139.