提交 80ee4aa4 编写于 作者: M Matt Bierner

Fix crash on iconPath access

Fixes #61333
上级 f99819ff
......@@ -72,7 +72,11 @@ export class WebviewEditorInputFactory implements IEditorInputFactory {
return this._webviewService.reviveWebview(data.viewType, data.id, data.title, iconPath, data.state, data.options, extensionLocation);
}
}
function reviveIconPath(data: SerializedIconPath) {
function reviveIconPath(data: SerializedIconPath | undefined) {
if (!data) {
return undefined;
}
const light = reviveUri(data.light);
const dark = reviveUri(data.dark);
return light && dark ? { light, dark } : undefined;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册