Skip to main content

Notifications

Announcements

No record found.

Small and medium business | Business Central, N...
Suggested answer

Customized page code cannot be seen in visual studio code - nav 365

Posted on by 200

This is about 365 nav visual studio code. If i try to click the Go to definition in a customized page in visual studio code, it comes up with error " No definition found for page". Then i checked the extension management to download the source code but the download source code is  disabled to click. However the extension is published. I think i have problem in the package. Can anyone suggest me how to overcome this? Thanks in advance!

  • Suggested answer
    RE: Customized page code cannot be seen in visual studio code - nav 365

    Hi

    thaks alot for your feedback,

    you can review below example added on this link

    docs.microsoft.com/.../devenv-al-code-navigation

    also for  more information about code navigation in Visual Studio Code, see the below link

    code.visualstudio.com/.../editingevolved

    Transitive references can only be resolved if the symbol app that defines the reference is a dependency on the project that contains the entry point for the Go to Definition symbol. For example, assume that you are in HelloWorld.al and want to Go to Definition on the Car table defined in the Car.app which is a dependency on your app. Then navigation will open the CarTable.dal preview file. And assume that from here you want to Go to Definition on CarDistributor table defined in the CarDistributor.app which is a dependency on Car.app, but not a dependency on the HelloWorld.app. In this case the source code Go to Definition will not work.

  • RE: Customized page code cannot be seen in visual studio code - nav 365

    Thanks for the response..Go to definition is not working..Where will be showmycode property? to modify?

  • Suggested answer
    RE: Customized page code cannot be seen in visual studio code - nav 365

    Hi

    You can always use Go to Definition on Dynamics 365 Business Central code. However, if you want to use it on other extensions, the extension package which is now referenced, when originally published, must have the showMyCode property set to true

    also, I recommend having a look on below link it will help you:

    docs.microsoft.com/.../devenv-al-code-navigation

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans