Skip to content

Commit 6383d51

Browse files
committed
fix:ignore 'run main package' codelens of _ytest.gox
1 parent 8d8a3aa commit 6383d51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gopls/internal/lsp/source/code_lens_gox.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ func gopToggleDetailsCodeLens(ctx context.Context, snapshot Snapshot, fh FileHan
182182

183183
func gopCommandCodeLens(ctx context.Context, snapshot Snapshot, fh FileHandle) ([]protocol.CodeLens, error) {
184184
filename := fh.URI().Filename()
185-
if strings.HasSuffix(filename, "_test.go") || strings.HasSuffix(filename, "_test.gop") {
185+
if strings.HasSuffix(filename, "_test.go") || strings.HasSuffix(filename, "_test.gop") || strings.HasSuffix(filename, "_ytest.gox") {
186186
return nil, nil
187187
}
188188
pgf, err := snapshot.ParseGop(ctx, fh, parser.PackageClauseOnly)

0 commit comments

Comments
 (0)