3 ms·
If you've ever used any filtering in VS Code, this is the algorithm. Re tomato/margin-top, weight is given to matching the prefix exactly, so margin-top does in
by jakear 3y ago
If you've ever used any filtering in VS Code, this is the algorithm. Re tomato/margin-top, weight is given to matching the prefix exactly, so margin-top does indeed rank higher.
https://github.com/microsoft/vscode/blob/main/src/vs/base/common/filters.ts#L350 https://github.com/microsoft/vscode/blob/main/src/vs/base/co...