Skip to content

Issue #79599 - CSS LS fails if InitializationOptions.dataPaths not set#79600

Merged
octref merged 2 commits intomicrosoft:masterfrom
mickaelistria:issue-79599
Aug 21, 2019
Merged

Issue #79599 - CSS LS fails if InitializationOptions.dataPaths not set#79600
octref merged 2 commits intomicrosoft:masterfrom
mickaelistria:issue-79599

Conversation

@mickaelistria
Copy link
Contributor

Signed-off-by: Mickael Istria [email protected]

@octref
Copy link
Contributor

octref commented Aug 21, 2019

Thanks! I think a clearer fix would be to change:

const dataPaths: string[] = params.initializationOptions.dataPaths;

to

const dataPaths: string[] = params.initializationOptions.dataPaths || [];

Do you mind doing that instead?

@octref octref added this to the August 2019 milestone Aug 21, 2019
@mickaelistria
Copy link
Contributor Author

I'm not at all a TypeScript expert, so I'll trust your suggestion and submit a new version of the commit.

@mickaelistria
Copy link
Contributor Author

@octref I updated the patch as suggested.

@octref octref merged commit 2c4790d into microsoft:master Aug 21, 2019
@octref
Copy link
Contributor

octref commented Aug 21, 2019

Thanks!

@github-actions github-actions bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants