Skip to content

Commit d913122

Browse files
authored
[automated] Merge branch 'main' => 'prerelease' (#8037)
2 parents 1cacd06 + 63fd896 commit d913122

Some content is hidden

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

47 files changed

+1476
-1136
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ module.exports = {
5858
"out/",
5959
"dist/",
6060
"wallaby.js",
61-
"webpack.config.js",
6261
".eslintrc.js",
62+
"esbuild.js",
6363
"**/*.d.ts"
6464
],
6565
};

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ If the `CSharp: Report an issue` command doesn't appear, make sure that you have
2020
VS Code version:
2121
C# Extension version:
2222

23-
## OmniSharp log
23+
## C# logs
24+
C# output window contents:
2425

26+
See [this page](https://github.com/dotnet/vscode-csharp/blob/main/SUPPORT.md#collecting-general-logs) for collecting more detailed logs
2527

2628
## Steps to reproduce
2729

.github/workflows/backport.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Backport PR to branch
2+
on:
3+
issue_comment:
4+
types: [created]
5+
schedule:
6+
# once a day at 13:00 UTC to cleanup old runs
7+
- cron: '0 13 * * *'
8+
9+
permissions:
10+
contents: write
11+
issues: write
12+
pull-requests: write
13+
actions: write
14+
15+
jobs:
16+
backport:
17+
if: ${{ contains(github.event.comment.body, '/backport to') || github.event_name == 'schedule' }}
18+
uses: dotnet/arcade/.github/workflows/backport-base.yml@main
19+
with:
20+
pr_description_template: |
21+
Backport of #%source_pr_number% to %target_branch%
22+
23+
/cc %cc_users%
24+
25+
## Customer Impact
26+
27+
## Regression
28+
29+
- [ ] Yes
30+
- [ ] No
31+
32+
[If yes, specify when the regression was introduced. Provide the PR or commit if known.]
33+
34+
## Testing
35+
36+
[How was the fix verified? How was the issue missed previously? What tests were added?]
37+
38+
## Risk
39+
40+
[High/Medium/Low. Justify the indication by mentioning how risks were measured and addressed.]

.vscode/launch.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"args": ["--extensionDevelopmentPath=${workspaceRoot}"],
1010
"sourceMaps": true,
1111
"outFiles": ["${workspaceRoot}/dist/*.js"],
12-
"preLaunchTask": "buildDev"
12+
"preLaunchTask": "packageDev"
1313
},
1414
{
1515
"name": "[Roslyn] Run Current File Integration Tests",
@@ -35,7 +35,7 @@
3535
"sourceMaps": true,
3636
"outFiles": ["${workspaceRoot}/dist/*.js", "${workspaceRoot}/out/test/**/*.js"],
3737
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
38-
"preLaunchTask": "buildDev",
38+
"preLaunchTask": "packageDev",
3939
"internalConsoleOptions": "openOnSessionStart"
4040
},
4141
{
@@ -62,7 +62,7 @@
6262
"sourceMaps": true,
6363
"outFiles": ["${workspaceRoot}/dist/*.js", "${workspaceRoot}/out/test/**/*.js"],
6464
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
65-
"preLaunchTask": "buildDev",
65+
"preLaunchTask": "packageDev",
6666
"internalConsoleOptions": "openOnSessionStart"
6767
},
6868
{
@@ -89,7 +89,7 @@
8989
"sourceMaps": true,
9090
"outFiles": ["${workspaceRoot}/dist/*.js", "${workspaceRoot}/out/test/**/*.js"],
9191
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
92-
"preLaunchTask": "buildTest",
92+
"preLaunchTask": "packageDev",
9393
"internalConsoleOptions": "openOnSessionStart"
9494
},
9595
{
@@ -115,7 +115,7 @@
115115
"sourceMaps": true,
116116
"outFiles": ["${workspaceRoot}/dist/*.js", "${workspaceRoot}/out/test/**/*.js"],
117117
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
118-
"preLaunchTask": "buildTest"
118+
"preLaunchTask": "packageDev"
119119
},
120120
{
121121
"name": "[O# LSP] Run Current File Integration Tests",
@@ -140,7 +140,7 @@
140140
"sourceMaps": true,
141141
"outFiles": ["${workspaceRoot}/dist/*.js", "${workspaceRoot}/out/test/**/*.js"],
142142
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
143-
"preLaunchTask": "buildTest"
143+
"preLaunchTask": "packageDev"
144144
},
145145
{
146146
"type": "node",
@@ -195,7 +195,7 @@
195195
"name": "Razor integration tests",
196196
"preLaunchTask": "build",
197197
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
198-
"args": ["test:razorintegration"],
198+
"args": ["test:integration:razor"],
199199
"cwd": "${workspaceFolder}"
200200
}
201201
],

