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",
|
||||
"html",
|
||||
"haxe",
|
||||
"ini",
|
||||
"pug",
|
||||
"jar",
|
||||
"java",
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue