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[]> => {
101101 options . password = await generatePassword ( ) ;
102102 }
103103
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 ) {
109106 const { cert, certKey } = await generateCertificate ( ) ;
110107 options . cert = cert ;
111108 options . certKey = certKey ;
You can’t perform that action at this time.
0 commit comments