How to Reload Extension in VS Code?

Overview

Multiuse of Restart of VS code is often needed for a Business Central Developers to work smoothly in VS Code.

In such cases you need to restart/refresh the VS Code:

  • When you pull the changes from DevOps commit, it might possible you end up receiving errors.
  • When you click CTRL+SHIFT+P you go to AL object designer, but the objects are not showing yet.

reload-step1

The preferred option rather than restarting is – Reload.

There are many extensions that we install and use for smooth code development. For example, AZ AL DEV Tools, AL Object Designer, AL Language Extension, etc.

In VS Code, click CTRL+SHIFT+P and you can see Reload option.

But now, we have an extension for Reload. There is a new extension launched in VS Code to refresh the project and that is “Reload”.

Go to Extensions in VS Code and install Reload

reload-step2

And here you go:

reload-step3
You can see this button in the right corner of your VS Code screen and voila! Now Reload can be used anytime with just one click.

Conclusion

Remember that reloading an extension is useful when you have made changes to its code and want to apply those changes without restarting the entire Visual Studio Code application.

Read more on related Insights