File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -101,11 +101,8 @@ const startVscode = async (): Promise<void | void[]> => {
101
101
options . password = await generatePassword ( ) ;
102
102
}
103
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" ) {
104
+ // This is necessary since VS Code filters out empty strings.
105
+ if ( typeof options . cert === "undefined" && process . argv . indexOf ( "--cert" ) !== - 1 ) {
109
106
const { cert, certKey } = await generateCertificate ( ) ;
110
107
options . cert = cert ;
111
108
options . certKey = certKey ;
You can’t perform that action at this time.
0 commit comments