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
- Fixes yCodeTech/auto-comment-blocks#6 and indirectly yCodeTech/auto-comment-blocks#7
12
+
13
+
VS Code's `vscode.extensions.all` API doesn't find any built-in extensions on the Windows-side when running in WSL. It only gets the WSL-installed extensions, which causes the extension not to work at all because the language configuration file is not found.
14
+
15
+
The workaround fix is to manually read the Windows extensions directories when running in WSL and merge them with the WSL-installed extensions.
16
+
17
+
- Fixed language support detection to properly respect disabled language settings.
18
+
19
+
Custom language configurations now correctly check if a language is disabled before applying support, preventing unwanted language activation.
20
+
21
+
- Fixed support for languages with multiple extension configuration files by merging their configurations instead of overwriting them, ensuring complete language support. Also improved language configuration merging by properly handling comment configurations.
22
+
23
+
#### Added:
24
+
25
+
- Added the ability to get the all extensions directly from the directory on non-WSL systems (eg. Windows) because VS Code's `extensions.all` API only gets enabled extensions and doesn't include disabled ones, which could prevent language configs being found.
26
+
27
+
- Removed `vscode.extensions.all` API call from `findAllLanguageConfigFilePaths` method in favour of getting the extensions directly from the directories.
28
+
29
+
- Added new dependencies:
30
+
31
+
-`is-wsl` for detecting WSL environments.
32
+
-`package-json-type` for TypeScript type definitions of package.json.
33
+
34
+
- Added macOS keybinding support (`cmd+shift+m`) for the Blade override comments command.
35
+
36
+
#### Changed:
37
+
38
+
- Refactored extension architecture with improved separation of concerns.
39
+
40
+
Major code reorganisation including extraction of utility functions, centralised extension data management, and improved debugging capabilities.
41
+
42
+
- Added new `ExtensionData` class to centralize extension metadata management.
43
+
44
+
This new class provides a clean interface for accessing extension details like ID, name, version, and various system paths, improving code organisation and maintainability.
45
+
46
+
- Added new `utils.ts` file with shared utility functions.
47
+
48
+
Extracted common functionality into reusable utility functions including JSON file operations, regex reconstruction, array merging, and data conversion utilities.
49
+
50
+
- Updated debug logging to provide more comprehensive environment and configuration information. Enhanced diagnostic output now includes detailed extension paths for both WSL and native environments, making troubleshooting easier.
0 commit comments