tslint check

This commit is contained in:
Crawl 2018-03-30 03:22:56 +02:00
parent 7518a98b2d
commit 9b82da7545
No known key found for this signature in database
GPG key ID: E41A6DB922EC2CFE

View file

@ -16,7 +16,7 @@ import {
} from 'vscode'; } from 'vscode';
const lang = require('./data/languages.json'); const lang = require('./data/languages.json');
const knownExtentions: { [x: string]: {image: string}} = lang.knownExtentions; const knownExtentions: { [x: string]: { image: string } } = lang.knownExtentions;
const knownLanguages: string[] = lang.knownLanguages; const knownLanguages: string[] = lang.knownLanguages;
// Define the RPC variable and its type. // Define the RPC variable and its type.
@ -245,7 +245,7 @@ function setActivity(workspaceElapsedTime: boolean = false): void {
|| largeImageKey || largeImageKey
: 'txt', : 'txt',
largeImageText: window.activeTextEditor largeImageText: window.activeTextEditor
? config.get('largeImage').replace('{lang}', largeImageKey ? largeImageKey.image || largeImageKey : "txt").replace('{LANG}', largeImageKey ? (largeImageKey.image || largeImageKey).toUpperCase() : "TXT") ? 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