Skip to content

Commit 15cdec6

Browse files
authored
Merge pull request #7566 from dotnet/merge/main-to-prerelease
[automated] Merge branch 'main' => 'prerelease'
2 parents 4650f56 + 6ef7897 commit 15cdec6

File tree

457 files changed

+1939
-1013
lines changed

Some content is hidden

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

457 files changed

+1939
-1013
lines changed

.config/guardian/.gdnbaselines

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
{
2+
"hydrated": true,
23
"properties": {
3-
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines"
4+
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines",
5+
"hydrationStatus": "This file contains identifying data. It is **NOT** safe to check into your repo. To dehydrate this file, run `guardian dehydrate --help` and follow the guidance."
46
},
57
"version": "1.0.0",
68
"baselines": {
79
"default": {
810
"name": "default",
9-
"createdDate": "2024-03-18 18:32:58Z",
10-
"lastUpdatedDate": "2024-03-18 18:32:58Z"
11+
"createdDate": "2024-09-09 19:35:36Z",
12+
"lastUpdatedDate": "2024-09-09 19:35:36Z"
1113
}
1214
},
1315
"results": {
14-
"d6ffb0614846153cf3cc5936d0444ed9eda6fe6854febb4c8ea59243c120b223": {
15-
"signature": "d6ffb0614846153cf3cc5936d0444ed9eda6fe6854febb4c8ea59243c120b223",
16+
"26445e3e484940d2d58c2ffc32ab3895fca4b1589d66e2f2dee2fa01f2c479fb": {
17+
"signature": "26445e3e484940d2d58c2ffc32ab3895fca4b1589d66e2f2dee2fa01f2c479fb",
1618
"alternativeSignatures": [],
17-
"target": "omnisharptest/omnisharpUnitTests/testAssets/private.pem",
19+
"target": "test/omnisharp/omnisharpUnitTests/testAssets/private.pem",
1820
"line": 1,
1921
"memberOf": [
2022
"default"
2123
],
2224
"tool": "credscan",
2325
"ruleId": "CSCAN-GENERAL0020",
24-
"createdDate": "2024-06-27 21:30:23Z",
25-
"expirationDate": "2024-12-14 21:44:58Z",
26-
"justification": "This error is baselined with an expiration date of 180 days from 2024-06-27 21:44:58Z"
26+
"createdDate": "2024-09-09 19:35:36Z"
2727
}
2828
}
29-
}
29+
}

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ out
1414
.razortelemetry/
1515
.razorDevKit/
1616
.vscode-test/
17+
msbuild/signing/signJs/*.log
18+
msbuild/signing/signVsix/*.log
1719
dist/
1820
*.razor.json
1921

.vscode/launch.json

Lines changed: 28 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@
1717
"request": "launch",
1818
"runtimeExecutable": "${execPath}",
1919
"args": [
20-
// Create a temp profile that has no extensions / user settings.
21-
// This allows us to only have the C# extension + the dotnet runtime installer extension dependency.
22-
"--profile-temp",
23-
"${workspaceRoot}/test/integrationTests/testAssets/slnWithCsproj/.vscode/lsp_tools_host_slnWithCsproj.code-workspace",
20+
// Launch VSCode using a specific profile to ensure that user settings are not used.
21+
// This profile must be imported into vscode before running this launch configuration.
22+
// The profile can be found under /test/csharp-standalone-profile.
23+
"--profile",
24+
"csharp-standalone-profile",
25+
"${workspaceRoot}/test/lsptoolshost/integrationTests/testAssets/slnWithCsproj/.vscode/lsp_tools_host_slnWithCsproj.code-workspace",
2426
"--extensionDevelopmentPath=${workspaceRoot}",
25-
"--extensionTestsPath=${workspaceRoot}/out/test/integrationTests"
27+
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests"
2628
],
2729
"env": {
2830
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
@@ -40,12 +42,14 @@
4042
"request": "launch",
4143
"runtimeExecutable": "${execPath}",
4244
"args": [
43-
// Create a temp profile that has no extensions / user settings.
44-
// This allows us to only have the C# extension + the dotnet runtime installer extension dependency.
45-
"--profile-temp",
46-
"${workspaceRoot}/test/razorIntegrationTests/testAssets/BasicRazorApp2_1/.vscode/lsp_tools_host_BasicRazorApp2_1.code-workspace",
45+
// Launch VSCode using a specific profile to ensure that user settings are not used.
46+
// This profile must be imported into vscode before running this launch configuration.
47+
// The profile can be found under /test/csharp-standalone-profile.
48+
"--profile",
49+
"csharp-standalone-profile",
50+
"${workspaceRoot}/test/razor/razorIntegrationTests/testAssets/BasicRazorApp2_1/.vscode/lsp_tools_host_BasicRazorApp2_1.code-workspace",
4751
"--extensionDevelopmentPath=${workspaceRoot}",
48-
"--extensionTestsPath=${workspaceRoot}/out/test/razorIntegrationTests"
52+
"--extensionTestsPath=${workspaceRoot}/out/test/razor/razorIntegrationTests"
4953
],
5054
"env": {
5155
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
@@ -63,12 +67,14 @@
6367
"request": "launch",
6468
"runtimeExecutable": "${execPath}",
6569
"args": [
66-
// Create a temp profile that has no extensions / user settings.
67-
// This allows us to only have the C# extension + the dotnet runtime installer extension dependency.
68-
"--profile-temp",
69-
"${workspaceRoot}/omnisharptest/omnisharpIntegrationTests/testAssets/${input:omnisharpAssetName}/.vscode/omnisharp_${input:omnisharpAssetName}.code-workspace",
70+
// Launch VSCode using a specific profile to ensure that user settings are not used.
71+
// This profile must be imported into vscode before running this launch configuration.
72+
// The profile can be found under /test/csharp-standalone-profile.
73+
"--profile",
74+
"csharp-standalone-profile",
75+
"${workspaceRoot}/test/omnisharp/omnisharpIntegrationTests/testAssets/${input:omnisharpAssetName}/.vscode/omnisharp_${input:omnisharpAssetName}.code-workspace",
7076
"--extensionDevelopmentPath=${workspaceRoot}",
71-
"--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests"
77+
"--extensionTestsPath=${workspaceRoot}/out/test/omnisharp/omnisharpIntegrationTests"
7278
],
7379
"env": {
7480
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
@@ -86,12 +92,14 @@
8692
"request": "launch",
8793
"runtimeExecutable": "${execPath}",
8894
"args": [
89-
// Create a temp profile that has no extensions / user settings.
90-
// This allows us to only have the C# extension + the dotnet runtime installer extension dependency.
91-
"--profile-temp",
92-
"${workspaceRoot}/omnisharptest/omnisharpIntegrationTests/testAssets/${input:omnisharpAssetName}/.vscode/omnisharp_lsp_${input:omnisharpAssetName}.code-workspace",
95+
// Launch VSCode using a specific profile to ensure that user settings are not used.
96+
// This profile must be imported into vscode before running this launch configuration.
97+
// The profile can be found under /test/csharp-standalone-profile.
98+
"--profile",
99+
"csharp-standalone-profile",
100+
"${workspaceRoot}/test/omnisharp/omnisharpIntegrationTests/testAssets/${input:omnisharpAssetName}/.vscode/omnisharp_lsp_${input:omnisharpAssetName}.code-workspace",
93101
"--extensionDevelopmentPath=${workspaceRoot}",
94-
"--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests"
102+
"--extensionTestsPath=${workspaceRoot}/out/test/omnisharp/omnisharpIntegrationTests"
95103
],
96104
"env": {
97105
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",

.vscodeignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
.vscode-test/**
1515
coverage/**
1616
out/**
17-
server/**
17+
msbuild/**
1818
src/**
1919
tasks/**
2020
test/**
21-
omnisharptest/**
2221
__mocks__/**
2322
jest.config.ts
2423
baseJestConfig.ts
@@ -34,6 +33,9 @@ azure-pipelines
3433
.editorconfig
3534
.gitignore
3635
CODEOWNERS
36+
Directory.Build.props
37+
global.json
38+
NuGet.config
3739
gulpfile.ts
3840
!install.Lock
3941
ISSUE_TEMPLATE

CHANGELOG.md

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

66
# Latest
7+
* Add signing support to VSIX (PR: [#7490](https://github.com/dotnet/vscode-csharp/pull/7490))
8+
* Update Debugger to v2.47.0 (PR: [#7547](https://github.com/dotnet/vscode-csharp/pull/7547))
9+
* Adds in support for .NET 9 Break for Async User-Unhandled
10+
* Do not inject 'debugConsoleVerbosity' for 'coreclr' (PR: [#7546](https://github.com/dotnet/vscode-csharp/pull/7546))
11+
* Do not auto surround `<`, `[` and `(` in XAML. (PR: [#7540](https://github.com/dotnet/vscode-csharp/pull/7540))
12+
* Fix resolve fix all code action (PR: [#7536](https://github.com/dotnet/vscode-csharp/pull/7536))
13+
* Update Roslyn to 4.12.0-3.24463.6 (PR: [#7564](https://github.com/dotnet/vscode-csharp/pull/7564))
14+
* Fix order modifiers code action not showing up in vscode (PR: [#75092](https://github.com/dotnet/roslyn/pull/75092))
15+
* Log unit test output (PR: [#75084](https://github.com/dotnet/roslyn/pull/75084))
16+
* Fix issue where closing sourcelink document threw if not opened (PR: [#75046](https://github.com/dotnet/roslyn/pull/75046))
17+
* Expose sourcelink option to VSCode (PR: [#75044](https://github.com/dotnet/roslyn/pull/75044))
18+
* Report source generator failures in Hot Reload diagnostics (PR: [#75029](https://github.com/dotnet/roslyn/pull/75029))
19+
* Fix issue navigating from source link documents (PR: [#75030](https://github.com/dotnet/roslyn/pull/75030))
20+
* Bump xamltools to 17.12.35311.18 (PR: [#7549](https://github.com/dotnet/vscode-csharp/pull/7549))
21+
* XAML color swatches
22+
23+
# 2.47.x
724
* Update Roslyn to 4.12.0-3.24456.2 (PR: [#7525](https://github.com/dotnet/vscode-csharp/pull/7525))
825
* Avoid BuildHost crash in Mono due to missing types (PR: [#74994](https://github.com/dotnet/roslyn/pull/74994))
926
* Turn off word suggestions in XAML completions (PR: [#7516](https://github.com/dotnet/vscode-csharp/pull/7516))
@@ -23,6 +40,13 @@
2340
* Support component rename from an end tag (#10762) (PR: [#10762](https://github.com/dotnet/razor/pull/10762))
2441
* Bump xamltools to 17.12.35230.10 (PR: [#7493](https://github.com/dotnet/vscode-csharp/pull/7493))
2542

43+
# 2.45.25
44+
* Bump Roslyn to 4.12.0-2.24461.7 (PR: [#7544](https://github.com/dotnet/vscode-csharp/pull/7544))
45+
* Fix crash when closing source link documents (PR: [#75047](https://github.com/dotnet/roslyn/pull/75047))
46+
* Add option to disable source link (PR: [#75047](https://github.com/dotnet/roslyn/pull/75047))
47+
* Fix issue navigating from source link documents (PR: [#75033](https://github.com/dotnet/roslyn/pull/75033))
48+
* Fix exception applying fix all code action (PR: [#7537](https://github.com/dotnet/vscode-csharp/pull/7537))
49+
2650
# 2.45.17
2751
* Fix check for rzls being present (PR: [#7462](https://github.com/dotnet/vscode-csharp/pull/7462))
2852
* Bump Razor to 9.0.0-preview.24418.1 (PR: [#7456](https://github.com/dotnet/vscode-csharp/pull/7456))
@@ -42,6 +66,7 @@
4266
* Update Debugger to v2.43.0 (PR: [#7420](https://github.com/dotnet/vscode-csharp/pull/7420))
4367
* Bump xamltools to 17.12.35223.16 (PR: [#7464](https://github.com/dotnet/vscode-csharp/pull/7464))
4468
* Added XAML Hot Reload support for x:FactoryMethod and x:Arguments
69+
* Bump xamltools to 17.12.35304.30 (PR: [#7507](https://github.com/dotnet/vscode-csharp/pull/7508))
4570

4671
# 2.44.19
4772
* Bump Roslyn to 4.12.0-2.24416.3 (PR: [#7448](https://github.com/dotnet/vscode-csharp/pull/7448))

CONTRIBUTING.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,12 +51,16 @@ After completing the build steps:
5151

5252
#### Testing
5353

54-
To run tests:
54+
To run all tests, execute `npm run test`.
5555

56-
1. Execute `npm run test` or press <kbd>F5</kbd> in VS Code with the "Launch Tests" debug configuration selected.
57-
2. For integration tests, select either of the two 'current file' integration tests (one for roslyn and one for razor), from the drop-down and press <kbd>F5</kbd> to start debugging:
58-
- For Roslyn Server: `Launch Current File slnWithCsproj Integration Tests`
59-
- For Razor Server: `Launch Current File BasicRazorApp2_1 Integration Tests`
56+
To debug unit tests locally, press <kbd>F5</kbd> in VS Code with the "Launch Tests" debug configuration selected.
57+
58+
To debug integration tests
59+
1. Import the `csharp-standalone-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.
60+
2. Open any integration test file and <kbd>F5</kbd> launch with the correct launch configuration selected.
61+
- For integration tests inside `test/lsptoolshost`, use `Launch Current File slnWithCsproj Integration Tests`
62+
- For integration tests inside `test/razor`, use `Launch Current File BasicRazorApp2_1 Integration Tests`
63+
- For integration tests inside `test/omnisharp`, use one of the `Omnisharp:` current file profiles
6064

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

Directory.Build.props

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
<Project>
22
<PropertyGroup>
3+
<RepoRoot>$(MSBuildThisFileDirectory)</RepoRoot>
34
<!--
45
Defines the lowest supported target framework for the extension.
56
Used by server download / integration tests to ensure they run when only this SDK is installed.
File renamed without changes.

__mocks__/vscode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*--------------------------------------------------------------------------------------------*/
55

66
import * as vscodeAdapter from '../src/vscodeAdapter';
7-
import { getFakeVsCode } from '../test/unitTests/fakes';
7+
import { getFakeVsCode } from '../test/fakes';
88

99
// This module creates a manual mock for the vscode module for running in unit tests.
1010
// Jest will automatically pick this up as it is in the __mocks__ directory next to node_modules.

azure-pipelines-official.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@ parameters:
1919
- prerelease
2020
- auto
2121
default: auto
22+
# Allows the sign type to be set manually for a specific build
23+
- name: signType
24+
values:
25+
- test
26+
- real
27+
- auto
28+
default: auto
2229

2330
resources:
2431
repositories:
@@ -51,3 +58,4 @@ extends:
5158
versionNumberOverride: ${{ parameters.versionNumberOverride }}
5259
isOfficial: true
5360
channel: ${{ parameters.channel }}
61+
signType: ${{ parameters.signType }}

0 commit comments

Comments
 (0)