提交 db2d6820 编写于 作者: I isidor

introduce vscode-repl-font-family

上级 c6f4565a
......@@ -17,6 +17,10 @@
white-space: pre;
}
.monaco-workbench .repl .repl-tree .monaco-tl-contents .expression {
font-family: var(--vscode-repl-font-family);
}
.monaco-workbench .repl .repl-tree.word-wrap .monaco-tl-contents {
/* Wrap words but also do not trim whitespace #6275 */
word-wrap: break-word;
......
......@@ -321,7 +321,6 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
this.styleElement.textContent = `
.repl .repl-tree .expression {
font-size: ${fontSize}px;
font-family: ${fontFamily};
}
.repl .repl-tree .expression {
......@@ -340,6 +339,7 @@ export class Repl extends ViewPane implements IHistoryNavigationWidget {
background-color: ${backgroundColor};
}
`;
this.styleElement.style.setProperty(`--vscode-repl-font-family`, fontFamily);
this.tree.rerender();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册