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

Unstable-Ember-Language server integration? #56

Open
lifeart opened this issue Nov 18, 2019 · 0 comments
Open

Unstable-Ember-Language server integration? #56

lifeart opened this issue Nov 18, 2019 · 0 comments

Comments

@lifeart
Copy link

lifeart commented Nov 18, 2019

VSCode addon: https://marketplace.visualstudio.com/items?itemName=lifeart.vscode-ember-unstable

Usecase: https://code.visualstudio.com/api/language-extensions/programmatic-language-features#find-all-references-to-a-symbol

context: NullVoxPopuli/coc-ember#9

Fild all references to a symbol

proposed api:

"ember-language-server": {
    "entry": "./lib/langserver",
    "referencesProvider": true
}
module.exports.onReference = async function(projectRoot, { itemType: 'COMPONENT', itemName: 'normalized/component/name' }) {
        return [
         { path: "app/templates/route-name/route.hbs", position: { line: 0, character: 12 } },
         { path: "app/templates/route-name/route.hbs", position: { line: 10, character: 12 } }
        ];
    }
}

//cc @NullVoxPopuli

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

No branches or pull requests

1 participant