# Adjust Go outline query for method definition to avoid pesky whitespace \(\#33971\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/955580dae6f8e9faf8a64d145f287d3710c08c11)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 955580dae6f8e9faf8a64d145f287d3710c08c11

Requested commit: 955580dae6f8e9faf8a64d145f287d3710c08c11

Commit: 955580dae6f8e9faf8a64d145f287d3710c08c11

Tree: 6a5e64913aac0d61bbfa33729b0ce45941cc4cd2

Author: Cole Miller

Committer: GitHub

## Message

```
Adjust Go outline query for method definition to avoid pesky whitespace (#33971)

Closes #33951 

There's an adjustment that kicks in to extend `name_ranges` when we
capture more than one `@name` for an outline `@item`. That was happening
here because we captured both the parameter name for the method receiver
and the name of the method as `@name`. It seems like only the second one
should have that annotation.

Release Notes:

- Fixed extraneous leading space in `$ZED_SYMBOL` when used with Go
methods.
```

## Parents

- [c99e42a3d6d57b9f6155a17e99ef9ca5aa5e694d](https://git.cafe/gitcafe/zed/commit/c99e42a3d6d57b9f6155a17e99ef9ca5aa5e694d?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/955580dae6f8e9faf8a64d145f287d3710c08c11?format=markdown)
