-
Notifications
You must be signed in to change notification settings - Fork 645
can inferGopath look for "src" in the current directory? #1213
Comments
Sure, we can have that as a fallback. |
This feature in in urgent need! Plz let me know if it is on implementing. |
There are 2 ways to do this:
I wouldn't prefer the first as in the worse case scenario we will be doing a whole lot of file stats. So I am going with the second option. |
For what it's worth, a third option is:
That should only require one file stat. |
Agree. As the common case to have src as a child is a project expected be compiled and run out of the box, and in this case the work root is expected to be the GOPATH, with src as its direct child. |
Fair enough, done with 5f5cad5 |
This fix is now out in the latest update to the Go extension (0.6.71) |
When
go.inferGopath
is on, the current behavior is that if you run:Then the GOPATH is inferred. However, if you run:
Then it isn't. If
src
is not found in any parent directory, then it would be nice if it also checked if there is a child folder namedsrc
as well. This would allow the same workspace to be used to edit sibling directories ofsrc
.(In my particular case, I have
src
anddoc
as siblings in the same repo and it would be nice to see both in the same window.)The text was updated successfully, but these errors were encountered: