Skip to content

folding range support #1704

@BigBoulard

Description

@BigBoulard

Hi guys,

In a Svelte file, when params of a function are not on the same line, I can't fold the whole function. I can instead only fold the function params.

async function lambda(
    param1,
    param2,
    param3
  ) {
	const a = 1;
	const b = 2;
}

becomes

async function lambda(
  ) {
  const a = 1;
  const b = 2;
}

instead of

async function lambda() {}

Unlike .svelte files, it works perfectly on .js ones.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FixedFixed in master branch. Pending production release.feature requestNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions