oracle / javavscode

Java platform support for Visual Studio Code for full featured Java development (edit-compile-debug & test cycle)
Apache License 2.0
231 stars 31 forks source link

Refactor globalVars into a Separate Class for Improved Encapsulation #310

Closed Achal1607 closed 3 weeks ago

Achal1607 commented 4 weeks ago

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.
naren2605 commented 3 weeks ago

LGTM thanks @Achal1607 for making these changes