Skip to content

High CPU load in VSCode #49

@sledorze

Description

@sledorze

Often when editing code using fp-ts, vscode go crazy on CPU during several seconds.
This is a reduced case, it can last way longer with more involved code.

Minimal repro repo:
https://github.com/sledorze/vscode-hanging

Main code showing the issue :

import {
Validation
} from 'fp-ts/lib/Validation';

import {
array,
validation,
} from 'fp-ts';

export function pouet(
xs: number[],
f: (x: number) => Validation<string[], number>
): void {
array.traverse(validation. .getApplicativeS(array))(f, xs); // Long hanging due to this space!
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions