Skip to content

Commit 4eab357

Browse files
committed
Document that we expect tokenType to be < 65536 (for microsoft#89185)
1 parent 8d36d09 commit 4eab357

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/vs/vscode.proposed.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ declare module 'vscode' {
240240
* - at index `5*i` - `deltaLine`: token line number, relative to the previous token
241241
* - at index `5*i+1` - `deltaStart`: token start character, relative to the previous token (relative to 0 or the previous token's start if they are on the same line)
242242
* - at index `5*i+2` - `length`: the length of the token. A token cannot be multiline.
243-
* - at index `5*i+3` - `tokenType`: will be looked up in `SemanticTokensLegend.tokenTypes`
243+
* - at index `5*i+3` - `tokenType`: will be looked up in `SemanticTokensLegend.tokenTypes`. We currently ask that `tokenType` < 65536.
244244
* - at index `5*i+4` - `tokenModifiers`: each set bit will be looked up in `SemanticTokensLegend.tokenModifiers`
245245
*
246246
* ---

0 commit comments

Comments
 (0)