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 globalVars into a Separate Class for Improved Encapsulation #310

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

Achal1607
Copy link
Member

This PR refactors the globalVars implementation to improve code structure and encapsulation:

  1. Moved globalVars from extension.ts to a Separate File

    • Isolated the global variables to a dedicated file.
  2. Converted from Namespace to Class with Getters and Setters

    • globalVars is now a class with getter and setter methods, for better encapsulation and allowing controlled access and modification of global state.

@Achal1607 Achal1607 requested a review from sid-srini October 29, 2024 11:30
@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 29, 2024
@sid-srini sid-srini requested a review from naren2605 October 29, 2024 11:55
sid-srini
sid-srini previously approved these changes Oct 29, 2024
Copy link
Member

@sid-srini sid-srini left a comment

Choose a reason for hiding this comment

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

Looks fine to me. Thanks @Achal1607.
Perhaps @naren2605 may also review whether this is in line with his previous review. Thanks.

vscode/src/lsp/listeners/notifications/handlers.ts Outdated Show resolved Hide resolved
sid-srini
sid-srini previously approved these changes Oct 29, 2024
Copy link
Member

@sid-srini sid-srini left a comment

Choose a reason for hiding this comment

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

Thanks 👍

@sid-srini sid-srini added this to the JVSC 23.0.1 milestone Oct 30, 2024
…rom namespace to class with appropriate getters and setters

Refactored initialization of globalState and updated copyright of extension.ts

address review comments
@naren2605
Copy link
Member

LGTM thanks @Achal1607 for making these changes

Copy link
Member

@sid-srini sid-srini left a comment

Choose a reason for hiding this comment

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

Thanks @Achal1607. LGTM 👍

@sid-srini sid-srini merged commit 1861da0 into oracle:main Oct 30, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants