-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: abstract classes appear are listed under
new ...
autocompletio…
…ns (#7112) fixes #6971 ## Checklist - [ ] Title matches [Winglang's style guide](https://www.winglang.io/contributing/start-here/pull_requests#how-are-pull-request-titles-formatted) - [ ] Description explains motivation and solution - [ ] Tests added (always) - [ ] Docs updated (only required for features) - [ ] Added `pr/e2e-full` label if this feature requires end-to-end testing *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
Showing
2 changed files
with
106 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
81 changes: 81 additions & 0 deletions
81
packages/@winglang/wingc/src/lsp/snapshots/completions/hide_abstract_members.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,81 @@ | ||
--- | ||
source: packages/@winglang/wingc/src/lsp/completions.rs | ||
--- | ||
- label: Button | ||
kind: 7 | ||
documentation: | ||
kind: markdown | ||
value: "```wing\nclass Button extends VisualComponent {\n static isVisualComponent(...): bool;\n}\n```\n---\nA button can be used to perform an action.\n\n*@noinflight*" | ||
sortText: gg|Button | ||
insertText: Button($1) | ||
insertTextFormat: 2 | ||
command: | ||
title: triggerParameterHints | ||
command: editor.action.triggerParameterHints | ||
- label: Field | ||
kind: 7 | ||
documentation: | ||
kind: markdown | ||
value: "```wing\nclass Field extends VisualComponent {\n static isVisualComponent(...): bool;\n}\n```\n---\nA field can be used to display a value.\n\n*@noinflight*" | ||
sortText: gg|Field | ||
insertText: Field($1) | ||
insertTextFormat: 2 | ||
command: | ||
title: triggerParameterHints | ||
command: editor.action.triggerParameterHints | ||
- label: FileBrowser | ||
kind: 7 | ||
documentation: | ||
kind: markdown | ||
value: "```wing\nclass FileBrowser extends VisualComponent {\n static isVisualComponent(...): bool;\n}\n```\n---\nA file browser can be used to browse files.\n\n*@noinflight*" | ||
sortText: gg|FileBrowser | ||
insertText: FileBrowser($1) | ||
insertTextFormat: 2 | ||
command: | ||
title: triggerParameterHints | ||
command: editor.action.triggerParameterHints | ||
- label: HttpClient | ||
kind: 7 | ||
documentation: | ||
kind: markdown | ||
value: "```wing\nclass HttpClient extends VisualComponent {\n static isVisualComponent(...): bool;\n}\n```\n---\nAn HttpClient can be used to make HTTP requests.\n\n*@noinflight*" | ||
sortText: gg|HttpClient | ||
insertText: HttpClient($1) | ||
insertTextFormat: 2 | ||
command: | ||
title: triggerParameterHints | ||
command: editor.action.triggerParameterHints | ||
- label: Section | ||
kind: 7 | ||
documentation: | ||
kind: markdown | ||
value: "```wing\nclass Section extends VisualComponent {\n add(...): void;\n addButton(...): void;\n addField(...): void;\n static isVisualComponent(...): bool;\n}\n```\n---\nA section can be used to group other visual components.\n\n*@noinflight*" | ||
sortText: gg|Section | ||
insertText: Section($1) | ||
insertTextFormat: 2 | ||
command: | ||
title: triggerParameterHints | ||
command: editor.action.triggerParameterHints | ||
- label: Table | ||
kind: 7 | ||
documentation: | ||
kind: markdown | ||
value: "```wing\nclass Table extends VisualComponent {\n static isVisualComponent(...): bool;\n}\n```\n---\nA table can be used to browse files.\n\n*@noinflight*" | ||
sortText: gg|Table | ||
insertText: Table($1) | ||
insertTextFormat: 2 | ||
command: | ||
title: triggerParameterHints | ||
command: editor.action.triggerParameterHints | ||
- label: ValueField | ||
kind: 7 | ||
documentation: | ||
kind: markdown | ||
value: "```wing\nclass ValueField extends Field {\n static isVisualComponent(...): bool;\n}\n```\n---\nA value field can be used to display a string value.\n\n*@noinflight*" | ||
sortText: gg|ValueField | ||
insertText: ValueField($1) | ||
insertTextFormat: 2 | ||
command: | ||
title: triggerParameterHints | ||
command: editor.action.triggerParameterHints | ||
|