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

Throw an error for any item that resolves as undefined #825

Merged
merged 8 commits into from
Mar 6, 2024

Conversation

nturinski
Copy link
Member

Mitigates microsoft/vscode-azurefunctions#3851 and other issues, I'm sure

We see this error floating around quite often. While this doesn't actually fix it, at least the error makes a little more sense to the user.

@nturinski nturinski requested a review from a team as a code owner March 1, 2024 19:13
bwateratmsft
bwateratmsft previously approved these changes Mar 1, 2024
@@ -571,7 +571,7 @@
},
"scripts": {
"vscode:prepublish": "npm run cleanReadme",
"build": "tsc && gulp webpack-prod",
"build": "tsc",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is this intentionally included?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, the npm run build shouldn't run webpack. It wasn't actually changing the line return await extension.activate(ctx, perfStats, true); either (where the true is ignoreBundle) so it wasn't actually prepping it to be used with webpack.

Copy link
Member

Choose a reason for hiding this comment

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

Can confirm that this matches our other extensions

Copy link
Contributor

Choose a reason for hiding this comment

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

We really should stop using Gulp and match the Docker extension's build scripts and such...

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, agreed: #826

bwateratmsft
bwateratmsft previously approved these changes Mar 4, 2024
alexweininger
alexweininger previously approved these changes Mar 5, 2024
@nturinski nturinski merged commit 5542cc4 into main Mar 6, 2024
3 checks passed
@nturinski nturinski deleted the nat/resolverError branch March 6, 2024 02:12
@microsoft microsoft locked and limited conversation to collaborators Apr 20, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants