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

Enable class/object literal method completions #1835

Merged
merged 1 commit into from Sep 7, 2022

Conversation

zardoy
Copy link
Contributor

@zardoy zardoy commented Sep 7, 2022

vscode reference

An example script, where you can take advantage. Unfortunately I didn't figure out a way to enable object literal method completions in js lang (but in theory it works fine in both).

<script lang="ts">
    import Vue, { defineComponent, Component } from 'vue'
    defineComponent({
        activated // trigger
        activated() {
        
        }
    })
    interface Test {
        callback()
    }
    class TestImpl implements Test {
        callback // trigger
        callback() {
        
        }
    }
</script>

While the first case is useful specifically in vue sfc, second case is still useful when using takeover mode.

I checked this only in VSCode.

@johnsoncodehk johnsoncodehk merged commit 7264a8e into vuejs:master Sep 7, 2022
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.

None yet

2 participants