Skip to content

Enable string type for numbers in launch attributes - #134

Merged
Paula (paulacamargo25) merged 2 commits into
microsoft:mainfrom
paulacamargo25:Allow-strings-instead-of-just-numbers
Nov 20, 2023
Merged

Paula (paulacamargo25) merged 2 commits into
microsoft:mainfrom
paulacamargo25:Allow-strings-instead-of-just-numbers

Conversation

@paulacamargo25

@paulacamargo25 Paula (paulacamargo25) commented Nov 9, 2023 •

Copy link
Copy Markdown
Contributor

Closed: #115

@paulacamargo25 Paula (paulacamargo25) added the debt Code quality issues label Nov 9, 2023
@paulacamargo25 Paula (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
Copy Markdown
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
Copy Markdown
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

Comment thread package.json Resolved
TylerLeonhardt
TylerLeonhardt previously approved these changes Nov 9, 2023
@paulacamargo25 Paula (paulacamargo25) changed the title Update package and values Nov 9, 2023
@paulacamargo25 Paula (paulacamargo25) changed the title Enable string type in port attribute Nov 9, 2023
@paulacamargo25 Paula (paulacamargo25) changed the title Enable string type in launch attributes Nov 9, 2023
Co-authored-by: Tyler James Leonhardt <me@tylerleonhardt.com>
@paulacamargo25
Paula (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 Code quality issues

2 participants