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

Initial work to add logging #245

Closed
wants to merge 1 commit into from

Conversation

enamkhan
Copy link
Contributor

What It Does

How to Test

Review Checklist
I certify that I have:

Additional Comments

@enamkhan enamkhan closed this Mar 12, 2025
@enamkhan enamkhan deleted the khane-inital-logging-implementation branch March 12, 2025 15:36
@@ -68,6 +71,7 @@
urimapsSearchHistoryLines = workspace.getConfiguration(this.schema).get(PersistentStorage.urimapsSearchHistory);
pipelineSearchHistoryLines = workspace.getConfiguration(this.schema).get(PersistentStorage.pipelineSearchHistory);
webserviceSearchHistoryLines = workspace.getConfiguration(this.schema).get(PersistentStorage.webserviceSearchHistory);
cicsZoweLoggerSetting = workspace.getConfiguration(this.schema).get(PersistentStorage.cicsZoweLoggerSetting);

Check warning

Code scanning / CodeQL

Useless assignment to local variable Warning

The value assigned to cicsZoweLoggerSetting here is unused.

Copilot Autofix AI about 6 hours ago

To fix the problem, we need to remove the assignment to cicsZoweLoggerSetting on line 74. This will eliminate the useless assignment and clean up the code. Since cicsZoweLoggerSetting is not used anywhere else in the provided snippet, removing this line will not affect the existing functionality.

Suggested changeset 1
packages/vsce/src/utils/PersistentStorage.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/vsce/src/utils/PersistentStorage.ts b/packages/vsce/src/utils/PersistentStorage.ts
--- a/packages/vsce/src/utils/PersistentStorage.ts
+++ b/packages/vsce/src/utils/PersistentStorage.ts
@@ -73,3 +73,2 @@
       webserviceSearchHistoryLines = workspace.getConfiguration(this.schema).get(PersistentStorage.webserviceSearchHistory);
-      cicsZoweLoggerSetting = workspace.getConfiguration(this.schema).get(PersistentStorage.cicsZoweLoggerSetting);
     }
EOF
@@ -73,3 +73,2 @@
webserviceSearchHistoryLines = workspace.getConfiguration(this.schema).get(PersistentStorage.webserviceSearchHistory);
cicsZoweLoggerSetting = workspace.getConfiguration(this.schema).get(PersistentStorage.cicsZoweLoggerSetting);
}
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

1 participant