Skip to content

Commit fe8bfac

Browse files
alexandearhyangah
authored andcommitted
package.json: deprecate goformat
goformat can't format modern Go code that uses generics. See mbenkmann/goformat#2 Change-Id: I6ef36db10677fd7e31ea20bb95d75db5d152edd1 Reviewed-on: https://go-review.googlesource.com/c/vscode-go/+/641875 Reviewed-by: Michael Knyszek <mknyszek@google.com> Commit-Queue: Hyang-Ah Hana Kim <hyangah@gmail.com> kokoro-CI: kokoro <noreply+kokoro@google.com> Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
1 parent 3fec532 commit fe8bfac

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

docs/settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,7 @@ Allowed Options:
242242
* `default`: If the language server is enabled, format via the language server, which already supports gofmt, goimports, goreturns, and gofumpt. Otherwise, goimports.
243243
* `gofmt`: Formats the file according to the standard Go style. (not applicable when the language server is enabled)
244244
* `goimports`: Organizes imports and formats the file with gofmt. (not applicable when the language server is enabled)
245-
* `goformat`: Configurable gofmt, see https://github.com/mbenkmann/goformat.
245+
* `goformat`: Configurable gofmt, see https://github.com/mbenkmann/goformat. (Deprecated due to the lack of generics support)
246246
* `gofumpt`: Stricter version of gofmt, see https://github.com/mvdan/gofumpt. . Use `#gopls.format.gofumpt#` instead)
247247
* `custom`: Formats using the custom tool specified as `customFormatter` in the `#go.alternateTools#` setting. The tool should take the input as STDIN and output the formatted code as STDOUT.
248248

extension/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1228,7 +1228,7 @@
12281228
"If the language server is enabled, format via the language server, which already supports gofmt, goimports, goreturns, and gofumpt. Otherwise, goimports.",
12291229
"Formats the file according to the standard Go style. (not applicable when the language server is enabled)",
12301230
"Organizes imports and formats the file with gofmt. (not applicable when the language server is enabled)",
1231-
"Configurable gofmt, see https://github.com/mbenkmann/goformat.",
1231+
"Configurable gofmt, see https://github.com/mbenkmann/goformat. (Deprecated due to the lack of generics support)",
12321232
"Stricter version of gofmt, see https://github.com/mvdan/gofumpt. . Use `#gopls.format.gofumpt#` instead)",
12331233
"Formats using the custom tool specified as `customFormatter` in the `#go.alternateTools#` setting. The tool should take the input as STDIN and output the formatted code as STDOUT."
12341234
]

0 commit comments

Comments
 (0)