Skip to content

collapse not work for multiple lines string variable #44979

Closed
@taina0407

Description

@taina0407

Issue Type

Bug

Description

Try to collapse functionA as bellow doesn't work, only collapse till the begin "`" character. Expected to collapse all function.

const functionA = (options) => {
  const {variable, } = options;
  const config = `
#EXAMPLE CONFIG FILE

#EXAMPLE VARIABLE
VARIABLE=${variable}
`;
};

image

image

VS Code Info

VS Code version: Code 1.20.1 (f88bbf9, 2018-02-13T15:23:28.607Z)
OS version: Darwin x64 16.7.0

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7700K CPU @ 4.20GHz (8 x 4201)
Load (avg) 2, 2, 2
Memory (System) 16.00GB (0.33GB free)
Process Argv /Applications/Visual Studio Code.app/Contents/MacOS/Electron
Screen Reader no
VM 0%
Extensions (7)
Extension Author (truncated) Version
vscode-docker Pet 0.0.25
vscode-eslint dba 1.4.7
gitlens eam 8.0.2
php-intellisense fel 2.2.9
vscode-esformatter how 1.5.2
azure-account ms- 0.3.1
bash-beautify sha 0.1.1
Reproduces without extensions

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions