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

Don't require a global install of cadl for the IDE extension to work #1197

Merged
merged 5 commits into from
Oct 20, 2022

Conversation

timotheeguerin
Copy link
Member

@timotheeguerin timotheeguerin commented Oct 20, 2022

fix #1116

Vscode extension calls out to resolveModule to get a better result(lookup in parent dir)
VS is more basic and only lookup in ./node_modules/@cadl-lang/compiler

@azure-pipelines
Copy link

You can try these changes at https://cadlplayground.z22.web.core.windows.net/prs/1197/

Check the website changes at https://cadlwebsite.z1.web.core.windows.net/prs/1197/

@bterlson
Copy link
Member

For VS, it might not be too difficult to do a parent folder walk like resolveModule? Might capture more cases (such as opening a subfolder of a monorepo).

@timotheeguerin
Copy link
Member Author

For VS, it might not be too difficult to do a parent folder walk like resolveModule? Might capture more cases (such as opening a subfolder of a monorepo).

yeah I guess that's right we don't need to have most of the resolveMOdule functionality just traverse parent up. I'll update

@timotheeguerin timotheeguerin merged commit 73752ac into microsoft:main Oct 20, 2022
@timotheeguerin timotheeguerin deleted the global-cadl-not-req branch October 20, 2022 19:26
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.

IDE shouldn't require global cadl to be installed
3 participants