-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completion: Fix completion through an import pointing to a local bind (…
…#118) * Completion: Fix completion through an import pointing to a local bind Closes #113 This also fixes the go-to-definition functionality for this case, since it's the same code * Change order. Var ref is probably more exact than a stack search * Make it work nested
- Loading branch information
1 parent
92fc191
commit fd733b2
Showing
6 changed files
with
119 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
local hello = import 'local-at-root.jsonnet'; | ||
|
||
{ | ||
a: hello.to, | ||
} | ||
hello.to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
local hello2 = import 'local-at-root-2.jsonnet'; | ||
|
||
hello2.the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
local hello3 = import 'local-at-root-3.jsonnet'; | ||
|
||
hello3.world |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,9 @@ local hello = { | |
}, | ||
hello: { | ||
to: { | ||
the: 'world', | ||
the: { | ||
world: 'hello', | ||
}, | ||
}, | ||
}, | ||
}; | ||
|