Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

featWASM Compiler: get struct field & method into completion item. #913

Merged
merged 2 commits into from
Sep 14, 2024

Conversation

callme-taota
Copy link
Contributor

image

@callme-taota
Copy link
Contributor Author

#872

Copy link

qiniu-prow bot commented Sep 14, 2024

Hi @callme-taota. Thanks for your PR.

PRs from untrusted users cannot be marked as trusted with /ok-to-test in this repo meaning untrusted PR authors can never trigger tests themselves. Collaborators can still trigger tests on the PR using /test all.

I understand the commands that are listed here.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@callme-taota
Copy link
Contributor Author

@nighca 补全结构体字段的PR,帮忙看看~

Copy link
Collaborator

@nighca nighca left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

先 merge

selector, find := getSelector(file, cursorPos)
if find {
selectorInfoGetter(info, selector, items)
if items != nil {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: 这里 items 好像一定不会是 nil

image

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

另外现在这个函数叫 getScopesItems 其实已经不太合适了,因为它产生的 completion item 不一定是从 scope 来,可以考虑就叫 getCompletionItems

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的好的,马上补一个修复的pr

@nighca nighca merged commit 199e8fe into goplus:trailhead_code Sep 14, 2024
6 checks passed
callme-taota added a commit to callme-taota/builder that referenced this pull request Sep 19, 2024
…oplus#913)

* feat: get struct field & method into completion item .

* fix: fix the bug of wrong if statements.
@callme-taota callme-taota deleted the compiler_struct_completion branch September 20, 2024 03:26
nighca pushed a commit that referenced this pull request Sep 20, 2024
* feat: fill the document.

* feat`WASM Compiler`: get struct field & method into completion item. (#913)

* feat: get struct field & method into completion item .

* fix: fix the bug of wrong if statements.

* refactor(spx): inputAssistant Provider will filter Token effect in different  code page (#911)

* feat: add animation in sidebar, refactor sidebar inputAssistant to show whole categories

* feat: filter inputAssistant item in different code page

* refactor: rename some vue ref element variable name

* refactor: refactor tokens property sample, refactor inputAssistant will not merge wasm usages.

* fix: fix some tokens sample

* refactor: refactor `usageEffect2Icon` into 2 functions, add `definitionStructName2Target` to transform wasm definition into TokenUsage Target

* feat(spx-gui): implement audio preview (#908)

* feat: implement audio preview

* feat: complete audio player event ,audio player wave bar has different performance in playing

* fix: rename `getScopesItems` -> `getCompletionItems`. (#916)

fix: fix wrong if statement.

* feat(spx-gui): completion menu doc (#917)

* feat: completion menu document

* refactor: refactor CompletionItem props undefined

* refactor: update completion menu doc css animation and method `getCompletionItemByIdx`

* docs: add necessary comment in completion menu item

* refactor(spx-gui): refactor Audio player props (#918)

* refactor: refactor `AudioPreview.vue` props into `File` and update related types

* fix: fix `PreprocessModal.vue` component css style variable incorrect using

* fix: fix `File` class related by using reactive ts type mismatch error

* feat: add some document.

---------

Co-authored-by: molinla <61045398+molinla@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants