Skip to content

VSCode. Cann't collapse #region with multi-line comment and JSDoc comments #2140

@veatla

Description

@veatla

Describe the bug

Inside tag <style> or in CSS exists only one way to create comment and it's block comment or multi-line comment

So if I use multi-line comment to create some regions in CSS,
I cant able to collapse this regions because VSCode doesn't recognize it like a region
It's also doesn't work with JSDoc comment

Reproduction

It's very simple to reproduce, you need to write CSS like this

	.block {
		/* #region TEST */
		/* some styles.... */
		/* #endregion */
	}

Or you can create something like this in JS

	/** #region 100% SAFE FUNCS */
	function delete_downloads() {/** ... */}
	function delete_cache() {/** ... */}
	function create_you_hacked_file() {/** ... */}
	function change_user_password() {/** ... */}
	function fill_computer_with_cat_image() {/** ... */}
	function change_user_name() {/** ... */}
	function hello_world() {
		/* #region CALLER FUNCS TO HACK USER  */
		delete_downloads();
		delete_cache();
		change_user_password();
		change_user_name();
		fill_computer_with_cat_image();
		create_you_hacked_file();
		/* #endregion CALLER FUNCS TO HACK USER */
		return 'Hello world!';
	}
	/** #endregion */

Expected behaviour

You should be able to collapse #region when you used multi-line comment or JSDoc comment in VSCode

System Info

  • OS: Ubuntu 22.04.3 LTS
  • IDE: VSCode

Which package is the issue about?

Svelte for VS Code extension

Additional Information, eg. Screenshots

Screencast

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions