Fix image null (#43)

This commit is contained in:
Frangu Vlad 2018-02-07 14:38:15 +02:00 committed by Crawl
parent 1e63a4add6
commit e82b783ffb
2 changed files with 2 additions and 1 deletions

View file

@ -37,6 +37,7 @@
"haskell",
"html",
"haxe",
"ini",
"pug",
"jar",
"java",

View file

@ -249,7 +249,7 @@ function setActivity(workspaceElapsedTime: boolean = false): void {
|| largeImageKey
: 'txt',
largeImageText: window.activeTextEditor
? config.get('largeImage').replace('{lang}', largeImageKey.image || largeImageKey).replace('{LANG}', largeImageKey.image.toUpperCase() || largeImageKey.toUpperCase())
? config.get('largeImage').replace('{lang}', largeImageKey ? largeImageKey.image || largeImageKey : "txt").replace('{LANG}', largeImageKey ? (largeImageKey.image || largeImageKey).toUpperCase() : "TXT")
|| window.activeTextEditor.document.languageId.padEnd(2, '\u200b')
: config.get('largeImageIdle'),
smallImageKey: debug.activeDebugSession