Fix reset-font-size

If the user config is yet to be loaded oldValue equals the default font-size 14px. Fetching the font-size from the config object seems to fix the issue.
This commit is contained in:
Vincent Klaiber
2019-04-21 22:34:59 +02:00
parent 96124941f3
commit f9df38bc5b

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')
}
})
}