-
Notifications
You must be signed in to change notification settings - Fork 13
Bump vscode-extension-tester from 5.2.1 to 5.5.3 #1458
Bump vscode-extension-tester from 5.2.1 to 5.5.3 #1458
Conversation
@dependabot rebase |
3c88cd5
to
9230d9f
Compare
9230d9f
to
96941ca
Compare
@apupier Hi, I think it is better now Main changes (there are much more auto-formatting changes):
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand why an update on the dev dependency is causing compilation errors in production code. Do you have an idea?
src/installer.ts
Outdated
if (error instanceof Error) { | ||
extension.shareMessageInMainOutputChannel(error.message); | ||
throw new Error(error.message); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In case it is not an Error, it will be swallowed and we won't have any traces.
based on the link you provided, they are providing this kind of snippet code but at first sight it seems weird.
Do you have more information to it? have you seen this practice elsewhere? Is there a specific reason to do it this way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I do not understand why an update on the dev dependency is causing compilation errors in production code. Do you have an idea?
From my point of view we do not have a difference in vscode-camelk between dev or prod version 🤔
We always build project with tsconfig.json with the same configs.
To make build only with prod features (without tests and etc.) we need to make a build with some specific tsconfig.prod.json
(it is the reason of errors => we always compile everything), so I think it will be possible to make:
npm install --prod
- to install only prod dependenciestsc --project tsconfig.prod.json
- to build without compile errors related to extra dependencies 🤔
I made a small research today, and I might be wrong.
So if @djelinek can agree with my version it would be nice 🆘
Example: if you will try to compile it after npm install --prod
there will be much more errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I answer this question in reverse order:
based on the link you provided, they are providing this kind of snippet code but at first sight it seems weird.
Yes, I think so too, firstly I would like to make just a small cast to String(), but it is official documentation and I decided to make it that way
Do you have more information to it? have you seen this practice elsewhere? Is there a specific reason to do it this way?
More information you can find here in issue -> microsoft/TypeScript#36775
In case it is not an Error, it will be swallowed and we won't have any traces.
Yes, you are absolutely right here 😞
WDYT to combine official snippet with the cast to string?
let message = ""
if (error instanceof Error) {
message = error.message;
} else {
message = String(error);
}
extension.shareMessageInMainOutputChannel(message);
throw new Error(message);
or
let message = error instanceof Error ? error.message : String(error);
extension.shareMessageInMainOutputChannel(message);
throw new Error(message);
^ With ternary already checked -> no errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
combining official snippet with the cast to string seems a good alternative.
For the compilation distinction, I think I understand from where it comes from. I think it is better to create a specific issue to discuss it separately. The priority is lower.
Bumps [vscode-extension-tester](https://github.com/redhat-developer/vscode-extension-tester) from 5.2.1 to 5.5.3. - [Release notes](https://github.com/redhat-developer/vscode-extension-tester/releases) - [Changelog](https://github.com/redhat-developer/vscode-extension-tester/blob/main/CHANGELOG.md) - [Commits](redhat-developer/vscode-extension-tester@v5.2.1...v5.5.3) --- updated-dependencies: - dependency-name: vscode-extension-tester dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
f649a22
to
d6d1da0
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Bumps vscode-extension-tester from 5.2.1 to 5.5.3.
Changelog
Sourced from vscode-extension-tester's changelog.
Commits
a5e58e2
5.5.3f9d5c37
Bump 'max' placeholder to latest vscode 1.77.3 (#739)10eea28
5.5.2969f2a9
Upversion page-objects to 3.5.1c7e9634
Provide support for VS Code 1.77.0 (#727)5ba5a3b
Remove versionInfo.browser check in Workbench (#729)b1d962d
Remove .js and file existence restriction (#716)99ce290
Use vsce API instead CLI (#715)717244a
Allow to consume multiple strings blob as extester cli arg (#670)a429a6c
Provide terminal.copyOnSelection as default extester vscode settings (#695)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)