We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d81d5f4 commit b8e6369Copy full SHA for b8e6369
src/node/cli.ts
@@ -101,11 +101,8 @@ const startVscode = async (): Promise<void | void[]> => {
101
options.password = await generatePassword();
102
}
103
104
- if (!options.certKey && typeof options.certKey !== "undefined") {
105
- throw new Error(`--cert-key cannot be blank`);
106
- } else if (options.certKey && !options.cert) {
107
- throw new Error(`--cert-key was provided but --cert was not`);
108
- } if (!options.cert && typeof options.cert !== "undefined") {
+ // This is necessary since VS Code filters out empty strings.
+ if (typeof options.cert === "undefined" && process.argv.indexOf("--cert") !== -1) {
109
const { cert, certKey } = await generateCertificate();
110
options.cert = cert;
111
options.certKey = certKey;
0 commit comments