mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
add explict type-annotation after making variable const
This commit is contained in:
parent
0656d21d11
commit
b501e62963
|
@ -307,7 +307,7 @@ class Mode extends Disposable {
|
|||
const tokensArr: number[] = [];
|
||||
let prevColor: ColorId = -1;
|
||||
for (let i = 0; i < line.length; i++) {
|
||||
const colorId = line.charAt(i) === '.' ? 7 : 9;
|
||||
const colorId: ColorId = line.charAt(i) === '.' ? 7 : 9;
|
||||
if (prevColor !== colorId) {
|
||||
tokensArr.push(i);
|
||||
tokensArr.push((
|
||||
|
|
Loading…
Reference in a new issue