Skip to content

Commit 132553a

Browse files
committed
Merge remote-tracking branch 'upstream/main' into find_dotnet_runtime
2 parents 8081622 + 6f1caaf commit 132553a

File tree

90 files changed

+986
-170
lines changed

Some content is hidden

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

90 files changed

+986
-170
lines changed

.vscode/launch.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"internalConsoleOptions": "openOnSessionStart"
6767
},
6868
{
69-
"name": "Launch Current File BasicRazorApp2_1 Integration Tests",
69+
"name": "[Razor] Run Current File Integration Test",
7070
"type": "extensionHost",
7171
"request": "launch",
7272
"runtimeExecutable": "${execPath}",
@@ -76,7 +76,7 @@
7676
// The profile can be found under /test/csharp-test-profile.
7777
"--profile",
7878
"csharp-test-profile",
79-
"${workspaceRoot}/test/razor/razorIntegrationTests/testAssets/BasicRazorApp2_1/.vscode/lsp_tools_host_BasicRazorApp2_1.code-workspace",
79+
"${workspaceRoot}/test/razor/razorIntegrationTests/testAssets/RazorApp/.vscode/RazorApp.code-workspace",
8080
"--extensionDevelopmentPath=${workspaceRoot}",
8181
"--extensionTestsPath=${workspaceRoot}/out/test/razor/razorIntegrationTests",
8282
"--log",
@@ -89,7 +89,7 @@
8989
"sourceMaps": true,
9090
"outFiles": ["${workspaceRoot}/dist/*.js", "${workspaceRoot}/out/test/**/*.js"],
9191
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
92-
"preLaunchTask": "buildDev",
92+
"preLaunchTask": "buildTest",
9393
"internalConsoleOptions": "openOnSessionStart"
9494
},
9595
{
@@ -204,7 +204,7 @@
204204
"id": "omnisharpAssetName",
205205
"description": "The name of the asset folder to use for the OmniSharp integration test.",
206206
"type": "pickString",
207-
"options": ["singleCsproj", "BasicRazorApp2_1", "slnWithCsproj", "slnFilterWithCsproj", "slnWithGenerator"]
207+
"options": ["singleCsproj", "RazorApp", "slnWithCsproj", "slnFilterWithCsproj", "slnWithGenerator"]
208208
},
209209
{
210210
"id": "gulpTaskName",

.vscode/tasks.json

Lines changed: 49 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,50 @@
11
{
2-
"version": "2.0.0",
3-
"presentation": {
4-
"echo": true,
5-
"reveal": "always",
6-
"focus": false,
7-
"panel": "shared"
8-
},
9-
"tasks": [
10-
{
11-
"label": "build",
12-
"command": "npm",
13-
"type": "shell",
14-
"args": [
15-
"run",
16-
"compile"
17-
],
18-
"group": {
19-
"kind": "build",
20-
"isDefault": true
21-
}
22-
},
23-
{
24-
"label": "buildDev",
25-
"command": "npm",
26-
"type": "shell",
27-
"args": [
28-
"run",
29-
"compileDev"
30-
],
31-
"group": {
32-
"kind": "build",
33-
"isDefault": true
34-
}
35-
},
36-
{
37-
"label": "test",
38-
"command": "echo",
39-
"group": {
40-
"kind": "test",
41-
"isDefault": true
42-
},
43-
"args": [
44-
"Run tests in VS Code by launching the debugger with the 'Launch Tests' configuration."
45-
]
46-
},
47-
]
48-
}
2+
"version": "2.0.0",
3+
"presentation": {
4+
"echo": true,
5+
"reveal": "always",
6+
"focus": false,
7+
"panel": "shared"
8+
},
9+
"tasks": [
10+
{
11+
"label": "build",
12+
"command": "npm",
13+
"type": "shell",
14+
"args": ["run", "compile"],
15+
"group": {
16+
"kind": "build",
17+
"isDefault": true
18+
}
19+
},
20+
{
21+
"label": "buildDev",
22+
"command": "npm",
23+
"type": "shell",
24+
"args": ["run", "compileDev"],
25+
"group": {
26+
"kind": "build",
27+
"isDefault": true
28+
}
29+
},
30+
{
31+
"label": "buildTest",
32+
"command": "npm",
33+
"type": "shell",
34+
"args": ["run", "compileTest"],
35+
"group": {
36+
"kind": "build",
37+
"isDefault": true
38+
}
39+
},
40+
{
41+
"label": "test",
42+
"command": "echo",
43+
"group": {
44+
"kind": "test",
45+
"isDefault": true
46+
},
47+
"args": ["Run tests in VS Code by launching the debugger with the 'Launch Tests' configuration."]
48+
}
49+
]
50+
}

CHANGELOG.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,41 @@
33
- Diagnostics related feature requests and improvements [#5951](https://github.com/dotnet/vscode-csharp/issues/5951)
44
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)
55

6+
# 2.57.x
7+
* Update Razor to 9.0.0-preview.24561.3 (PR: [#7748](https://github.com/dotnet/vscode-csharp/pull/7748))
8+
* Add feature flag to turn on the new Roslyn tokenizer (PR: [#11185](https://github.com/dotnet/razor/pull/11185))
9+
* Bump xamltools to 17.13.35513.19 (PR: [#7777](https://github.com/dotnet/vscode-csharp/pull/7777))
10+
611
# 2.56.x
12+
* Update Roslyn to 4.13.0-2.24561.3 (PR: [#7765](https://github.com/dotnet/vscode-csharp/pull/7765))
13+
* Update Razor to fix serialization issue loading projects (PR: [#75794](https://github.com/dotnet/roslyn/pull/75794))
14+
* Update Razor to 9.0.0-preview.24557.11 (PR: [#7756](https://github.com/dotnet/vscode-csharp/pull/7756))
15+
* Fix FUSE hook up in VS Code (#11175) (PR: [#11175](https://github.com/dotnet/razor/pull/11175))
16+
* Update VSTelemetryAPI version (#11181) (PR: [#11181](https://github.com/dotnet/razor/pull/11181))
17+
* Improvements for Assumed.Unreachable(...) (#11155) (PR: [#11155](https://github.com/dotnet/razor/pull/11155))
18+
* Better logging for named pipe (#11144) (PR: [#11144](https://github.com/dotnet/razor/pull/11144))
19+
* Fix code actions (and code actions integration tests) (#11141) (PR: [#11141](https://github.com/dotnet/razor/pull/11141))
20+
* Fix some things for extract component (#11137) (PR: [#11137](https://github.com/dotnet/razor/pull/11137))
21+
* More CodeAction moves in preparation for cohosting (#11135) (PR: [#11135](https://github.com/dotnet/razor/pull/11135))
22+
* Update Roslyn to 4.13.0-2.24557.5 (PR: [#7752](https://github.com/dotnet/vscode-csharp/pull/7752))
23+
* Fix telemetry property value (PR: [#75813](https://github.com/dotnet/roslyn/pull/75813))
24+
* Classify 'await' as a control keyword (PR: [#75782](https://github.com/dotnet/roslyn/pull/75782))
25+
* Allow renaming with overload resolution when only one overload exists(PR: [#75752](https://github.com/dotnet/roslyn/pull/75752))
26+
* Fix issue loading completion providers from `<Analyyzer>` project items (PR: [#75721](https://github.com/dotnet/roslyn/pull/75721))
27+
* Expose code actions to Razor cohosting (PR: [#75711](https://github.com/dotnet/roslyn/pull/75711))
28+
* Do not include source generated documents in related document results (PR: [#75718](https://github.com/dotnet/roslyn/pull/75718))
29+
* Fix issue where inlay hints could not be resolved if multiple editors opened side by side (PR: [#75709](https://github.com/dotnet/roslyn/pull/75709))
30+
* Reduce allocations in ProjectSystemProjectFactory.ConvertMetadataReferencesToProjectReferences_NoLock (PR: [#75646](https://github.com/dotnet/roslyn/pull/75646))
31+
* Reduce memory and CPU costs due to SegmentedList usage (PR: [#75661](https://github.com/dotnet/roslyn/pull/75661))
32+
* Bump xamltools to 17.13.35506.24 (PR: [#7740](https://github.com/dotnet/vscode-csharp/pull/7740))
33+
* Bump xamltools to 17.13.35507.225 (PR: [#7755](https://github.com/dotnet/vscode-csharp/pull/7755))
34+
* XAML IntelliseSense completions for Image.Source
735

836
# 2.55.x
37+
* Update Razor to 9.0.0-preview.24557.10 (PR: [#7757](https://github.com/dotnet/vscode-csharp/pull/7757))
38+
* Update VSTelemetryAPI version (#11181) (PR: [#11181](https://github.com/dotnet/razor/pull/11181))
39+
* Update Roslyn to 4.13.0-2.24557.6 (PR: [#7751](https://github.com/dotnet/vscode-csharp/pull/7751))
40+
* Fix issue telemetry reporting incorrect property value (PR: [#75817](https://github.com/dotnet/roslyn/pull/75817))
941
* Update Roslyn to 4.13.0-2.24531.3 (PR: [#7722](https://github.com/dotnet/vscode-csharp/pull/7722))
1042
* Proffer project system query service (PR: [#75682](https://github.com/dotnet/roslyn/pull/75682))
1143
* Ensure discards are initially soft selected in VSCode (PR: [#75655](https://github.com/dotnet/roslyn/pull/75655))

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ To debug integration tests
5959
1. Import the `csharp-test-profile.code-profile` in VSCode to setup a clean profile in which to run integration tests. This must be imported at least once to use the launch configurations (ensure the extensions are updated in the profile).
6060
2. Open any integration test file and <kbd>F5</kbd> launch with the correct launch configuration selected.
6161
- For integration tests inside `test/lsptoolshost`, use either `Launch Current File slnWithCsproj Integration Tests` or `[DevKit] Launch Current File slnWithCsproj Integration Tests` (to run tests using C# + C# Dev Kit)
62-
- For integration tests inside `test/razor`, use `Launch Current File BasicRazorApp2_1 Integration Tests`
62+
- For integration tests inside `test/razor`, use `[Razor] Run Current File Integration Test`
6363
- For integration tests inside `test/omnisharp`, use one of the `Omnisharp:` current file profiles
6464

6565
These will allow you to actually debug the test, but the 'Razor integration tests' configuration does not.

azure-pipelines-official.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ parameters:
2727
- auto
2828
default: auto
2929

30+
variables:
31+
defaultDotnetVersion: '8.0.403'
32+
3033
resources:
3134
repositories:
3235
- repository: 1ESPipelineTemplates
@@ -63,3 +66,4 @@ extends:
6366
isOfficial: true
6467
channel: ${{ parameters.channel }}
6568
signType: ${{ parameters.signType }}
69+
dotnetVersion: $(defaultDotnetVersion)

azure-pipelines.yml

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,32 @@ pr:
1616
- main
1717
paths:
1818
exclude:
19-
- ./*.md
19+
- ./*.md
20+
21+
# Run a scheduled build every night on main to run tests against insiders VSCode.
22+
# The variable testVSCodeVersion is set to insiders based on the build reason.
23+
schedules:
24+
- cron: "0 0 * * *"
25+
displayName: Daily Insiders Build
26+
branches:
27+
include:
28+
- main
29+
30+
variables:
31+
- name: defaultDotnetVersion
32+
value: '8.0.403'
33+
- name: testVSCodeVersion
34+
${{ if eq( variables['Build.Reason'], 'Schedule' ) }}:
35+
value: insiders
36+
${{ else }}:
37+
value: stable
2038

2139
stages:
2240
- template: azure-pipelines/build-all.yml
2341
parameters:
2442
isOfficial: false
2543
signType: test
44+
dotnetVersion: $(defaultDotnetVersion)
2645

2746
- stage:
2847
displayName: Test Linux (.NET 6)
@@ -31,7 +50,8 @@ stages:
3150
- template: azure-pipelines/test-matrix.yml
3251
parameters:
3352
# Prefer the dotnet from the container.
34-
installDotNet: false
53+
dotnetVersion: ''
54+
testVSCodeVersion: $(testVSCodeVersion)
3555
installAdditionalLinuxDependencies: true
3656
pool:
3757
name: NetCore-Public
@@ -45,7 +65,8 @@ stages:
4565
- template: azure-pipelines/test-matrix.yml
4666
parameters:
4767
# Prefer the dotnet from the container.
48-
installDotNet: false
68+
dotnetVersion: ''
69+
testVSCodeVersion: $(testVSCodeVersion)
4970
installAdditionalLinuxDependencies: true
5071
pool:
5172
name: NetCore-Public
@@ -58,7 +79,8 @@ stages:
5879
jobs:
5980
- template: azure-pipelines/test-matrix.yml
6081
parameters:
61-
installDotNet: true
82+
dotnetVersion: $(defaultDotnetVersion)
83+
testVSCodeVersion: $(testVSCodeVersion)
6284
pool:
6385
name: NetCore-Public
6486
demands: ImageOverride -equals 1es-windows-2022-open
@@ -69,7 +91,8 @@ stages:
6991
jobs:
7092
- template: azure-pipelines/test-matrix.yml
7193
parameters:
72-
installDotNet: true
94+
dotnetVersion: $(defaultDotnetVersion)
95+
testVSCodeVersion: $(testVSCodeVersion)
7396
pool:
7497
name: Azure Pipelines
7598
vmImage: macOS-13
@@ -90,3 +113,6 @@ stages:
90113
demands: ImageOverride -equals $(demandsName)
91114
steps:
92115
- template: azure-pipelines/test-omnisharp.yml
116+
parameters:
117+
dotnetVersion: $(defaultDotnetVersion)
118+
testVSCodeVersion: $(testVSCodeVersion)

azure-pipelines/build-all.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ parameters:
44
default: 'default'
55
- name: isOfficial
66
type: boolean
7+
- name: dotnetVersion
8+
type: string
79
- name: channel
810
values:
911
- release
@@ -96,6 +98,7 @@ stages:
9698
versionNumberOverride: ${{ parameters.versionNumberOverride }}
9799
platform: linux
98100
isOfficial: ${{ parameters.isOfficial }}
101+
dotnetVersion: ${{ parameters.dotnetVersion }}
99102
pool:
100103
${{ if eq(parameters.isOfficial, true) }}:
101104
name: netcore1espool-internal
@@ -109,6 +112,7 @@ stages:
109112
versionNumberOverride: ${{ parameters.versionNumberOverride }}
110113
platform: windows
111114
isOfficial: ${{ parameters.isOfficial }}
115+
dotnetVersion: ${{ parameters.dotnetVersion }}
112116
pool:
113117
${{ if eq(parameters.isOfficial, true) }}:
114118
name: netcore1espool-internal
@@ -122,6 +126,7 @@ stages:
122126
versionNumberOverride: ${{ parameters.versionNumberOverride }}
123127
platform: darwin
124128
isOfficial: ${{ parameters.isOfficial }}
129+
dotnetVersion: ${{ parameters.dotnetVersion }}
125130
pool:
126131
name: Azure Pipelines
127132
${{ if eq(parameters.isOfficial, true) }}:

azure-pipelines/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ parameters:
88
type: object
99
- name: isOfficial
1010
type: boolean
11+
- name: dotnetVersion
12+
type: string
1113

1214
jobs:
1315
- job: 'Build_${{ parameters.platform }}_vsixs'
@@ -27,6 +29,7 @@ jobs:
2729
- template: /azure-pipelines/prereqs.yml@self
2830
parameters:
2931
versionNumberOverride: ${{ parameters.versionNumberOverride }}
32+
dotnetVersion: ${{ parameters.dotnetVersion}}
3033

3134
- task: UsePythonVersion@0
3235
displayName: 'Use Python 3.11'

azure-pipelines/prereqs.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,8 @@ parameters:
22
- name: versionNumberOverride
33
type: string
44
default: 'default'
5-
- name: installDotNet
6-
type: boolean
7-
default: true
5+
- name: dotnetVersion
6+
type: string
87

98
steps:
109

@@ -15,11 +14,11 @@ steps:
1514

1615
# Some tests use predefined docker images with a specific version of .NET installed.
1716
# So we avoid installing .NET in those cases.
18-
- ${{ if eq(parameters.installDotNet, true) }}:
17+
- ${{ if parameters.dotnetVersion }}:
1918
- task: UseDotNet@2
2019
displayName: 'Install .NET SDK'
2120
inputs:
22-
version: '8.0.403'
21+
version: ${{ parameters.dotnetVersion }}
2322

2423
- script: dotnet --info
2524
displayName: Display dotnet info

azure-pipelines/test-matrix.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@ parameters:
44
- name: containerName
55
type: string
66
default: ''
7-
- name: installDotNet
8-
type: boolean
7+
- name: dotnetVersion
8+
type: string
99
- name: installAdditionalLinuxDependencies
1010
type: boolean
1111
default: false
12+
- name: testVSCodeVersion
13+
type: string
1214

1315
jobs:
1416
- job:
@@ -24,6 +26,7 @@ jobs:
2426
steps:
2527
- template: /azure-pipelines/test.yml@self
2628
parameters:
27-
installDotNet: true
29+
dotnetVersion: ${{ parameters.dotnetVersion }}
2830
installAdditionalLinuxDependencies: true
29-
npmCommand: $(npmCommand)
31+
npmCommand: $(npmCommand)
32+
testVSCodeVersion: ${{ parameters.testVSCodeVersion }}

0 commit comments

Comments
 (0)