Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Auto Completion on Managed Packages #1177

Closed
mnunezdm opened this issue Mar 21, 2019 · 3 comments
Closed

Auto Completion on Managed Packages #1177

mnunezdm opened this issue Mar 21, 2019 · 3 comments

Comments

@mnunezdm
Copy link

mnunezdm commented Mar 21, 2019

Summary

When developing in a workspace component, I've told that is a best practice to don't add the namespace suffix to any of data, in order to let the code to be deployed to any place when it's necessary.

The problem is, that doing these, makes it impossible to autocomplete anything

Steps To Reproduce:

  1. Initialize a new project with a namespace assigned
  2. Create a class
  3. Try to reference it

Expected result

Autocompletion should work for both cases, trying to reference it with the namespace and without it

Actual result

Autocompletion is not working for that class, instead, you need to add the namespace.class to get it working

Additional information

testAutocompletion

VS Code Version: 1.32.3

SFDX CLI Version: 45.7.0

OS and version: Windows 10

@mnunezdm mnunezdm changed the title Test Code Coverage Auto Completion on Managed Packages Mar 21, 2019
@mnunezdm mnunezdm reopened this Mar 21, 2019
@lcampos lcampos added type:bug type:feedback Feedback for new features labels Mar 21, 2019
@lcampos
Copy link
Contributor

lcampos commented Mar 21, 2019

Thanks for opening this @mnunezdm . This is a currently a limitation with the Apex language server which we're looking into.
cc @ntotten

@praksb
Copy link
Contributor

praksb commented Mar 21, 2019

@mnunezdm I agree this is an annoying bug. While we are working on making this better, as a workaround you could temporarily set
"namespace": ""
in your sfdx-project.json file.

@Szandor72
Copy link

I had a feature request in that direction: ignore namespace configured in project.json for auto completion. but cannot find it anymore for the love of god.
Thanks for the workaround!

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Projects
None yet
Development

No branches or pull requests

6 participants