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", "haskell",
"html", "html",
"haxe", "haxe",
"ini",
"pug", "pug",
"jar", "jar",
"java", "java",

View file

@ -249,7 +249,7 @@ function setActivity(workspaceElapsedTime: boolean = false): void {
|| largeImageKey || largeImageKey
: 'txt', : 'txt',
largeImageText: window.activeTextEditor 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') || window.activeTextEditor.document.languageId.padEnd(2, '\u200b')
: config.get('largeImageIdle'), : config.get('largeImageIdle'),
smallImageKey: debug.activeDebugSession smallImageKey: debug.activeDebugSession