You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The VsCode extension code is centered around one file extensions.ts as more commands are added the file grows.
The file is meant to handle activation: - actions when the extension is loaded deactivate: - actions when the extension is unloaded command registration: - registration of the commands when the extension is loaded
It is currently handling all the above plus the definition and implementations of the commands making it hard to navigate
Proposed Solution
To enhance the maintainability and scalability of our VS Code extension, we should adopt a more organized structure. This structure should help in managing commands, utilities, and other components more effectively. It also makes it easier to add new features and commands without cluttering the main files.
For example:
Have each command on its own file, making the codebase easier to navigate and maintain and have Separation of Concerns.
Group related files together to promote modularity and reusability.
Follow a consistent folder structure across the extension project to reduce confusion and streamline development as more people contribute.
Problem
The VsCode extension code is centered around one file
extensions.ts
as more commands are added the file grows.The file is meant to handle
activation: - actions when the extension is loaded
deactivate: - actions when the extension is unloaded
command registration: - registration of the commands when the extension is loaded
It is currently handling all the above plus the definition and implementations of the commands making it hard to navigate
Proposed Solution
To enhance the maintainability and scalability of our VS Code extension, we should adopt a more organized structure. This structure should help in managing commands, utilities, and other components more effectively. It also makes it easier to add new features and commands without cluttering the main files.
For example:
Folder Visualisation
vscode/microsoft-kiota
├── .vscode/
├── src/
│ ├── commands/
│ │ ├── searchLockStepsCommand.ts
│ │ ├── searchApiDescriptionCommand.ts
│ │ ├── openInstallationInstructionsCommand.ts
│ │ └── selectLockCommand.ts
│ ├── handlers/
│ │ └── uriHandler.ts
│ ├── providers/
│ │ ├── dependenciesInfoProvider.ts
│ │ └── openApiTreeProvider.ts
│ ├── extension.ts
│ └── types.ts
├── node_modules/
├── ...
├── package.json
└── README.md
Tasks
The text was updated successfully, but these errors were encountered: