diff options
Diffstat (limited to 'src/vs/workbench/contrib/snippets/browser/surroundWithSnippet.ts')
-rw-r--r-- | src/vs/workbench/contrib/snippets/browser/surroundWithSnippet.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vs/workbench/contrib/snippets/browser/surroundWithSnippet.ts b/src/vs/workbench/contrib/snippets/browser/surroundWithSnippet.ts index 96c1ecfc5a7..80d25b05968 100644 --- a/src/vs/workbench/contrib/snippets/browser/surroundWithSnippet.ts +++ b/src/vs/workbench/contrib/snippets/browser/surroundWithSnippet.ts @@ -38,7 +38,7 @@ registerAction2(class SurroundWithAction extends EditorAction2 { } const { lineNumber, column } = editor.getPosition(); - editor.getModel().tokenizeIfCheap(lineNumber); + editor.getModel().tokenization.tokenizeIfCheap(lineNumber); const languageId = editor.getModel().getLanguageIdAtPosition(lineNumber, column); const allSnippets = await snippetService.getSnippets(languageId, { includeNoPrefixSnippets: true, includeDisabledSnippets: true }); |