Merge pull request #19192 from vinkla/reset-font-size

Fix reset-font-size
This commit is contained in:
Rafael Oleza
2019-04-26 23:47:56 +02:00
committed by GitHub

View File

@@ -1543,9 +1543,9 @@ module.exports = class Workspace extends Model {
}
subscribeToFontSize () {
return this.config.onDidChange('editor.fontSize', ({oldValue}) => {
return this.config.onDidChange('editor.fontSize', () => {
if (this.originalFontSize == null) {
this.originalFontSize = oldValue
this.originalFontSize = this.config.get('editor.fontSize')
}
})
}