| This test verifies that the 'source.organizeImports' code action |
| is offered in generated files (see #73959). |
| |
| -- go.mod -- |
| module example.com |
| go 1.21 |
| |
| -- a.go -- |
| // Code generated by me. DO NOT EDIT. |
| |
| package a //@codeaction("a", "source.organizeImports", result=out) |
| |
| func _() { |
| fmt.Println("hello") //@diag("fmt", re"undefined") |
| } |
| |
| -- @out/a.go -- |
| // Code generated by me. DO NOT EDIT. |
| |
| package a //@codeaction("a", "source.organizeImports", result=out) |
| |
| import "fmt" |
| |
| func _() { |
| fmt.Println("hello") //@diag("fmt", re"undefined") |
| } |
| |