Skip to content
This repository has been archived by the owner on Dec 19, 2024. It is now read-only.

Extension crashes if flow.trace.server is not a string #402

Open
jvilk-stripe opened this issue Oct 20, 2020 · 0 comments
Open

Extension crashes if flow.trace.server is not a string #402

jvilk-stripe opened this issue Oct 20, 2020 · 0 comments

Comments

@jvilk-stripe
Copy link

jvilk-stripe commented Oct 20, 2020

Steps to reproduce

  1. Add flow.trace.server: null to your VS Code settings.
  2. Restart VS Code.
  3. Open a JS file. Flow will fail to start. The log shows a type error in fromString.

Expected result

Flow ignores the invalid setting.

The issue appears to be in the LanguageClient library. From the minified source, I cannot tell if it has been fixed upstream:

https://github.com/microsoft/vscode-languageserver-node/blob/084c035af6aeb2999df7d26eb69f3b34acae9ca8/client/src/common/client.ts#L3339

@jvilk-stripe jvilk-stripe changed the title Extension crashes if trace.server is not a string Extension crashes if flow.trace.server is not a string Oct 20, 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

No branches or pull requests

1 participant