Fix image null (#43)
This commit is contained in:
parent
1e63a4add6
commit
e82b783ffb
2 changed files with 2 additions and 1 deletions
|
@ -37,6 +37,7 @@
|
||||||
"haskell",
|
"haskell",
|
||||||
"html",
|
"html",
|
||||||
"haxe",
|
"haxe",
|
||||||
|
"ini",
|
||||||
"pug",
|
"pug",
|
||||||
"jar",
|
"jar",
|
||||||
"java",
|
"java",
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue