Skip to content

Commit 9ea51d5

Browse files
authored
Merge pull request #6638 from dibarbet/merge_main
Merge main into release
2 parents ac4601d + 7750f05 commit 9ea51d5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2815
-560
lines changed

.vscode/launch.json

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@
4141
"${workspaceFolder}/**",
4242
"!**/node_modules/**"
4343
],
44-
"preLaunchTask": "buildDev"
44+
"preLaunchTask": "buildDev",
45+
"internalConsoleOptions": "openOnSessionStart"
4546
},
4647
{
4748
"name": "Launch Current File BasicRazorApp2_1 Integration Tests",
@@ -69,7 +70,8 @@
6970
"${workspaceFolder}/**",
7071
"!**/node_modules/**"
7172
],
72-
"preLaunchTask": "buildDev"
73+
"preLaunchTask": "buildDev",
74+
"internalConsoleOptions": "openOnSessionStart"
7375
},
7476
{
7577
"name": "Omnisharp: Launch Current File Integration Tests",
@@ -129,6 +131,17 @@
129131
],
130132
"preLaunchTask": "buildDev"
131133
},
134+
{
135+
"type": "node",
136+
"request": "launch",
137+
"name": "Debug gulp task",
138+
"preLaunchTask": "build",
139+
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
140+
"args": [
141+
"${input:gulpTaskName}"
142+
],
143+
"cwd": "${workspaceFolder}"
144+
},
132145
{
133146
"type": "node",
134147
"request": "launch",
@@ -212,7 +225,11 @@
212225
"slnFilterWithCsproj",
213226
"slnWithGenerator"
214227
]
215-
// type specific configuration attributes
228+
},
229+
{
230+
"id": "gulpTaskName",
231+
"description": "The name of the gulp task to debug",
232+
"type": "promptString",
216233
}
217234
]
218235
}

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,18 @@
66
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)
77

88
## Latest
9+
* Fix C# Debugger telemetry (PR: [#6627](https://github.com/dotnet/vscode-csharp/pull/6627))
10+
* Add support for deduping build diagnostics from C# Devkit (PR: [#6543](https://github.com/dotnet/vscode-csharp/pull/6543))
11+
* Update Roslyn to 4.9.0-1.23530.4 (PR: [#6603](https://github.com/dotnet/vscode-csharp/pull/6603))
12+
* Enable NuGet restore commands `dotnet.restore.all` and `dotnet.restore.project` (PR: [#70588](https://github.com/dotnet/roslyn/pull/70588))
13+
* Fix issue where server did not reload projects after NuGet restore (PR: [#70602](https://github.com/dotnet/roslyn/pull/70602))
14+
* Update debugger to 2.9.0 (PR: [#6623](https://github.com/dotnet/vscode-csharp/pull/6623))
15+
* Flush `Console.Write` buffer more often (Fixes: [#6598](https://github.com/dotnet/vscode-csharp/issues/6598))
16+
* Fix logpoint freezing on start (Fixes: [#6585](https://github.com/dotnet/vscode-csharp/issues/6585))
17+
* Fix logpoints when using variables after breakpoint breaks (Fixes: [#583](https://github.com/microsoft/vscode-dotnettools/issues/583))
18+
* Update README.md to rename the Runtime dependency (PR: [#6617](https://github.com/dotnet/vscode-csharp/pull/6617))
19+
20+
## 2.9.20
921
* Bump Roslyn to 4.9.0-1.23526.14 (PR: [#6608](https://github.com/dotnet/vscode-csharp/pull/6608))
1022
* Fix some project loading issues caused by evaluation failures (PR: [#70496](https://github.com/dotnet/roslyn/pull/70496))
1123
* Ensure evaluation diagnostics are logged during project load (PR: [#70467](https://github.com/dotnet/roslyn/pull/70467))

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ While it is possible to use the C# extension as a standalone extension, we highl
66

77
1. Installing [C# Dev Kit][csdevkitextension] will automatically install this extension as a required dependency.
88
2. Open a folder/workspace that contains a C# project (.csproj) and a C# solution (.sln) and the extension will activate.
9-
3. Whether you install C# Dev Kit or just the C# extension, the [.NET Runtime Installer Tool extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-runtime) will be installed as a dependency.
9+
3. Whether you install C# Dev Kit or just the C# extension, the [.NET Install Tool](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.vscode-dotnet-runtime) will be installed as a dependency.
1010

1111
Note: If working on a solution that requires versions prior to .NET 6 or non-solution based projects, install a .NET Framework runtime and [MSBuild tooling](https://visualstudio.microsoft.com/downloads/#build-tools-for-visual-studio-2022).
1212
* Set omnisharp.useModernNet to false and set dotnet.server.useOmnisharp to true

azure-pipelines-official.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ parameters:
1313
default: 'default'
1414

1515
stages:
16-
- template: azure-pipelines/build.yml
16+
- template: azure-pipelines/build-all.yml
1717
parameters:
1818
versionNumberOverride: ${{ parameters.versionNumberOverride }}
1919

azure-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ pr:
1212
- main
1313

1414
stages:
15-
- template: azure-pipelines/build.yml
15+
- template: azure-pipelines/build-all.yml
1616

1717
- stage: Test
1818
displayName: Test

azure-pipelines/build-all.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
parameters:
2+
- name: versionNumberOverride
3+
type: string
4+
default: 'default'
5+
6+
stages:
7+
- stage: Build
8+
displayName: 'Build VSIXs'
9+
dependsOn: []
10+
jobs:
11+
- template: build.yml
12+
parameters:
13+
versionNumberOverride: ${{ parameters.versionNumberOverride }}
14+
vmImageName: ubuntu-latest
15+
platform: linux
16+
- template: build.yml
17+
parameters:
18+
versionNumberOverride: ${{ parameters.versionNumberOverride }}
19+
vmImageName: windows-latest
20+
platform: windows
21+
- template: build.yml
22+
parameters:
23+
versionNumberOverride: ${{ parameters.versionNumberOverride }}
24+
vmImageName: macOS-latest
25+
platform: darwin

azure-pipelines/build.yml

Lines changed: 65 additions & 57 deletions
Original file line numberDiff line numberDiff line change
@@ -2,62 +2,70 @@ parameters:
22
- name: versionNumberOverride
33
type: string
44
default: 'default'
5+
- name: vmImageName
6+
type: string
7+
default: ''
8+
- name: platform
9+
type: string
10+
11+
jobs:
12+
- job:
13+
displayName: 'Build ${{ parameters.platform }} prerelease vsixs'
14+
pool:
15+
name: Azure Pipelines
16+
vmImage: ${{ parameters.vmImageName }}
17+
steps:
18+
- checkout: self
19+
clean: true
20+
submodules: true
21+
fetchTags: false
22+
fetchDepth: 0
23+
24+
- template: prereqs.yml
25+
parameters:
26+
versionNumberOverride: ${{ parameters.versionNumberOverride }}
27+
28+
- script: gulp vsix:release:package:${{ parameters.platform }} --prerelease
29+
displayName: 'Build VSIXs'
30+
31+
- task: PublishBuildArtifacts@1
32+
# Run the publish step so we have vsix's even if the tests fail.
33+
condition: succeededOrFailed()
34+
displayName: 'Publish VSIXs'
35+
inputs:
36+
PathtoPublish: '$(Build.SourcesDirectory)/vsix'
37+
ArtifactName: 'VSIX_Prerelease_$(System.JobAttempt)'
38+
39+
- script: npm run test:artifacts
40+
displayName: 'Run artifacts tests'
41+
42+
- job:
43+
displayName: 'Build ${{ parameters.platform }} release vsixs'
44+
pool:
45+
name: Azure Pipelines
46+
vmImage: ${{ parameters.vmImageName }}
47+
steps:
48+
- checkout: self
49+
clean: true
50+
submodules: true
51+
fetchTags: false
52+
fetchDepth: 0
53+
54+
- template: prereqs.yml
55+
parameters:
56+
versionNumberOverride: ${{ parameters.versionNumberOverride }}
57+
58+
- script: gulp vsix:release:package:${{ parameters.platform }}
59+
displayName: 'Build VSIXs'
60+
61+
- task: PublishBuildArtifacts@1
62+
# Run the publish step so we have vsix's even if the tests fail.
63+
condition: succeededOrFailed()
64+
displayName: 'Publish VSIXs'
65+
inputs:
66+
PathtoPublish: '$(Build.SourcesDirectory)/vsix'
67+
ArtifactName: 'VSIX_Release_$(System.JobAttempt)'
568

6-
stages:
7-
- stage: Build
8-
displayName: 'Build VSIXs'
9-
jobs:
10-
- job:
11-
displayName: 'Build Prerelease VSIXs'
12-
steps:
13-
- checkout: self
14-
clean: true
15-
submodules: true
16-
fetchTags: false
17-
fetchDepth: 0
18-
19-
- template: prereqs.yml
20-
parameters:
21-
versionNumberOverride: ${{ parameters.versionNumberOverride }}
22-
23-
- script: gulp 'vsix:release:package' --prerelease
24-
displayName: 'Build VSIXs'
25-
26-
- task: PublishPipelineArtifact@1
27-
# Run the publish step so we have vsix's even if the tests fail.
28-
condition: succeededOrFailed()
29-
displayName: 'Publish VSIXs'
30-
inputs:
31-
targetPath: '$(Build.SourcesDirectory)/vsix'
32-
artifactName: 'VSIX_Prerelease_$(System.JobAttempt)'
33-
34-
- script: npm run test:artifacts
35-
displayName: 'Run artifacts tests'
36-
37-
- job:
38-
displayName: 'Build Release VSIXs'
39-
steps:
40-
- checkout: self
41-
clean: true
42-
submodules: true
43-
fetchTags: false
44-
fetchDepth: 0
45-
46-
- template: prereqs.yml
47-
parameters:
48-
versionNumberOverride: ${{ parameters.versionNumberOverride }}
49-
50-
- script: gulp 'vsix:release:package'
51-
displayName: 'Build VSIXs'
52-
53-
- task: PublishPipelineArtifact@1
54-
# Run the publish step so we have vsix's even if the tests fail.
55-
condition: succeededOrFailed()
56-
displayName: 'Publish VSIXs'
57-
inputs:
58-
targetPath: '$(Build.SourcesDirectory)/vsix'
59-
artifactName: 'VSIX_Release_$(System.JobAttempt)'
60-
61-
- script: npm run test:artifacts
62-
displayName: 'Run artifacts tests'
69+
- script: npm run test:artifacts
70+
displayName: 'Run artifacts tests'
6371

azure-pipelines/loc.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ stages:
4545
fetchDepth: 0
4646
- pwsh: |
4747
npm install
48-
npm install -g @vscode/l10n-dev
4948
npm install -g gulp
5049
displayName: 'Install tools'
5150
- pwsh: npm run compile

azure-pipelines/test-omnisharp.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,17 @@ steps:
1414
env:
1515
DISPLAY: :99.0
1616

17+
- task: PublishTestResults@2
18+
condition: succeededOrFailed()
19+
displayName: 'Publish Test Results'
20+
inputs:
21+
testResultsFormat: 'JUnit'
22+
testResultsFiles: '*junit.xml'
23+
searchFolder: '$(Build.SourcesDirectory)/out'
24+
publishRunAttachments: true
25+
mergeTestResults: true
26+
testRunTitle: OmniSharp $(Agent.JobName) (Attempt $(System.JobAttempt))
27+
1728
- task: PublishPipelineArtifact@1
1829
condition: failed()
1930
displayName: 'Upload integration test logs'

azure-pipelines/test.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ jobs:
3636
env:
3737
DISPLAY: :99.0
3838

39+
- task: PublishTestResults@2
40+
condition: succeededOrFailed()
41+
displayName: 'Publish Test Results'
42+
inputs:
43+
testResultsFormat: 'JUnit'
44+
testResultsFiles: '*junit.xml'
45+
searchFolder: '$(Build.SourcesDirectory)/out'
46+
publishRunAttachments: true
47+
mergeTestResults: true
48+
testRunTitle: $(Agent.JobName) (Attempt $(System.JobAttempt))
49+
3950
- task: PublishPipelineArtifact@1
4051
condition: failed()
4152
displayName: 'Upload integration test logs'

0 commit comments

Comments
 (0)