@@ -221,58 +221,7 @@ export async function activate(context: vscode.ExtensionContext) {
221221 ) ;
222222
223223 context . subscriptions . push (
224- vscode . commands . registerCommand ( 'spotilyrics.setHideSongTitle' , async ( ) => {
225- const config = vscode . workspace . getConfiguration ( 'spotilyrics' ) ;
226- const input = await vscode . window . showQuickPick ( [ 'hide' , 'show' ] , {
227- canPickMany : false ,
228- } ) ;
229-
230- if ( ! input ) {
231- return ;
232- }
233- const value = input == 'hide' ;
234- await config . update ( 'hideSongTitle' , value , vscode . ConfigurationTarget . Global ) ;
235- vscode . window . showInformationMessage (
236- `Song title has been ${ value ? 'hidden' : 'shown' } `
237- ) ;
238- } )
239- ) ;
240- context . subscriptions . push (
241- vscode . commands . registerCommand ( 'spotilyrics.setHideSongIcon' , async ( ) => {
242- const config = vscode . workspace . getConfiguration ( 'spotilyrics' ) ;
243- const input = await vscode . window . showQuickPick ( [ 'hide' , 'show' ] , {
244- canPickMany : false ,
245- } ) ;
246-
247- if ( ! input ) {
248- return ;
249- }
250- const value = input == 'hide' ;
251- await config . update ( 'hideSongIcon' , value , vscode . ConfigurationTarget . Global ) ;
252- vscode . window . showInformationMessage (
253- `Song icon has been ${ value ? 'hidden' : 'shown' } `
254- ) ;
255- } )
256- ) ;
257- context . subscriptions . push (
258- vscode . commands . registerCommand ( 'spotilyrics.setHideSongAuthor' , async ( ) => {
259- const config = vscode . workspace . getConfiguration ( 'spotilyrics' ) ;
260- const input = await vscode . window . showQuickPick ( [ 'hide' , 'show' ] , {
261- canPickMany : false ,
262- } ) ;
263-
264- if ( ! input ) {
265- return ;
266- }
267- const value = input == 'hide' ;
268- await config . update ( 'hideSongAuthor' , value , vscode . ConfigurationTarget . Global ) ;
269- vscode . window . showInformationMessage (
270- `Song author has been ${ value ? 'hidden' : 'shown' } `
271- ) ;
272- } )
273- ) ;
274- context . subscriptions . push (
275- vscode . commands . registerCommand ( 'spotilyrics.toggleHideSongTitle' , async ( ) => {
224+ vscode . commands . registerCommand ( 'spotilyrics.hideSongTitle' , async ( ) => {
276225 const config = vscode . workspace . getConfiguration ( 'spotilyrics' ) ;
277226 const value = ! config . get ( 'hideSongTitle' ) ;
278227 await config . update ( 'hideSongTitle' , value , vscode . ConfigurationTarget . Global ) ;
@@ -282,7 +231,7 @@ export async function activate(context: vscode.ExtensionContext) {
282231 } )
283232 ) ;
284233 context . subscriptions . push (
285- vscode . commands . registerCommand ( 'spotilyrics.toggleHideSongIcon ' , async ( ) => {
234+ vscode . commands . registerCommand ( 'spotilyrics.hideSongIcon ' , async ( ) => {
286235 const config = vscode . workspace . getConfiguration ( 'spotilyrics' ) ;
287236 const value = ! config . get ( 'hideSongIcon' ) ;
288237 await config . update ( 'hideSongIcon' , value , vscode . ConfigurationTarget . Global ) ;
@@ -292,12 +241,12 @@ export async function activate(context: vscode.ExtensionContext) {
292241 } )
293242 ) ;
294243 context . subscriptions . push (
295- vscode . commands . registerCommand ( 'spotilyrics.toggleHideSongAuthor ' , async ( ) => {
244+ vscode . commands . registerCommand ( 'spotilyrics.hideSongArtist ' , async ( ) => {
296245 const config = vscode . workspace . getConfiguration ( 'spotilyrics' ) ;
297- const value = ! config . get ( 'hideSongAuthor ' ) ;
298- await config . update ( 'hideSongAuthor ' , value , vscode . ConfigurationTarget . Global ) ;
246+ const value = ! config . get ( 'hideSongArtist ' ) ;
247+ await config . update ( 'hideSongArtist ' , value , vscode . ConfigurationTarget . Global ) ;
299248 vscode . window . showInformationMessage (
300- `Song author has been ${ value ? 'hidden' : 'shown' } `
249+ `Song artist has been ${ value ? 'hidden' : 'shown' } `
301250 ) ;
302251 } )
303252 ) ;
@@ -465,14 +414,14 @@ function updatePanelMeta(
465414 return ;
466415 }
467416
468- const showTitle = ! vscode . workspace . getConfiguration ( 'spotilyrics' ) . get ( 'hideSongTitle' ) ;
469- const showAuthor = ! vscode . workspace . getConfiguration ( 'spotilyrics' ) . get ( 'hideSongAuthor ' ) ;
417+ const hideTitle = vscode . workspace . getConfiguration ( 'spotilyrics' ) . get ( 'hideSongTitle' ) ;
418+ const hideArtist = vscode . workspace . getConfiguration ( 'spotilyrics' ) . get ( 'hideSongArtist ' ) ;
470419
471- if ( ! showTitle && ! showAuthor ) {
420+ if ( hideTitle && hideArtist ) {
472421 panel . title = 'Spotify Lyrics' ;
473- } else if ( showTitle && ! showAuthor ) {
422+ } else if ( ! hideTitle && hideArtist ) {
474423 panel . title = trackName ;
475- } else if ( showAuthor && ! showTitle ) {
424+ } else if ( ! hideArtist && hideTitle ) {
476425 panel . title = artistName ;
477426 } else {
478427 panel . title = `${ artistName } - ${ trackName } ` ;
@@ -513,9 +462,6 @@ async function updateLyrics(context: vscode.ExtensionContext) {
513462 albumImages [ albumImages . length - 1 ] . url
514463 ) ;
515464
516- for ( const artist of currentlyPlayingResponse . item . artists ) {
517- artistNames . push ( artist . name ) ;
518- }
519465 const artists : string = artistNames . join ( ' ' ) ;
520466 if (
521467 ! currentPlayingState ||
0 commit comments