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

Add checking availability Execute ember-cli command #41

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

kaermorchen
Copy link

This PR checks that the ember-fast-cli package is installed or not and shows the command Ember: Execute ember-cli command or doesn't.


export async function packageAvailable(packageName: string): Promise<boolean> {
const files = await workspace.findFiles(
`**/node_modules/${packageName}/package.json`,
Copy link
Owner

Choose a reason for hiding this comment

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

It may be incorrect path in case of monorepos, pnpm & such.
Likely, we need to get information about available ember addons from project (from uELS)
https://github.com/lifeart/ember-language-server/blob/component-context-info-origin/src/project.ts#L40

Copy link
Author

Choose a reason for hiding this comment

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

Roger that.

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