提交 81ab7e33 编写于 作者: D Daniel Imms

Type some functions in terminal code

上级 775c6431
......@@ -87,7 +87,7 @@ export class TerminalConfigHelper {
* Set the terminal font to `terminal.integrated.fontFamily` if it is set, otherwise fallback to
* `editor.fontFamily`.
*/
public getFontFamily() {
public getFontFamily(): string {
let terminalConfig = this.configurationService.getConfiguration<ITerminalConfiguration>();
let fontFamily = terminalConfig.terminal.integrated.fontFamily;
if (!fontFamily) {
......
......@@ -169,7 +169,7 @@ export class TerminalPanel extends Panel {
});
}
private setTerminalTheme() {
private setTerminalTheme(): void {
if (!this.terminal) {
return;
}
......@@ -181,7 +181,7 @@ export class TerminalPanel extends Panel {
* Set the terminal font to `terminal.integrated.fontFamily` if it is set, otherwise fallback to
* `editor.fontFamily`.
*/
private setTerminalFont() {
private setTerminalFont(): void {
this.terminalDomElement.style.fontFamily = this.configurationHelper.getFontFamily();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册