-
Notifications
You must be signed in to change notification settings - Fork 208
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
refactor: cleanup code #13133
Conversation
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
Show autofix suggestion
Hide autofix suggestion
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
.
-
Copy modified line R52
@@ -51,3 +51,3 @@ | ||
import { ActionContext } from "../../middleware/actionExecutionMW"; | ||
import { declarativeCopilotInstructionFileName } from "../constant"; | ||
|
||
import { Generator } from "../generator"; |
@@ -80,20 +77,10 @@ export class CopilotExtensionGenerator extends DefaultTemplateGenerator { | |||
inputs.targetFramework, | |||
inputs.placeProjectFileInSolutionDir === "true" | |||
), | |||
DeclarativeCopilot: isDeclarativeCopilot ? "true" : "", | |||
DeclarativeCopilot: "true", |
There was a problem hiding this comment.
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
ut
![image](https://private-user-images.githubusercontent.com/86260893/410368321-e9055383-ebc8-4de7-ad4d-d51f9ccf70c1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyODQzNDcsIm5iZiI6MTczOTI4NDA0NywicGF0aCI6Ii84NjI2MDg5My80MTAzNjgzMjEtZTkwNTUzODMtZWJjOC00ZGU3LWFkNGQtZDUxZjljY2Y3MGMxLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTElMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjExVDE0MjcyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTI0NjZiNzU4YTMwMDdjNTIwOGRmYzNlNTE5YWZlNjg2MTBkN2Q2ZTA0MjM3ZDcxYjBjOWRhNzI4MGNiNGI0NDEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.UyE1IOQIsflpzwg19j8dB--pwbzxonqWCew0x3mZzh0)