Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix iOS connection to loopback address (127.0.0.1) and sourceMapPathOverrides for all file extensions #297

Merged
merged 14 commits into from
Feb 12, 2024

Conversation

vallemar
Copy link
Contributor

@vallemar vallemar commented Jan 23, 2024

On iOS it never worked because by not specifying the address the address 127.0.0.1 was used and the websocket server rejected the connection.
In Android it is just the opposite, it rejects the localhost connection and accepts 127.0.0.1 so it has been handled to establish the address that will then be used by the NativeScriptTargetDiscovery class.

Also added logic to add sourceMapPathOverrides for files ["js", "ts", "vue", "svelte", "jsx", "tsx"] since they didn't seem to work and breakpoints didn't work they worked. Now this property devtoolNamespace is not necessary since the name of the package.json.name is searched and added to sourceMapPathOverrides, but it has also been added the logic so that users who have it and overwrite package.json.name in the project add the value set to devtoolNamespace

In addition, the vscode engine has been updated to the latest version, and some dependencies have also been updated (@vscode/debugadapter, @vscode/vsce and @vscode/debugprotocol).

All tested on ios and android for ts and vue3 projects.

Close: #296 #293 #286 #280

@cla-bot cla-bot bot added the cla: yes label Jan 23, 2024
@vallemar vallemar changed the title fix connection iOS loopback address (127.0.0.1) fix iOS connection to loopback address (127.0.0.1) Jan 23, 2024
@vallemar
Copy link
Contributor Author

I think this PR is ready for review!

@vallemar vallemar changed the title fix iOS connection to loopback address (127.0.0.1) fix iOS connection to loopback address (127.0.0.1) and sourceMapPathOverrides for all extension files Jan 24, 2024
@vallemar vallemar changed the title fix iOS connection to loopback address (127.0.0.1) and sourceMapPathOverrides for all extension files fix iOS connection to loopback address (127.0.0.1) and sourceMapPathOverrides for all file extensions Jan 24, 2024
@rigor789 rigor789 self-assigned this Jan 24, 2024
@farfromrefug
Copy link
Member

@vallemar the repo is now part of community. Would you like to become a maintainer of this plugin?

@vallemar
Copy link
Contributor Author

@farfromrefug Yeah!

@farfromrefug
Copy link
Member

@vallemar awesome then you officially are!

@rigor789
Copy link
Member

Hail to the savior @vallemar 👑!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Breakpoint ignored because generated code not found (source map problem?)
3 participants