| 1 |
This test verifies that the 'source.organizeImports' code action |
| 2 |
is offered in generated files (see #73959). |
| 3 |
|
| 4 |
-- go.mod -- |
| 5 |
module example.com |
| 6 |
go 1.21 |
| 7 |
|
| 8 |
-- a.go -- |
| 9 |
// Code generated by me. DO NOT EDIT. |
| 10 |
|
| 11 |
package a //@codeaction("a", "source.organizeImports", result=out) |
| 12 |
|
| 13 |
func _() { |
| 14 |
fmt.Println("hello") //@diag("fmt", re"undefined") |
| 15 |
} |
| 16 |
|
| 17 |
-- @out/a.go -- |
| 18 |
// Code generated by me. DO NOT EDIT. |
| 19 |
|
| 20 |
package a //@codeaction("a", "source.organizeImports", result=out) |
| 21 |
|
| 22 |
import "fmt" |
| 23 |
|
| 24 |
func _() { |
| 25 |
fmt.Println("hello") //@diag("fmt", re"undefined") |
| 26 |
} |
| 27 |
|