提交 77713347 编写于 作者: A Alex Dima

Fixes #13866: Cannot read property 'length' of null

上级 04ee683b
......@@ -494,6 +494,7 @@ export class TextModelWithTokens extends TextModel implements editorCommon.IToke
}
public getWordAtPosition(_position: editorCommon.IPosition): editorCommon.IWordAtPosition {
this._assertNotDisposed();
let position = this.validatePosition(_position);
let lineContent = this.getLineContent(position.lineNumber);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册