Skip to content

Commit 42e4cf5

Browse files
committed
Update script now knows of the roslyn language server bits as well.
1 parent 36aa9bc commit 42e4cf5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/tools/updatePackageDependencies.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)