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: return empty path for the evaluated scripts #253

Closed DimitarTachev closed 5 years ago

DimitarTachev commented 5 years ago

Fallback to the default path transform implementation if we are not able to find a local file instead of returning the device path. If we return VM<ScriptID> (e.g. "VM12") for the eval scripts, a "Could not load source 'undefined': Could not retrieve content.. " exception is thrown.

Related to: https://github.com/NativeScript/nativescript-vscode-extension/issues/237 https://github.com/NativeScript/nativescript-vscode-extension/issues/251