while -> for

This commit is contained in:
Matt Bierner
2022-03-01 16:39:41 -08:00
parent ea76090229
commit 1900abc88b

View File

@@ -89,8 +89,7 @@ class DocumentSemanticTokensProvider implements vscode.DocumentSemanticTokensPro
const tokenSpan = response.body.spans;
const builder = new vscode.SemanticTokensBuilder();
let i = 0;
while (i < tokenSpan.length) {
for (let i = 0; i < tokenSpan.length;) {
const offset = tokenSpan[i++];
const length = tokenSpan[i++];
const tsClassification = tokenSpan[i++];