Skip to content

CSS Language Server fails if client doesn't set dataPaths in InitializationOptions #79599

@mickaelistria

Description

@mickaelistria
  • VSCode Version: 1.37.1
  • OS Version: Fedora 30

I'm extracting the CSS Language Server for usage in 3rd party IDE (Eclipse IDE).
I noticed that if I start the CSS-LS without passing a dataPaths element to initialization, the LS will fail because of TypeError: Cannot read property 'map' of undefined.
One of the important lines in the stack trace is https://github.com/microsoft/vscode/blob/master/extensions/css-language-features/server/src/cssServerMain.ts#L107 .

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugcss-less-scssIssues and items concerning CSS,Less,SCSS stylingverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions