File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Original file line number Diff line number Diff line change 1919- 🖥️ Smooth ** side panel view** – code on the left, lyrics on the right.
2020- 🔑 Simple ** one-time login** using your own Spotify Client ID.
2121- 🚪 Quick logout command to reset session.
22-
22+ - ⚡ Set a ** maximum tracks cache size ** for lyrics syncing.
2323---
2424
2525## 📸 Demo
@@ -55,6 +55,7 @@ Show Spotify Lyrics via Spotilyrics
5555
5656- ` Show Spotify Lyrics via Spotilyrics ` (` spotilyrics.lyrics ` ) – open synced lyrics panel.
5757- ` Logout from Spotilyrics ` (` spotilyrics.logout ` ) – clear session and re-auth when needed.
58+ - ` Set Tracks Cache Max Size ` (` spotilyrics.setTracksCacheMaxSize ` ) – configure the maximum number of tracks cached for lyrics.
5859
5960---
6061
Original file line number Diff line number Diff line change @@ -119,15 +119,23 @@ export async function activate(context: vscode.ExtensionContext) {
119119 prompt : `Maximum tracks cache size. Enter an integer ${ MIN } –${ MAX } ` ,
120120 value : String ( DEFAULT ) ,
121121 validateInput : ( v ) => {
122- if ( ! / ^ \d + $ / . test ( v ) ) { return 'Please enter an integer' ; }
122+ if ( ! / ^ \d + $ / . test ( v ) ) {
123+ return 'Please enter an integer' ;
124+ }
123125 const n = Number ( v ) ;
124- if ( n < MIN ) { return `Minimum is ${ MIN } ` ; }
125- if ( n > MAX ) { return `Maximum is ${ MAX } ` ; }
126+ if ( n < MIN ) {
127+ return `Minimum is ${ MIN } ` ;
128+ }
129+ if ( n > MAX ) {
130+ return `Maximum is ${ MAX } ` ;
131+ }
126132 return null ;
127133 } ,
128134 ignoreFocusOut : true ,
129135 } ) ;
130- if ( ! input ) { return ; }
136+ if ( ! input ) {
137+ return ;
138+ }
131139 const value = Math . max ( MIN , Math . min ( MAX , parseInt ( input , 10 ) ) ) ;
132140 await vscode . workspace
133141 . getConfiguration ( 'spotilyrics' )
You can’t perform that action at this time.
0 commit comments