If you are a Windows user, you should add the bin subdirectory of your JDK installation to your PATH environment variable (User or System) and restart VS Code. This is required to debug/run war packages from the VS Code context menu.
VS Code collects usage data and sends it to Microsoft to help improve our products and services. Read our privacy statement to learn more. If you don't wish to send usage data to Microsoft, you can set the telemetry.enableTelemetry setting to false. Learn more in our FAQ.