File tree Expand file tree Collapse file tree 4 files changed +18
-25
lines changed Expand file tree Collapse file tree 4 files changed +18
-25
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ extends:
17
17
parameters :
18
18
pool :
19
19
name : AzurePipelines-EO
20
- image : AzurePipelinesWindows2022compliantGPT
20
+ image : 1ESPT-Windows2022
21
21
os : windows
22
22
stages :
23
23
- stage : Upload
@@ -26,19 +26,20 @@ extends:
26
26
displayName : Upload to server
27
27
pool :
28
28
name : AzurePipelines-EO
29
- image : AzurePipelinesWindows2022compliantGPT
29
+ image : 1ESPT-Windows2022
30
30
os : windows
31
31
steps :
32
32
- checkout : none
33
33
34
34
- download : CI
35
35
artifact : partnerDeployables-Windows
36
36
displayName : ' Download official build CI artifact'
37
+ targetPath : ' $(Pipeline.Workspace)/artifacts'
37
38
38
39
- task : CopyFiles@2
39
40
displayName : ' Copy files from Zip folder to staging directory'
40
41
inputs :
41
- SourceFolder : ' $(Pipeline.Workspace)/partnerDeployables-Windows /'
42
+ SourceFolder : ' $(Pipeline.Workspace)/artifacts /'
42
43
Contents : ' **/*Roslyn.LanguageServer*.zip'
43
44
TargetFolder : ' $(Build.ArtifactStagingDirectory)/staging'
44
45
CleanTargetFolder : true
Original file line number Diff line number Diff line change 426
426
"id" : " RoslynCopilot" ,
427
427
"description" : " Language server for Roslyn Copilot integration (Windows)" ,
428
428
"url" : " https://roslyn.blob.core.windows.net/releases/Microsoft.VisualStudio.Copilot.Roslyn.LanguageServer-17.0.460-alpha-g8013717149" ,
429
- "installPath" : " .roslyncopilot " ,
429
+ "installPath" : " .roslynCopilot " ,
430
430
"platforms" : [
431
431
" win32" ,
432
432
" linux" ,
437
437
" x86_64" ,
438
438
" arm64"
439
439
],
440
- "installTestPath" : " ./.roslyncopilot /Microsoft.VisualStudio.Copilot.Roslyn.LanguageServer.dll" ,
440
+ "installTestPath" : " ./.roslynCopilot /Microsoft.VisualStudio.Copilot.Roslyn.LanguageServer.dll" ,
441
441
"integrity" : " 9944EBD6EE06BD595BCADD3057CD9BEF4105C3A3952DAE03E54F3114E2E6661F"
442
442
},
443
443
{
1459
1459
"xamlTools" : {
1460
1460
"description" : " %configuration.dotnet.server.componentPaths.xamlTools%" ,
1461
1461
"type" : " string"
1462
+ },
1463
+ "roslynCopilot" : {
1464
+ "description" : " %configuration.dotnet.server.componentPaths.roslynCopilot%" ,
1465
+ "type" : " string"
1462
1466
}
1463
1467
},
1464
1468
"default" : {}
Original file line number Diff line number Diff line change @@ -37,6 +37,11 @@ export const componentInfo: { [key: string]: ComponentInfo } = {
37
37
optionName : 'razorExtension' ,
38
38
componentDllPaths : [ 'Microsoft.VisualStudioCode.RazorExtension.dll' ] ,
39
39
} ,
40
+ roslynCopilot : {
41
+ defaultFolderName : '.roslynCopilot' ,
42
+ optionName : 'roslynCopilot' ,
43
+ componentDllPaths : [ 'Microsoft.VisualStudio.Copilot.Roslyn.LanguageServer.dll' ] ,
44
+ } ,
40
45
} ;
41
46
42
47
export function getComponentPaths ( componentName : string , options : LanguageServerOptions | undefined ) : string [ ] {
Original file line number Diff line number Diff line change @@ -106,12 +106,6 @@ export class RoslynLanguageServer {
106
106
*/
107
107
private static _processId : number | undefined ;
108
108
109
- /**
110
- * The folder name for the Roslyn Copilot language server dll.
111
- */
112
- private static readonly _copilotLanguageServerDllDirName = '.roslyncopilot' ;
113
- private static readonly _copilotLanguageServerDllName = 'Microsoft.VisualStudio.Copilot.Roslyn.LanguageServer.dll' ;
114
-
115
109
/**
116
110
* The solution file previously opened; we hold onto this so we can send this back over if the server were to be relaunched for any reason, like some other configuration
117
111
* change that required the server to restart, or some other catastrophic failure that completely took down the process. In the case that the process is crashing because
@@ -1083,20 +1077,9 @@ export class RoslynLanguageServer {
1083
1077
await exports . setupTelemetryEnvironmentAsync ( env ) ;
1084
1078
}
1085
1079
1086
- const copilotServerExtensionFullPath = path . join (
1087
- util . getExtensionPath ( ) ,
1088
- RoslynLanguageServer . _copilotLanguageServerDllDirName ,
1089
- RoslynLanguageServer . _copilotLanguageServerDllName
1090
- ) ;
1091
-
1092
- if ( fs . existsSync ( copilotServerExtensionFullPath ) ) {
1093
- additionalExtensionPaths . push ( copilotServerExtensionFullPath ) ;
1094
- channel . trace (
1095
- `CSharp DevKit contributes Copilot language server extension: ${ copilotServerExtensionFullPath } `
1096
- ) ;
1097
- } else {
1098
- channel . debug ( `Copilot language server extension not found at: ${ copilotServerExtensionFullPath } ` ) ;
1099
- }
1080
+ getComponentPaths ( 'roslynCopilot' , languageServerOptions ) . forEach ( ( extPath ) => {
1081
+ additionalExtensionPaths . push ( extPath ) ;
1082
+ } ) ;
1100
1083
}
1101
1084
1102
1085
/**
You can’t perform that action at this time.
0 commit comments