-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vscode): missing completions for types (identifiers) (#5726)
In parser contexts where we know something is a type but it has no `.`, completions were not working. This is for situations like the text following `new`, `impl`, `extends`. Once you start typing after that, no completions would be available. *By submitting this pull request, I confirm that my contribution is made under the terms of the [Wing Cloud Contribution License](https://github.com/winglang/wing/blob/main/CONTRIBUTION_LICENSE.md)*.
- Loading branch information
1 parent
f0ceed4
commit d4e159e
Showing
2 changed files
with
37 additions
and
0 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
10 changes: 10 additions & 0 deletions
10
libs/wingc/src/lsp/snapshots/completions/new_expression_partial_namespace.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,10 @@ | ||
--- | ||
source: libs/wingc/src/lsp/completions.rs | ||
--- | ||
- label: cloud | ||
kind: 9 | ||
documentation: | ||
kind: markdown | ||
value: "Module `cloud`" | ||
sortText: kk|cloud | ||
|