提交 efe237df 编写于 作者: J Johannes Rieken

ensure there are token before asking for the word at a position, fixes #32756

上级 4a219809
......@@ -39,6 +39,7 @@ export class LineContext {
return false;
}
const pos = editor.getPosition();
model.tokenizeIfCheap(pos.lineNumber);
const word = model.getWordAtPosition(pos);
if (!word) {
return false;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册