fix: fallback to a normal file icon if no language is found
This commit is contained in:
parent
2d16ba2f32
commit
29420acbec
1 changed files with 1 additions and 1 deletions
|
@ -23,7 +23,7 @@ function setActivity(rpc: Client): void {
|
|||
details: window.activeTextEditor ? `Editing ${basename(window.activeTextEditor.document.fileName)}` : 'Idle.',
|
||||
state: window.activeTextEditor ? `Workspace: ${workspace.getWorkspaceFolder(window.activeTextEditor.document.uri).name}` : 'Idling.',
|
||||
startTimestamp: new Date().getTime() / 1000,
|
||||
largeImageKey: window.activeTextEditor ? extname(basename(window.activeTextEditor.document.fileName)).substring(1) || basename(window.activeTextEditor.document.fileName).substring(1) || 'vscode-big' : 'vscode-big',
|
||||
largeImageKey: window.activeTextEditor ? extname(basename(window.activeTextEditor.document.fileName)).substring(1) || basename(window.activeTextEditor.document.fileName).substring(1) || 'file' : 'vscode-big',
|
||||
largeImageText: window.activeTextEditor ? window.activeTextEditor.document.languageId : 'Idling.',
|
||||
smallImageKey: 'vscode',
|
||||
smallImageText: 'Visual Studio Code',
|
||||
|
|
Loading…
Reference in a new issue