From e2a30e40902c312ab1bbd59d39df074377d0d9aa Mon Sep 17 00:00:00 2001 From: Tobiasz Laskowski Date: Sat, 27 Jul 2024 11:27:47 +0100 Subject: [PATCH] Expose EncodedTokenAttributes in main.ts Without this, there is no way to use `IGrammar.tokenizeLine2` without redefining the EncodedTokenDataConsts and reimplementing the functions. See for example: https://github.com/microsoft/vscode/blob/8810d514c7452ce912bd9bc6f79a3429cc55dcdd/src/vs/editor/common/encodedTokenAttributes.ts#L101-L103 --- src/main.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.ts b/src/main.ts index b79dd99..5db1d3a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -15,6 +15,7 @@ import { applyStateStackDiff, diffStateStacksRefEq, StackDiff } from './diffStat export * from './onigLib'; export { IRawGrammar, IRawTheme }; +export { EncodedTokenAttributes } from './encodedTokenAttributes'; /** * A registry helper that can locate grammar file paths given scope names.