-
Notifications
You must be signed in to change notification settings - Fork 6
[callhierarchy] added call hierarchy for Go #11
Conversation
Available in the context menu over a function or function call. |
If I understand correctly, the call hierarchy UI is not really decided by this extension, it's done by some other Theia extension or the core? So what this extension does is simply state that the Go language supports call hierarchies? I used this code for testing: https://github.com/simark/ls-interact/tree/master/go-test When I try on the
in an error popup. And when trying on Println:
|
@simark Yes, the callhierarchy is implemented in The problem you describe comes from a missconfigured GOPATH variable. The command line tools the go LS delegates to needs GOPATH to be defined correctly to find references across files. By default, it assumes I've created #12 to discuss this. A workaround here is to put {
"inferGopath": true
} in the |
@@ -0,0 +1,15 @@ | |||
/* | |||
* Copyright (C) 2017 TypeFox and others. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2018?
|
||
export default new ContainerModule((bind: interfaces.Bind, unbind: interfaces.Unbind, isBound: interfaces.IsBound, rebind: interfaces.Rebind) => { | ||
bind(LanguageClientContribution).to(GoClientContribution).inSingletonScope(); | ||
bind(MenuContribution).to(GoMenuContribution).inSingletonScope(); | ||
bind(CommandContribution).to(GoCommandContribution).inSingletonScope(); | ||
bind(GoCommands).to(GoCommands).inSingletonScope(); | ||
bind(GoCallHierarchyService).toSelf().inSingletonScope(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some indentation issue here.
4ea7a5b
to
6fa461b
Compare
6fa461b
to
d24a699
Compare
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
Signed-off-by: Jan Koehnlein <jan.koehnlein@typefox.io>
d24a699
to
0b22337
Compare
Signed-off-by: Jan Koehnlein jan.koehnlein@typefox.io