From c88335364dd26cdb097b55cc60b534e34392c262 Mon Sep 17 00:00:00 2001 From: "FAREAST\\chunyu" Date: Tue, 17 Dec 2024 20:59:59 +0800 Subject: [PATCH] remove unused code --- packages/typespec-vscode/src/emit/emit.ts | 2 +- packages/typespec-vscode/src/typespec-utils.ts | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/typespec-vscode/src/emit/emit.ts b/packages/typespec-vscode/src/emit/emit.ts index 11e45c57c2..3d3b8ac74d 100644 --- a/packages/typespec-vscode/src/emit/emit.ts +++ b/packages/typespec-vscode/src/emit/emit.ts @@ -97,7 +97,7 @@ export async function doEmit( const npmUtil = new NpmUtil(baseDir); const packagesToInstall: string[] = []; const packagesToVerify: { package: string; version?: string }[] = []; - // packagesToVerify.push({ package: "@typespec/compiler" }); + /* install emitter package. */ logger.info(`select ${selectedEmitter.package}`); packagesToVerify.push({ package: selectedEmitter.package, version: selectedEmitter.version }); diff --git a/packages/typespec-vscode/src/typespec-utils.ts b/packages/typespec-vscode/src/typespec-utils.ts index e40834e5f4..f111f8b912 100644 --- a/packages/typespec-vscode/src/typespec-utils.ts +++ b/packages/typespec-vscode/src/typespec-utils.ts @@ -30,7 +30,6 @@ export async function resolveTypeSpecCli(absolutePath: string): Promise exe.name === "tsp"); const cmdPath = path.resolve(modelInfo.path, "cmd/tsp.js"); return { command: "node",