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 1 commit into from Sep 7, 2022


Copy link

@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'
        activated // trigger
        activated() {
    interface Test {
    class TestImpl implements Test {
        callback // trigger
        callback() {

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
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

Successfully merging this pull request may close these issues.

None yet

2 participants