Skip to content

Commit 05beba2

Browse files
authored
Merge pull request #7635 from dotnet/merge/prerelease-to-release
[automated] Merge branch 'prerelease' => 'release'
2 parents 6868c3c + 780d6a8 commit 05beba2

File tree

519 files changed

+8126
-4119
lines changed

Some content is hidden

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

519 files changed

+8126
-4119
lines changed

.config/guardian/.gdnbaselines

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
11
{
2+
"hydrated": false,
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 does not contain identifying data. It is safe to check into your repo. To hydrate this file with identifying data, run `guardian hydrate --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",
18-
"line": 1,
1919
"memberOf": [
2020
"default"
2121
],
22-
"tool": "credscan",
23-
"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"
22+
"createdDate": "2024-09-09 19:35:36Z"
2723
}
2824
}
29-
}
25+
}

.devcontainer/Dockerfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.192.0/containers/dotnet/.devcontainer/base.Dockerfile
2+
3+
FROM mcr.microsoft.com/dotnet/sdk:8.0
4+
5+
# Set up machine requirements to build the repo
6+
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
7+
&& apt-get -y install --no-install-recommends curl git gnupg \
8+
&& curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \
9+
&& apt-get install -y nodejs

.devcontainer/devcontainer.json

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
2+
// https://github.com/microsoft/vscode-dev-containers/tree/v0.140.1/containers/dotnetcore
3+
{
4+
"name": "vscode-csharp",
5+
"build": {
6+
"dockerfile": "Dockerfile",
7+
// Set the context to the workspace folder to allow us to copy files from it.
8+
"context": ".."
9+
},
10+
"customizations": {
11+
"vscode": {
12+
"settings": {
13+
"files.associations": {
14+
"*.csproj": "msbuild",
15+
"*.fsproj": "msbuild",
16+
"*.globalconfig": "ini",
17+
"*.manifest": "xml",
18+
"*.nuspec": "xml",
19+
"*.pkgdef": "ini",
20+
"*.projitems": "msbuild",
21+
"*.props": "msbuild",
22+
"*.resx": "xml",
23+
"*.rsp": "Powershell",
24+
"*.ruleset": "xml",
25+
"*.settings": "xml",
26+
"*.shproj": "msbuild",
27+
"*.slnf": "json",
28+
"*.targets": "msbuild",
29+
"*.vbproj": "msbuild",
30+
"*.vsixmanifest": "xml",
31+
"*.vstemplate": "xml",
32+
"*.xlf": "xml",
33+
"*.yml": "azure-pipelines"
34+
},
35+
// ms-vscode.powershell settings
36+
"powershell.promptToUpdatePowerShell": false,
37+
"powershell.integratedConsole.showOnStartup": false,
38+
"powershell.startAutomatically": false,
39+
// ms-azure-devops.azure-pipelines settings
40+
"azure-pipelines.customSchemaFile": ".vscode/dnceng-schema.json"
41+
},
42+
"extensions": [
43+
"ms-dotnettools.csharp",
44+
"ms-dotnettools.csdevkit",
45+
"EditorConfig.EditorConfig",
46+
"ms-vscode.powershell",
47+
"tintoy.msbuild-project-tools",
48+
"ms-azure-devops.azure-pipelines",
49+
"dbaeumer.vscode-eslint",
50+
"esbenp.prettier-vscode",
51+
"orta.vscode-jest"
52+
]
53+
}
54+
},
55+
"postCreateCommand": "npm ci && npx gulp installDependencies"
56+
}

.devcontainer/devinit.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"run": [
3+
{
4+
"tool": "require-dotnetcoresdk"
5+
}
6+
]
7+
}

.eslintrc.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ module.exports = {
44
},
55
extends: [
66
"eslint:recommended",
7-
"plugin:@typescript-eslint/recommended"
7+
"plugin:@typescript-eslint/recommended",
88
],
99
parser: "@typescript-eslint/parser",
1010
parserOptions: {
@@ -21,7 +21,7 @@ module.exports = {
2121
rules: {
2222
"@typescript-eslint/no-explicit-any": "off",
2323
"@typescript-eslint/no-non-null-assertion": "off",
24-
"@typescript-eslint/semi": ["error", "always"],
24+
"@typescript-eslint/no-require-imports": "off",
2525
// Allow unused vars if prefixed by _
2626
"@typescript-eslint/no-unused-vars": [
2727
"warn",
@@ -33,6 +33,7 @@ module.exports = {
3333
],
3434
"@typescript-eslint/no-namespace": "off",
3535
"@typescript-eslint/promise-function-async": "error",
36+
"@typescript-eslint/no-floating-promises": "error",
3637
"prefer-promise-reject-errors": "error",
3738
"curly": "error",
3839
"prettier/prettier": [ "error", { "endOfLine": "auto" } ],

.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/dneng-schema.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

.vscode/launch.json

Lines changed: 53 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-test-profile.
23+
"--profile",
24+
"csharp-test-profile",
25+
"${workspaceRoot}/test/lsptoolshost/integrationTests/testAssets/slnWithCsproj/.vscode/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}",
@@ -34,18 +36,45 @@
3436
"preLaunchTask": "buildDev",
3537
"internalConsoleOptions": "openOnSessionStart"
3638
},
39+
{
40+
"name": "[DevKit] Launch Current File slnWithCsproj Integration Tests",
41+
"type": "extensionHost",
42+
"request": "launch",
43+
"runtimeExecutable": "${execPath}",
44+
"args": [
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-test-profile.
48+
"--profile",
49+
"csharp-test-profile",
50+
"${workspaceRoot}/test/lsptoolshost/integrationTests/testAssets/slnWithCsproj/.vscode/devkit_slnWithCsproj.code-workspace",
51+
"--extensionDevelopmentPath=${workspaceRoot}",
52+
"--extensionTestsPath=${workspaceRoot}/out/test/lsptoolshost/integrationTests"
53+
],
54+
"env": {
55+
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
56+
"TEST_FILE_FILTER": "${file}",
57+
},
58+
"sourceMaps": true,
59+
"outFiles": ["${workspaceRoot}/dist/*.js", "${workspaceRoot}/out/test/**/*.js"],
60+
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
61+
"preLaunchTask": "buildDev",
62+
"internalConsoleOptions": "openOnSessionStart"
63+
},
3764
{
3865
"name": "Launch Current File BasicRazorApp2_1 Integration Tests",
3966
"type": "extensionHost",
4067
"request": "launch",
4168
"runtimeExecutable": "${execPath}",
4269
"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",
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-test-profile.
73+
"--profile",
74+
"csharp-test-profile",
75+
"${workspaceRoot}/test/razor/razorIntegrationTests/testAssets/BasicRazorApp2_1/.vscode/lsp_tools_host_BasicRazorApp2_1.code-workspace",
4776
"--extensionDevelopmentPath=${workspaceRoot}",
48-
"--extensionTestsPath=${workspaceRoot}/out/test/razorIntegrationTests"
77+
"--extensionTestsPath=${workspaceRoot}/out/test/razor/razorIntegrationTests"
4978
],
5079
"env": {
5180
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
@@ -63,12 +92,14 @@
6392
"request": "launch",
6493
"runtimeExecutable": "${execPath}",
6594
"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",
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-test-profile.
98+
"--profile",
99+
"csharp-test-profile",
100+
"${workspaceRoot}/test/omnisharp/omnisharpIntegrationTests/testAssets/${input:omnisharpAssetName}/.vscode/omnisharp_${input:omnisharpAssetName}.code-workspace",
70101
"--extensionDevelopmentPath=${workspaceRoot}",
71-
"--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests"
102+
"--extensionTestsPath=${workspaceRoot}/out/test/omnisharp/omnisharpIntegrationTests"
72103
],
73104
"env": {
74105
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",
@@ -86,12 +117,14 @@
86117
"request": "launch",
87118
"runtimeExecutable": "${execPath}",
88119
"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",
120+
// Launch VSCode using a specific profile to ensure that user settings are not used.
121+
// This profile must be imported into vscode before running this launch configuration.
122+
// The profile can be found under /test/csharp-test-profile.
123+
"--profile",
124+
"csharp-test-profile",
125+
"${workspaceRoot}/test/omnisharp/omnisharpIntegrationTests/testAssets/${input:omnisharpAssetName}/.vscode/omnisharp_lsp_${input:omnisharpAssetName}.code-workspace",
93126
"--extensionDevelopmentPath=${workspaceRoot}",
94-
"--extensionTestsPath=${workspaceRoot}/out/omnisharptest/omnisharpIntegrationTests"
127+
"--extensionTestsPath=${workspaceRoot}/out/test/omnisharp/omnisharpIntegrationTests"
95128
],
96129
"env": {
97130
"CODE_EXTENSIONS_PATH": "${workspaceRoot}",

.vscodeignore

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313
.vscode/**
1414
.vscode-test/**
1515
coverage/**
16+
docs/**
1617
out/**
17-
server/**
18+
msbuild/**
1819
src/**
1920
tasks/**
2021
test/**
21-
omnisharptest/**
2222
__mocks__/**
2323
jest.config.ts
2424
baseJestConfig.ts
@@ -34,6 +34,9 @@ azure-pipelines
3434
.editorconfig
3535
.gitignore
3636
CODEOWNERS
37+
Directory.Build.props
38+
global.json
39+
NuGet.config
3740
gulpfile.ts
3841
!install.Lock
3942
ISSUE_TEMPLATE

0 commit comments

Comments
 (0)