nativescript-community / nativescript-vscode-extension

A Visual Studio Code Extension for NativeScript
https://www.nativescript.org/visual-studio-code
Apache License 2.0
82 stars 32 forks source link

fix: debugging is not working when app path is changed #204

Closed rosen-vladimirov closed 6 years ago

rosen-vladimirov commented 6 years ago

Debugging is not working when project has nsconfig.json and the path to app directory is changed. The problem is that on device the directory is always called app, but NativeScript projects can rename it locally to src for example. In order to fix the issue, check if there's nsconfig.json file and replace the app from the device path with the local name of the app directory.

This fixes debugging for new Angular templates.

Fix for https://github.com/NativeScript/nativescript-vscode-extension/issues/205