Skip to content

Enable string type for numbers in launch attributes #134

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

Conversation

paulacamargo25
Copy link
Contributor

@paulacamargo25 paulacamargo25 commented Nov 9, 2023

Closed: #115

@paulacamargo25 paulacamargo25 added the debt Covers everything internal: CI, testing, refactoring of the codebase, etc. label Nov 9, 2023
@paulacamargo25 paulacamargo25 self-assigned this Nov 9, 2023
} else if (configuration.port !== undefined) {
traceLog(`Connecting to DAP Server at: ${configuration.host ?? '127.0.0.1'}:${configuration.port}`);
return new DebugAdapterServer(configuration.port, configuration.host ?? '127.0.0.1');
return new DebugAdapterServer(Number(configuration.port), configuration.host ?? '127.0.0.1');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should there be some error handling when this doesn't cast properly?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The adapter handle the error if the data is not right

TylerLeonhardt
TylerLeonhardt previously approved these changes Nov 9, 2023
@paulacamargo25 paulacamargo25 changed the title Update package and values Enable string type in port attribute Nov 9, 2023
@paulacamargo25 paulacamargo25 changed the title Enable string type in port attribute Enable string type in launch attributes Nov 9, 2023
@paulacamargo25 paulacamargo25 changed the title Enable string type in launch attributes Enable string type for numbers in launch attributes Nov 9, 2023
Co-authored-by: Tyler James Leonhardt <me@tylerleonhardt.com>
@paulacamargo25 paulacamargo25 merged commit 6d573f4 into microsoft:main Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
debt Covers everything internal: CI, testing, refactoring of the codebase, etc.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Convert all non-string configuration properties in debug
2 participants