diff options
author | Johannes <johannes.rieken@gmail.com> | 2022-06-08 18:54:10 +0300 |
---|---|---|
committer | Johannes <johannes.rieken@gmail.com> | 2022-06-08 18:54:10 +0300 |
commit | b501e6296339a7d8338c13a85f8928fa264fc961 (patch) | |
tree | 50b5121c56addcfece685d759486c0757f259aaf /src/vs | |
parent | 0656d21d11910e1b241d7d6c52761d89c0ba23a4 (diff) |
add explict type-annotation after making variable const
Diffstat (limited to 'src/vs')
-rw-r--r-- | src/vs/editor/test/common/modes/textToHtmlTokenizer.test.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vs/editor/test/common/modes/textToHtmlTokenizer.test.ts b/src/vs/editor/test/common/modes/textToHtmlTokenizer.test.ts index 2b7013ddd0d..cd58acf7148 100644 --- a/src/vs/editor/test/common/modes/textToHtmlTokenizer.test.ts +++ b/src/vs/editor/test/common/modes/textToHtmlTokenizer.test.ts @@ -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(( |