File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -270,6 +270,12 @@ function getLowercaseFileNameFromUrl(url: string): string {
270270 const secondToLastDash = fileName . lastIndexOf ( '-' , fileName . lastIndexOf ( '-' ) - 1 ) ;
271271 fileName = fileName . substr ( 0 , secondToLastDash ) ;
272272 return fileName ;
273+ } else if ( fileName . startsWith ( 'microsoft.visualstudio.copilot.roslyn.languageserver' ) ) {
274+ // Copilot versions are everything after the second to last dash.
275+ // e.g. we want microsoft.visualstudio.copilot.roslyn.languageserver from microsoft.visualstudio.copilot.roslyn.languageserver-18.0.479-alpha.zip
276+ const secondToLastDash = fileName . lastIndexOf ( '-' , fileName . lastIndexOf ( '-' ) - 1 ) ;
277+ fileName = fileName . substr ( 0 , secondToLastDash ) ;
278+ return fileName ;
273279 } else {
274280 throw new Error ( `Unexpected dependency file name '${ fileName } '` ) ;
275281 }
You can’t perform that action at this time.
0 commit comments