Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
a64f9c3
Feat: Remove language configuration files ready for using vscode's in…
yCodeTech Dec 3, 2024
6df1b47
chore: Update various build and testing configs
yCodeTech Dec 3, 2024
bec4d90
feat: Add on change events to determine when a certain user setting h…
yCodeTech Dec 3, 2024
b33e66d
feat: Add the some config files:
yCodeTech Dec 4, 2024
8c797af
Feat: Change some onEnter rules regexes, move some rules so they are …
yCodeTech Dec 4, 2024
51d5b0d
feat: Add descriptive comments and add support for double semicolon c…
yCodeTech Dec 5, 2024
e0df49a
style: auto formatting.
yCodeTech Dec 5, 2024
0dbb061
feat: add support for double semicolon comment `;;` on enter when the…
yCodeTech Dec 5, 2024
25d6da2
feat: add the functionality for the new bladeOverrideComments setting…
yCodeTech Dec 5, 2024
86566af
refactor: Move code blocks to try and keep things organised in a stru…
yCodeTech Dec 5, 2024
a12484d
feat: Remove all hardcoded language support and add functionality to …
yCodeTech Dec 5, 2024
1dd90d5
refactor: Add typings, and doc comments, and ...
yCodeTech Dec 5, 2024
a63bfe1
refactor: Refactoring code and added 2 new methods for the `overrideD…
yCodeTech Dec 9, 2024
3ae8652
refactor: Add 2 new methods to get and update the config settings and…
yCodeTech Dec 9, 2024
30de00a
fix: certain langConfig property values from preventing activating th…
yCodeTech Dec 10, 2024
c07c006
build: update dependencies and change activation event to `onLanguage`.
yCodeTech Dec 17, 2024
08a07e1
refactor: change language configuration definition format
yCodeTech Dec 19, 2024
4dd5900
fix: revert the `onDidChangeTextDocument` back to `onDidOpenTextDocum…
yCodeTech Dec 19, 2024
9d15fd6
refactor: combined `mergeConfigAutoClosingPairs` and `mergeConfigOnEn…
yCodeTech Dec 19, 2024
e6d1b53
feat: added support for double hash (`##`) style single-line comments.
yCodeTech Dec 22, 2024
55d5a1b
chore: update prettier config
yCodeTech Dec 22, 2024
e9b574c
fix: `//` onEnterRule regex to stop it preventing the `//!` from matc…
yCodeTech Dec 22, 2024
8ff8cb9
docs: update the "FIXME" code comment for the onEnterRules to note al…
yCodeTech Dec 22, 2024
43fbb47
style: correct hyphenation in code comments for consistency
yCodeTech Dec 22, 2024
e6378e2
style: correct hyphenation in code comments for consistency (pt.2)
yCodeTech Dec 22, 2024
a359058
docs: update changlog and readme
yCodeTech Dec 22, 2024
e2fac80
build: update vscode engine version to be able to package the extension.
yCodeTech Dec 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"useTabs": true,
"tabWidth": 4,
"semi": true,
"printWidth": 150,
"bracketSameLine": true,
"bracketSpacing": false,
"overrides": [
{
"files": [
"*.json",
"*.jsonc"
],
"options": {
"printWidth": 5
}
}
]
}
52 changes: 27 additions & 25 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
// A launch configuration that compiles the extension and then opens it inside a new window
{
"version": "0.1.0",
"configurations": [
{
"name": "Launch Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/out/src/**/*.js" ],
"preLaunchTask": "npm"
},
{
"name": "Launch Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/out/test" ],
"stopOnEntry": false,
"sourceMaps": true,
"outFiles": [ "${workspaceRoot}/out/test/**/*.js" ],
"preLaunchTask": "npm"
}
]
"version": "0.2.0",
"configurations": [
{
"name": "Run Extension",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "npm: watch"
},
{
"name": "Run Extension Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test"
],
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/out/**/*.js"],
"preLaunchTask": "npm: watch"
}
]
}
41 changes: 9 additions & 32 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -1,42 +1,19 @@
// Available variables which can be used inside of strings.
// ${workspaceRoot}: the root folder of the team
// ${file}: the current opened file
// ${fileBasename}: the current opened file's basename
// ${fileDirname}: the current opened file's dirname
// ${fileExtname}: the current opened file's extension
// ${cwd}: the current working directory of the spawned process

// A task runner that calls a custom npm script that compiles the extension.
{
"version": "2.0.0",

// we want to run npm
"command": "npm",

// we run the custom script "compile" as defined in package.json
"args": ["run", "compile", "--loglevel", "silent"],

// The tsc compiler is started in watching mode
"isBackground": true,

// use the standard tsc in watch mode problem matcher to find compile problems in the output.
"problemMatcher": "$tsc-watch",
"version": "2.0.0",
"tasks": [
{
"label": "npm",
"type": "shell",
"args": [
"run",
"compile",
"--loglevel",
"silent"
],
"isBackground": true,
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"_id": "build",
"kind": "build",
"isDefault": false
}
}
]
}
}
113 changes: 83 additions & 30 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,62 +1,115 @@
# Change Log
# ChangeLog

All notable changes to this extension will be documented in this file.

