Commit 1f2fe80
Fix "go to label" in bazel LSP (#100)
Summary:
When executing "go to definition" on a label, it would previously go to the correct file but not to the definition of that target. This was because we were searching for a function call where the name is the whole label. Now it parses the label, using the label parser introduced in #101, to extract the name and searches using that.
Pull Request resolved: #100
Reviewed By: wendy728
Differential Revision: D52954185
Pulled By: ndmitchell
fbshipit-source-id: 937da257b7441d8abe313015ca1c8241c7967a101 parent 70fcb24 commit 1f2fe80
1 file changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
745 | 745 | | |
746 | 746 | | |
747 | 747 | | |
748 | | - | |
749 | | - | |
750 | | - | |
751 | | - | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
752 | 754 | | |
753 | 755 | | |
754 | 756 | | |
| |||
0 commit comments