Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/code-link-cli/src/controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1095,8 +1095,6 @@ async function executeEffect(
* Starts the sync controller with the given configuration
*/
export async function start(config: Config): Promise<void> {
status("Waiting for Plugin connection...")

const hashTracker = createHashTracker()
const fileMetadataCache = new FileMetadataCache()
const pendingRenameConfirmations = new Map<string, PendingRenameConfirmation>()
Expand Down Expand Up @@ -1163,6 +1161,8 @@ export async function start(config: Config): Promise<void> {
throw new Error("TLS certificate generation failed")
}

status("Waiting for Plugin connection...")

// WebSocket Connection (always WSS)
const connection = await initConnection(config.port, certs)

Expand Down
1 change: 1 addition & 0 deletions packages/code-link-cli/src/helpers/certs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ export async function getOrCreateCerts(): Promise<CertBundle | null> {

status("Generating local certificates to connect securely. You may be asked for your password.")
await generateCerts(mkcertPath)
status("Successfully generated certificates.")

const key = await fs.readFile(SERVER_KEY_PATH, "utf-8")
const cert = await fs.readFile(SERVER_CERT_PATH, "utf-8")
Expand Down
Loading