.vscode/tasks.json

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,20 @@
2828
}
2929
},
3030
{
31-
"label": "buildTest",
31+
"label": "package",
3232
"command": "npm",
3333
"type": "shell",
34-
"args": ["run", "compileTest"],
34+
"args": ["run", "package"],
35+
"group": {
36+
"kind": "build",
37+
"isDefault": true
38+
}
39+
},
40+
{
41+
"label": "packageDev",
42+
"command": "npm",
43+
"type": "shell",
44+
"args": ["run", "packageDev"],
3545
"group": {
3646
"kind": "build",
3747
"isDefault": true

.vscodeignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
!.razoromnisharp/**
1010
.rpt2_cache/**
1111
.config/**
12+
.devcontainer/**
1213
.github/**
1314
.vscode/**
1415
.vscode-test/**
@@ -51,8 +52,7 @@ package.json
5152
tsconfig.json
5253
version.json
5354
wallaby.js
54-
webpack.config.js
55-
55+
esbuild.js
5656
!src/razor/language-configuration.json
5757
!src/razor/syntaxes/*
5858

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
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.68.x
7+
* Update Razor to 9.0.0-preview.25125.9 (PR: [#8027](https://github.com/dotnet/vscode-csharp/pull/8027))
8+
* Don't send invalid ranges for diagnostics if they do not map (#11555) (PR: [#11555](https://github.com/dotnet/razor/pull/11555))
9+
* Fix file path service, and integration tests (#11556) (PR: [#11556](https://github.com/dotnet/razor/pull/11556))
10+
* Add ParserOptions and CodeGenerationOptions properties to RazorCodeDocument and rationalize options configuration (#11526) (PR: [#11526](https://github.com/dotnet/razor/pull/11526))
11+
* Fix parsing of quotes in attribute names (#11543) (PR: [#11543](https://github.com/dotnet/razor/pull/11543))
12+
* Bump xamlTools to 17.14.35828.13 (PR: [#8032](https://github.com/dotnet/vscode-csharp/pull/8032))
13+
614
# 2.67.x
715
* Update Razor to 9.0.0-preview.25125.9 (PR: [#8027](https://github.com/dotnet/vscode-csharp/pull/8027))
816
* Don't send invalid ranges for diagnostics if they do not map (#11555) (PR: [#11555](https://github.com/dotnet/razor/pull/11555))

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ Follow these steps to build, run, and test the repository:
3636
#### Building
3737

3838
1. Run `npm install -g vsts-npm-auth`, then run `vsts-npm-auth -config .npmrc` - This command will configure your credentials for the next command.
39+
a. If you have already authenticated before, but the token expired, you may need to run `vsts-npm-auth -config .npmrc -f` instead.
3940
2. Run `npm i` - This command installs the project dependencies.
4041
3. Run `npm i -g gulp` - This command installs Gulp globally.
4142
4. Run `gulp installDependencies` - This command downloads the various dependencies as specified by the version in the [package.json](package.json) file.
@@ -51,7 +52,8 @@ After completing the build steps:
5152

5253
#### Testing
5354

54-
To run all tests, execute `npm run test`.
55+
To run all unit tests, execute `npm run test:unit`.
56+
To run all integration tests execute `npm run test:integration`
5557

5658
To debug unit tests locally, press <kbd>F5</kbd> in VS Code with the "Launch Tests" debug configuration selected.
5759

azure-pipelines/prereqs.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,3 @@ steps:
4040
npm ci
4141
npm i -g gulp
4242
displayName: 'Install dependencies'
43-
44-
- script: npm run compile
45-
displayName: 'Compile'

azure-pipelines/profiling.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,4 +56,5 @@ extends:
5656
parameters:
5757
dotnetVersion: $(defaultDotnetVersion)
5858
npmCommand: profiling
59-
testVSCodeVersion: stable
59+
testVSCodeVersion: stable
60+
isIntegration: true

0 commit comments

Comments
 (0)