<!--Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.-->
## [1.0.3]
- Added support for JavaScript and TypeScript multiline block comments - a [pull request by a-stewart](https://github.com/kevb34ns/auto-comment-blocks/pull/35) for the original plugin. Fixes issue kevb34ns/auto-comment-blocks#27.
- Created a new language config file for Blade to use blade's comments as well as the multiline block comments
- Updated various language config files to reflect a [pull request by a-stewart](https://github.com/kevb34ns/auto-comment-blocks/pull/37) for the original plugin.
- Added support for protocol buffers - a [pull request by jun-sheaf](https://github.com/kevb34ns/auto-comment-blocks/pull/30) for the original plugin.
- Added support for `//!` comments - a [pull request by Lucretiel](https://github.com/kevb34ns/auto-comment-blocks/pull/29) for the original plugin and fixes the issue kevb34ns/auto-comment-blocks#25
- Added support for csharp(c#) (using the cpp(c++) config file) - Fixes the issue kevb34ns/auto-comment-blocks#41.
- Updated the support for `/*! */` comments and including the `!` on every line.
This Changelog uses the [Keep a Changelog](http://keepachangelog.com/) structure.

## [1.1.0](https://github.com/yCodeTech/auto-comment-blocks/releases/tag/v1.1.0) - 2024-22-12

A complete overhaul to enable automatic support for all languages that vscode finds internally (via built-in or 3rd party extensions) that has both a language configuration file, and a comments key in the file.

For a full changelog, view the [release PR](https://github.com/yCodeTech/auto-comment-blocks/pull/1).

#### Removed:

- All language configuration files and package.json contribution declaration, in favour of auto-supported languages. So this extension no longer needs to keep adding language support, as the extension does it automatically.

#### Added:

- Added 3 new settings:

- `multiLineStyleBlocks` to add support of multi-line block comment to the specified unsupported languages.
- `overrideDefaultLanguageMultiLineComments` to override the style of multi-line comments for a language for the native vscode `blockComment` command.

- `bladeOverrideComments`, to switch between HTML style `<!-- -->` comments, and Blade style `{{-- --}}` comments, when the file is using the Blade language.

- Added a keyboard binding to enable/disable the `bladeOverrideComments` setting, and a user information message appears to state whether enabled or disabled.

- Added support for `/* */`.

- Added an event to reconfigure the comment blocks evertime a document is opened OR the document language has been changed.

- Added a config file to define the default multi-line config comments and autoClosingPairs; and a config file to define language IDs the need to be skipped when auto finding the languages to support (because these languages are known not to have any config properties we're interested in.)

- Added support for double semicolon `;;` and double hash `##` comments.

## [v1.0.3](https://github.com/yCodeTech/auto-comment-blocks/releases/tag/v1.0.3) - 2022-09-17

- Added support for JavaScript and TypeScript multi-line block comments - a [pull request by a-stewart](https://github.com/kevb34ns/auto-comment-blocks/pull/35) for the original plugin. Fixes issue kevb34ns/auto-comment-blocks#27.
- Created a new language config file for Blade to use blade's comments as well as the multi-line block comments
- Updated various language config files to reflect a [pull request by a-stewart](https://github.com/kevb34ns/auto-comment-blocks/pull/37) for the original plugin.
- Added support for protocol buffers - a [pull request by jun-sheaf](https://github.com/kevb34ns/auto-comment-blocks/pull/30) for the original plugin.
- Added support for `//!` comments - a [pull request by Lucretiel](https://github.com/kevb34ns/auto-comment-blocks/pull/29) for the original plugin and fixes the issue kevb34ns/auto-comment-blocks#25
- Added support for csharp(c#) (using the cpp(c++) config file) - Fixes the issue kevb34ns/auto-comment-blocks#41.
- Updated the support for `/*! */` comments and including the `!` on every line.

## [1.0.2]
- Added support for PHP Blade.

- Added support for PHP Blade.

---

Forked by @yCodeTech from here upwards.

---

## [1.0.1]
- Add multi-line support for Rust, Go
- Add single-line support for YAML

- Add multi-line support for Rust, Go
- Add single-line support for YAML

## [1.0.0]
- Add multi-line comment support for Less, Objective-C/C++, and Swift.
- Add single-line comment blocks for most officially supported languages. See README for more information.

- Add multi-line comment support for Less, Objective-C/C++, and Swift.
- Add single-line comment blocks for most officially supported languages. See README for more information.

## [0.3.2]
- Fix a bug that broke the extension, caused by the previous bugfix.

- Fix a bug that broke the extension, caused by the previous bugfix.

## [0.3.1]
- Fix bug that that caused every language to have single-line block comments.

- Fix bug that that caused every language to have single-line block comments.

## [0.3.0]
- Add single-line blocks for C/C++ (disabled by default).
- Add comment completion for PHP files.

- Add single-line blocks for C/C++ (disabled by default).
- Add comment completion for PHP files.

## [0.2.2]
- Add Javadoc-style comments for Groovy files.

- Add Javadoc-style comments for Groovy files.

## [0.2.1]
- Fixed misspelled filename leading to C functionality breaking.
- Change extension description to include support for new languages.

- Fixed misspelled filename leading to C functionality breaking.
- Change extension description to include support for new languages.

## [0.2.0]
- Added block comment completion for CSS/Sass files.

- Added block comment completion for CSS/Sass files.

## [0.1.0]
- Add QDoc (Qt-style) comment block completion for C and C++.

- Add QDoc (Qt-style) comment block completion for C and C++.

## [0.0.5]
- Fix major typo that caused an asterisk to be inserted following any indented line.
- Changelog now starts with the latest update rather than the oldest.

- Fix major typo that caused an asterisk to be inserted following any indented line.
- Changelog now starts with the latest update rather than the oldest.

## [0.0.4]
- Fixed an issue that caused asterisk insertion and indentation bugs when indenting using an odd number of spaces.

- Fixed an issue that caused asterisk insertion and indentation bugs when indenting using an odd number of spaces.

## [0.0.3]
- Changed `galleryBanner.theme`, again.

- Changed `galleryBanner.theme`, again.

## [0.0.2]
- Changed `galleryBanner.theme`.

- Changed `galleryBanner.theme`.

## [0.0.1]
- Initial release

- Initial release
Loading