diff options
Diffstat (limited to 'src/vs/editor/test/browser/viewModel/modelLineProjection.test.ts')
-rw-r--r-- | src/vs/editor/test/browser/viewModel/modelLineProjection.test.ts | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/vs/editor/test/browser/viewModel/modelLineProjection.test.ts b/src/vs/editor/test/browser/viewModel/modelLineProjection.test.ts index 88c17e7823d..2fe1d779919 100644 --- a/src/vs/editor/test/browser/viewModel/modelLineProjection.test.ts +++ b/src/vs/editor/test/browser/viewModel/modelLineProjection.test.ts @@ -352,7 +352,7 @@ suite('SplitLinesCollection', () => { languageRegistration = languages.TokenizationRegistry.register(LANGUAGE_ID, tokenizationSupport); model = createTextModel(_text.join('\n'), LANGUAGE_ID); // force tokenization - model.forceTokenization(model.getLineCount()); + model.tokenization.forceTokenization(model.getLineCount()); }); teardown(() => { @@ -988,8 +988,10 @@ function createLineBreakData(breakingLengths: number[], breakingOffsetsVisibleCo function createModel(text: string): ISimpleModel { return { - getLineTokens: (lineNumber: number) => { - return null!; + tokenization: { + getLineTokens: (lineNumber: number) => { + return null!; + }, }, getLineContent: (lineNumber: number) => { return text; |