-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: fix type symbol completion (#1568)
Signed-off-by: he1pa <[email protected]>
- Loading branch information
Showing
11 changed files
with
195 additions
and
18 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
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
5 changes: 5 additions & 0 deletions
5
...tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_attr_ty_0.snap
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,5 @@ | ||
--- | ||
source: tools/src/LSP/src/completion.rs | ||
expression: "format!(\"{:?}\", got_labels)" | ||
--- | ||
[] |
5 changes: 5 additions & 0 deletions
5
...tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_attr_ty_1.snap
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,5 @@ | ||
--- | ||
source: tools/src/LSP/src/completion.rs | ||
expression: "format!(\"{:?}\", got_labels)" | ||
--- | ||
[] |
5 changes: 5 additions & 0 deletions
5
...tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_attr_ty_2.snap
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,5 @@ | ||
--- | ||
source: tools/src/LSP/src/completion.rs | ||
expression: "format!(\"{:?}\", got_labels)" | ||
--- | ||
[] |
5 changes: 5 additions & 0 deletions
5
...tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_attr_ty_3.snap
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,5 @@ | ||
--- | ||
source: tools/src/LSP/src/completion.rs | ||
expression: "format!(\"{:?}\", got_labels)" | ||
--- | ||
[] |
5 changes: 5 additions & 0 deletions
5
...tools/src/LSP/src/snapshots/kcl_language_server__completion__tests__schema_attr_ty_4.snap
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,5 @@ | ||
--- | ||
source: tools/src/LSP/src/completion.rs | ||
expression: "format!(\"{:?}\", got_labels)" | ||
--- | ||
[] |
10 changes: 10 additions & 0 deletions
10
kclvm/tools/src/LSP/src/test_data/completion_test/dot/schema_attr_ty/schema_attr_ty.k
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,10 @@ | ||
schema A: | ||
n: str | ||
|
||
schema B: | ||
named: A | ||
list: [A] | ||
dict: {str:A} | ||
union: str|A | ||
|
||
a: A |