Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: cleanup code #13133

Merged
merged 3 commits into from
Feb 6, 2025
Merged

refactor: cleanup code #13133

merged 3 commits into from
Feb 6, 2025

Conversation

yuqizhou77
Copy link
Contributor

@yuqizhou77 yuqizhou77 commented Feb 6, 2025

ut
image

@yuqizhou77 yuqizhou77 changed the base branch from nintan/refactor to dev February 6, 2025 07:23
@yuqizhou77 yuqizhou77 closed this Feb 6, 2025
@yuqizhou77 yuqizhou77 reopened this Feb 6, 2025
import { manifestUtils } from "../../driver/teamsApp/utils/ManifestUtils";
import { ActionContext } from "../../middleware/actionExecutionMW";
import { declarativeCopilotInstructionFileName } from "../constant";

Check notice

Code scanning / CodeQL

Unused variable, import, function or class Note

Unused import declarativeCopilotInstructionFileName.

Copilot Autofix AI 5 days ago

The best way to fix the problem is to remove the unused import statement. This will clean up the code and eliminate any confusion about the dependencies of the module. The change should be made in the file packages/fx-core/src/component/generator/apiSpec/generator.ts by removing the line that imports declarativeCopilotInstructionFileName.

Suggested changeset 1
packages/fx-core/src/component/generator/apiSpec/generator.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/component/generator/apiSpec/generator.ts b/packages/fx-core/src/component/generator/apiSpec/generator.ts
--- a/packages/fx-core/src/component/generator/apiSpec/generator.ts
+++ b/packages/fx-core/src/component/generator/apiSpec/generator.ts
@@ -51,3 +51,3 @@
 import { ActionContext } from "../../middleware/actionExecutionMW";
-import { declarativeCopilotInstructionFileName } from "../constant";
+
 import { Generator } from "../generator";
EOF
@@ -51,3 +51,3 @@
import { ActionContext } from "../../middleware/actionExecutionMW";
import { declarativeCopilotInstructionFileName } from "../constant";

import { Generator } from "../generator";
Copilot is powered by AI and may make mistakes. Always verify output.
Positive Feedback
Negative Feedback

Provide additional feedback

Please help us improve GitHub Copilot by sharing more details about this comment.

Please select one or more of the options
@yuqizhou77 yuqizhou77 changed the base branch from dev to nintan/refactor February 6, 2025 08:32
@yuqizhou77 yuqizhou77 marked this pull request as ready for review February 6, 2025 08:41
@@ -80,20 +77,10 @@ export class CopilotExtensionGenerator extends DefaultTemplateGenerator {
inputs.targetFramework,
inputs.placeProjectFileInSolutionDir === "true"
),
DeclarativeCopilot: isDeclarativeCopilot ? "true" : "",
DeclarativeCopilot: "true",
Copy link
Contributor Author

@yuqizhou77 yuqizhou77 Feb 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally this line can be removed, but depends on #13134

@yuqizhou77 yuqizhou77 merged commit dc008b7 into nintan/refactor Feb 6, 2025
13 checks passed
@yuqizhou77 yuqizhou77 deleted the yuqzho/nintan/refactor branch February 6, 2025 08:48
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