提交 656e60dc 编写于 作者: M Matt Bierner

Don't prevent launching the editor when `updateStyleSheet` fails

上级 c80fb1b7
......@@ -42,6 +42,8 @@ class WebviewIconsManager {
private async updateStyleSheet(lifecycleService: ILifecycleService, ) {
await lifecycleService.when(LifecyclePhase.Starting);
try {
const cssRules: string[] = [];
this._icons.forEach((value, key) => {
const webviewSelector = `.show-file-icons .webview-${key}-name-file-icon::before`;
......@@ -53,6 +55,9 @@ class WebviewIconsManager {
}
});
this._styleElement.innerHTML = cssRules.join('\n');
} catch {
// noop
}
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册