提交 af990cfb 编写于 作者: M Martin Aeschlimann

Cannot read property 'dispose' of null. Fixes #12124

上级 8650a786
......@@ -494,8 +494,10 @@ export class SnippetController {
this._inSnippetMode.set(true);
this._currentController = new InsertSnippetController(this._editor, prepared.adaptedSnippet, prepared.typeRange.startLineNumber, initialAlternativeVersionId, () => {
this._inSnippetMode.reset();
this._currentController.dispose();
this._currentController = null;
if (this._currentController) {
this._currentController.dispose();
this._currentController = null;
}
});
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册