Skip to content

Conversation

@tecton
Copy link
Contributor

@tecton tecton commented Dec 12, 2025

feature flag: TEAMSFX_GENERATE_CONFIG_FILES
new CLI command: atk init.

Telemetry event:

  • teamsfx-cli/init-project-start
  • teamsfx-cli/generate-config-start
  • teamsfx-cli/generate-config-summary
    • Properties: manifest-capabilities, successComponents, failedComponents, trackingId
  • teamsfx-cli/generate-config
  • teamsfx-cli/init-project

const projectPath = inputs[QuestionNames.ProjectPath] as string;
const includePlayground = inputs["include-playground"];
const includeLocalDebug = inputs["include-local"];
const includeRemoteDeploy = inputs["include-remote"];

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused variable includeRemoteDeploy.

Copilot Autofix

AI 7 days ago

To fix the unused variable problem for includeRemoteDeploy in generateConfigFiles, we should remove its declaration from the list of variables assigned from inputs. This change should be made specifically at line 23. No additional methods, definitions, or imports are needed, and the functionality of the code will remain the same as the variable was not used elsewhere.

Suggested changeset 1
packages/fx-core/src/core/generateConfigFiles.ts

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/packages/fx-core/src/core/generateConfigFiles.ts b/packages/fx-core/src/core/generateConfigFiles.ts
--- a/packages/fx-core/src/core/generateConfigFiles.ts
+++ b/packages/fx-core/src/core/generateConfigFiles.ts
@@ -20,7 +20,6 @@
   const projectPath = inputs[QuestionNames.ProjectPath] as string;
   const includePlayground = inputs["include-playground"];
   const includeLocalDebug = inputs["include-local"];
-  const includeRemoteDeploy = inputs["include-remote"];
   const programmingLanguage = inputs["programming-language"] as string;
 
   const appManifest = await AppManifestUtils.readTeamsManifest(
EOF
@@ -20,7 +20,6 @@
const projectPath = inputs[QuestionNames.ProjectPath] as string;
const includePlayground = inputs["include-playground"];
const includeLocalDebug = inputs["include-local"];
const includeRemoteDeploy = inputs["include-remote"];
const programmingLanguage = inputs["programming-language"] as string;

const appManifest = await AppManifestUtils.readTeamsManifest(
Copilot is powered by AI and may make mistakes. Always verify output.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants