Skip to content
Merged
Show file tree
Hide file tree
Changes from 39 commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
14c6c24
Update main version
dibarbet Jan 11, 2025
59c9c25
[automated] Merge branch 'prerelease' => 'release' (#7919)
dibarbet Jan 11, 2025
fa3afea
Update main version (#7918)
dibarbet Jan 11, 2025
8765b60
[automated] Merge branch 'release' => 'main' (#7922)
dibarbet Jan 13, 2025
083028c
[automated] Merge branch 'prerelease' => 'main' (#7920)
dibarbet Jan 13, 2025
81dade5
Updated for https://dev.azure.com/dnceng/7ea9116e-9fac-403d-b258-b31f…
Jan 10, 2025
57779a7
Updated for https://dev.azure.com/dnceng/7ea9116e-9fac-403d-b258-b31f…
Jan 10, 2025
225323b
Use 1ES relaeseJob in release.yml
JoeRobich Jan 13, 2025
80a46e9
Publish VSIXs to Packages artifact
JoeRobich Jan 14, 2025
e1d2deb
Fixup
JoeRobich Jan 14, 2025
2bdac7f
Gdn baseline (#7923)
dibarbet Jan 14, 2025
9212eeb
Use 1ES releaseJob in release.yml (#7924)
JoeRobich Jan 14, 2025
9e5c75c
Bump Razor
davidwengier Jan 15, 2025
0d76e4c
Remove old feature flag, and add new one
davidwengier Jan 15, 2025
1429685
Bump Roslyn and update changelog
davidwengier Jan 16, 2025
e185471
Bump Razor and Roslyn and tweak Razor feature flags (#7927)
davidwengier Jan 16, 2025
8bb86ec
Localization result of e1854718959d0887958f47de26ea34328f7c7d3f.
dotnet-bot Jan 16, 2025
01d8f6d
Add razor definition integration tests (#7869)
Jan 16, 2025
361fcb6
Localization result based on e1854718959d0887958f47de26ea34328f7c7d3f…
JoeRobich Jan 16, 2025
72b0688
TextMate bug: recognize codeblocks with curly braces in switch statem…
Jan 16, 2025
d4e97ca
Do weekly bump of xamlTools
Jan 17, 2025
4d3d506
fix changelog
dibarbet Jan 17, 2025
c934a22
Do weekly bump of xamlTools (#7932)
dibarbet Jan 17, 2025
0777b6d
Localization result of c934a224ae555129d1b0b3389d519ad1eeb57cb2.
dotnet-bot Jan 17, 2025
8042cb7
Add the option for Roslyn LSP to support organize imports
JoeRobich Jan 17, 2025
2c09c08
Localization result based on c934a224ae555129d1b0b3389d519ad1eeb57cb2…
JoeRobich Jan 18, 2025
1910596
Add integration tests for organize import on format
JoeRobich Jan 18, 2025
a8644a7
Update Roslyn to 4.14.0-1.25072.1
JoeRobich Jan 22, 2025
ede011f
Update format tests to restart LSP after setting options
JoeRobich Jan 22, 2025
d92af24
Fix server-side option name for test
JoeRobich Jan 22, 2025
c164df1
Merge branch 'main' into dev/jorobich/format-organize
JoeRobich Jan 22, 2025
fc5c696
Update changelog
JoeRobich Jan 22, 2025
b6e4065
Add the option for Roslyn LSP to support organize imports (#7935)
JoeRobich Jan 23, 2025
2d4e745
Localization result of b6e40653445bf6e58e687f938561bf513aa3d0b0.
dotnet-bot Jan 23, 2025
9cf2dc6
Localization result based on b6e40653445bf6e58e687f938561bf513aa3d0b0…
JoeRobich Jan 23, 2025
b60c359
Bump xamlTools
Jan 24, 2025
f8d1077
mend
Jan 24, 2025
1cb5c3e
Fix indentation
JoeRobich Jan 24, 2025
580f288
Do weekly bump of xamlTools (#7941)
JoeRobich Jan 24, 2025
6980e37
Update Roslyn to 4.14.0-1.25074.7
JoeRobich Jan 25, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
100 changes: 50 additions & 50 deletions .config/1espt/PipelineAutobaseliningConfig.yml
Original file line number Diff line number Diff line change
@@ -1,52 +1,52 @@
## DO NOT MODIFY THIS FILE MANUALLY. This is part of auto-baselining from 1ES Pipeline Templates. Go to [https://aka.ms/1espt-autobaselining] for more details.

pipelines:
1275:
retail:
source:
credscan:
lastModifiedDate: 2024-03-18
eslint:
lastModifiedDate: 2024-03-18
armory:
lastModifiedDate: 2024-03-18
psscriptanalyzer:
lastModifiedDate: 2024-04-19
binary:
credscan:
lastModifiedDate: 2024-03-18
binskim:
lastModifiedDate: 2024-03-18
spotbugs:
lastModifiedDate: 2024-04-19
1264:
retail:
source:
credscan:
lastModifiedDate: 2024-03-19
eslint:
lastModifiedDate: 2024-03-19
psscriptanalyzer:
lastModifiedDate: 2024-03-19
armory:
lastModifiedDate: 2024-03-19
policheck:
lastModifiedDate: 2024-06-27
binary:
credscan:
lastModifiedDate: 2024-03-19
binskim:
lastModifiedDate: 2024-03-19
spotbugs:
lastModifiedDate: 2024-03-19
1271:
retail:
source:
credscan:
lastModifiedDate: 2024-03-27
eslint:
lastModifiedDate: 2024-03-27
psscriptanalyzer:
lastModifiedDate: 2024-03-27
armory:
lastModifiedDate: 2024-03-27
pipelines:
1275:
retail:
source:
credscan:
lastModifiedDate: 2024-03-18
eslint:
lastModifiedDate: 2024-03-18
armory:
lastModifiedDate: 2024-03-18
psscriptanalyzer:
lastModifiedDate: 2024-04-19
binary:
credscan:
lastModifiedDate: 2024-03-18
binskim:
lastModifiedDate: 2025-01-10
spotbugs:
lastModifiedDate: 2024-04-19
1264:
retail:
source:
credscan:
lastModifiedDate: 2024-03-19
eslint:
lastModifiedDate: 2024-03-19
psscriptanalyzer:
lastModifiedDate: 2024-03-19
armory:
lastModifiedDate: 2024-03-19
policheck:
lastModifiedDate: 2024-06-27
binary:
credscan:
lastModifiedDate: 2024-03-19
binskim:
lastModifiedDate: 2025-01-10
spotbugs:
lastModifiedDate: 2024-03-19
1271:
retail:
source:
credscan:
lastModifiedDate: 2024-03-27
eslint:
lastModifiedDate: 2024-03-27
psscriptanalyzer:
lastModifiedDate: 2024-03-27
armory:
lastModifiedDate: 2024-03-27
48 changes: 23 additions & 25 deletions .config/guardian/.gdnbaselines
Original file line number Diff line number Diff line change
@@ -1,25 +1,23 @@
{
"hydrated": false,
"properties": {
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines",
"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."
},
"version": "1.0.0",
"baselines": {
"default": {
"name": "default",
"createdDate": "2024-09-09 19:35:36Z",
"lastUpdatedDate": "2024-09-09 19:35:36Z"
}
},
"results": {
"26445e3e484940d2d58c2ffc32ab3895fca4b1589d66e2f2dee2fa01f2c479fb": {
"signature": "26445e3e484940d2d58c2ffc32ab3895fca4b1589d66e2f2dee2fa01f2c479fb",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-09-09 19:35:36Z"
}
}
}
{
"properties": {
"helpUri": "https://eng.ms/docs/microsoft-security/security/azure-security/cloudai-security-fundamentals-engineering/security-integration/guardian-wiki/microsoft-guardian/general/baselines"
},
"version": "1.0.0",
"baselines": {
"default": {
"name": "default",
"createdDate": "2024-09-09 19:35:36Z",
"lastUpdatedDate": "2024-09-09 19:35:36Z"
}
},
"results": {
"26445e3e484940d2d58c2ffc32ab3895fca4b1589d66e2f2dee2fa01f2c479fb": {
"signature": "26445e3e484940d2d58c2ffc32ab3895fca4b1589d66e2f2dee2fa01f2c479fb",
"alternativeSignatures": [],
"memberOf": [
"default"
],
"createdDate": "2024-09-09 19:35:36Z"
}
}
}
12 changes: 6 additions & 6 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"preLaunchTask": "buildDev"
},
{
"name": "Launch Current File slnWithCsproj Integration Tests",
"name": "[Roslyn] Run Current File Integration Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
Expand All @@ -39,7 +39,7 @@
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "[DevKit] Launch Current File slnWithCsproj Integration Tests",
"name": "[DevKit] Run Current File Integration Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
Expand Down Expand Up @@ -93,7 +93,7 @@
"internalConsoleOptions": "openOnSessionStart"
},
{
"name": "Omnisharp: Launch Current File Integration Tests",
"name": "[O#] Run Current File Integration Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
Expand All @@ -115,10 +115,10 @@
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/dist/*.js", "${workspaceRoot}/out/test/**/*.js"],
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
"preLaunchTask": "buildDev"
"preLaunchTask": "buildTest"
},
{
"name": "Omnisharp: Launch Current File Integration Tests [LSP]",
"name": "[O# LSP] Run Current File Integration Tests",
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
Expand All @@ -140,7 +140,7 @@
"sourceMaps": true,
"outFiles": ["${workspaceRoot}/dist/*.js", "${workspaceRoot}/out/test/**/*.js"],
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
"preLaunchTask": "buildDev"
"preLaunchTask": "buildTest"
},
{
"type": "node",
Expand Down
50 changes: 50 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,56 @@
- Diagnostics related feature requests and improvements [#5951](https://github.com/dotnet/vscode-csharp/issues/5951)
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)

# 2.63.x
* Bump xamlTools to 17.14.35723.260 (PR: [#7932](https://github.com/dotnet/vscode-csharp/pull/7941))
* Update Roslyn to 4.14.0-1.25072.1 (PR: [#7935](https://github.com/dotnet/vscode-csharp/pull/7935))
* Remove explicit recursion in the json detection analyzer (#76764) (PR: [#76764](https://github.com/dotnet/roslyn/pull/76764))
* Consider silly cyclic assignment in scoped variance (#76261) (PR: [#76261](https://github.com/dotnet/roslyn/pull/76261))
* Fix ordering of 'params' vs 'scoped' in metadata as source (#76745) (PR: [#76745](https://github.com/dotnet/roslyn/pull/76745))
* Change partial keyword recommender to better handle partial member syntax (#76744) (PR: [#76744](https://github.com/dotnet/roslyn/pull/76744))
* Ensure unconverted elements are converted when on LHS (#76675) (PR: [#76675](https://github.com/dotnet/roslyn/pull/76675))
* Proffer CssVisualDiagnosticsService brokered service from C# DevKit to C# Extension (#76737) (PR: [#76737](https://github.com/dotnet/roslyn/pull/76737))
* Disable extract class/interface to a new file when unsupported by the workspace. (#76717) (PR: [#76717](https://github.com/dotnet/roslyn/pull/76717))
* Fix issue parsing regex category (#76735) (PR: [#76735](https://github.com/dotnet/roslyn/pull/76735))
* Properly simplify pattern when converting to pattern matching (#76734) (PR: [#76734](https://github.com/dotnet/roslyn/pull/76734))
* Do not lift type parameters in extract method declared within the selected region (#76724) (PR: [#76724](https://github.com/dotnet/roslyn/pull/76724))
* Always use .OriginalDefinition uniformly in the unread-members analyzer (#76698) (PR: [#76698](https://github.com/dotnet/roslyn/pull/76698))
* Adding checks for mutable structs. (#76711) (PR: [#76711](https://github.com/dotnet/roslyn/pull/76711))
* Stash and restore original culture in CultureNormalizer (#76713) (PR: [#76713](https://github.com/dotnet/roslyn/pull/76713))
* Add option for choosing stdio as the LSP communication channel (#76437) (PR: [#76437](https://github.com/dotnet/roslyn/pull/76437))
* Support organizing imports as part of LSP document formatting (PR: [#76806](https://github.com/dotnet/roslyn/pull/76806))
* Improve collapsing of members followed by pp directives (PR: [#76837](https://github.com/dotnet/roslyn/pull/76837))
* Load razor assembly directly: (PR: [#76808](https://github.com/dotnet/roslyn/pull/76808))
* Special case inlining a collection expr into a spreaded element (PR: [#76823](https://github.com/dotnet/roslyn/pull/76823))
* Do not offer to simplify interpolations when using formattable strings (PR: [#76830](https://github.com/dotnet/roslyn/pull/76830))
* Add support for outlining switch expressions (PR: [#76827](https://github.com/dotnet/roslyn/pull/76827))
* Do no offer to make fields readonly if they are a struct and are written to through an indexer (PR: [#76825](https://github.com/dotnet/roslyn/pull/76825))
* Do not offer to inline a decl into a switch arm when it is referenced outside of it. (PR: [#76822](https://github.com/dotnet/roslyn/pull/76822))
* Fix gen-method generating into top level. (PR: [#76821](https://github.com/dotnet/roslyn/pull/76821))
* Fix 'invert if' refactor to properly enclose #region/#endregion blocks (PR: [#74145](https://github.com/dotnet/roslyn/pull/74145))
* Do not offer use-conditional when it would cause name collisions (PR: [#76807](https://github.com/dotnet/roslyn/pull/76807))
* Remove unnecessary cast in one conditional expression branch, based on the other branch and outer conversion. (PR: [#76798](https://github.com/dotnet/roslyn/pull/76798))
* Convert a return value to return type even if it has errors (PR: [#76699](https://github.com/dotnet/roslyn/pull/76699))
* Add EmbeddedAttribute API for source generators (PR: [#76583](https://github.com/dotnet/roslyn/pull/76583))
* Fix formatting when doing a 'fix all' with 'use auto prop' (PR: [#76791](https://github.com/dotnet/roslyn/pull/76791))
* Initialize naming style preferences when language is added to workspace (PR: [#76795](https://github.com/dotnet/roslyn/pull/76795))
* Support target type completion tags in object creation contexts (PR: [#76786](https://github.com/dotnet/roslyn/pull/76786))
* Fix 'use conditional expression' where it was causing a null-ref warning. (PR: [#76792](https://github.com/dotnet/roslyn/pull/76792))
* Keep comments on an 'else' keyword when converting to conditional expressions. (PR: [#76789](https://github.com/dotnet/roslyn/pull/76789))
* VB: Don't capture conditional access receiver into a temp local during lowering. (PR: [#76712](https://github.com/dotnet/roslyn/pull/76712))
* Update regex parsing to latest .Net core parsing (and diagnostic messages). (PR: [#76269](https://github.com/dotnet/roslyn/pull/76269))
* Forbid pointer types as instance fields in records (PR: [#76588](https://github.com/dotnet/roslyn/pull/76588))
* Field-backed properties: report diagnostic for variable named field declared in accessor (PR: [#76671](https://github.com/dotnet/roslyn/pull/76671))
* Update 'use nameof instead of typeof' to support generic types (PR: [#76780](https://github.com/dotnet/roslyn/pull/76780))
* Add feature to convert from an explicitly typed lambda to an implicitly typed one. (PR: [#76770](https://github.com/dotnet/roslyn/pull/76770))
* Support modifiers with simple lambda parameters. (PR: [#75400](https://github.com/dotnet/roslyn/pull/75400))
* Update Razor to 9.0.0-preview.25064.4 (PR: [#7927](https://github.com/dotnet/vscode-csharp/pull/7927))
* Wire up the UseRoslynTokenizer feature properly (#11386) (PR: [#11386](https://github.com/dotnet/razor/pull/11386))
* New Razor document formatting engine (#11364) (PR: [#11364](https://github.com/dotnet/razor/pull/11364))
* Fix a couple of exceptions encountered when formatting documents with preprocessor directives (#11373) (PR: [#11373](https://github.com/dotnet/razor/pull/11373))
* Allow RazorProjectEngine.Process to be cancelled (#11334) (PR: [#11334](https://github.com/dotnet/razor/pull/11334))
* Further refactoring of Razor tooling project system (#11320) (PR: [#11320](https://github.com/dotnet/razor/pull/11320))

# 2.62.x
* Update Roslyn to 4.14.0-1.25060.2 (PR: [#7916](https://github.com/dotnet/vscode-csharp/pull/7916))
* Support Extracting method with complex flow control cosntructs in them. (PR: [#76686](https://github.com/dotnet/roslyn/pull/76686))
Expand Down
16 changes: 11 additions & 5 deletions azure-pipelines/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,26 +67,32 @@ jobs:
env:
SignType: $(signType)

- task: CopyFiles@2
inputs:
SourceFolder: '$(Build.SourcesDirectory)/vsix'
TargetFolder: '$(Build.SourcesDirectory)/Packages/VSIX_$(channel)'

- ${{ if eq(parameters.isOfficial, true) }}:
- task: 1ES.PublishBuildArtifacts@1
condition: succeeded()
displayName: 'Publish VSIXs'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/vsix'
ArtifactName: 'VSIX_$(channel)'
PathtoPublish: '$(Build.SourcesDirectory)/Packages'
ArtifactName: 'Packages'
- task: 1ES.PublishBuildArtifacts@1
condition: succeededOrFailed()
displayName: 'Publish Signing Logs'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/out/logs'
ArtifactName: '${{ parameters.platform }} Signing Logs'

- ${{ else }}:
- task: PublishBuildArtifacts@1
condition: succeeded()
displayName: 'Publish VSIXs'
inputs:
PathtoPublish: '$(Build.SourcesDirectory)/vsix'
ArtifactName: 'VSIX_$(channel)'
PathtoPublish: '$(Build.SourcesDirectory)/Packages'
ArtifactName: 'Packages'

- script: npm run test:artifacts
displayName: 'Run artifacts tests'
displayName: 'Run artifacts tests'
18 changes: 8 additions & 10 deletions azure-pipelines/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,20 +39,18 @@ extends:
name: netcore1espool-internal
image: 1es-ubuntu-2204
os: linux
templateContext:
type: releaseJob
isProduction: true
inputs:
- input: pipelineArtifact
pipeline: officialBuildCI
artifactName: Packages
destinationPath: $(Pipeline.Workspace)
strategy:
runOnce:
deploy:
steps:
- download: 'none'
- task: DownloadPipelineArtifact@2
displayName: '📦 Download artifacts from build pipeline.'
inputs:
buildType: 'specific'
project: 'internal'
definition: 1264
buildVersionToDownload: 'specific'
buildId: '$(resources.pipeline.officialBuildCI.runID)'
branchName: '$(resources.pipeline.officialBuildCI.sourceBranch)'
- template: /azure-pipelines/install-node.yml@self
- pwsh: |
npm install --global @vscode/vsce
Expand Down
28 changes: 13 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@
}
},
"defaults": {
"roslyn": "4.14.0-1.25060.2",
"roslyn": "4.14.0-1.25072.1",
"omniSharp": "1.39.12",
"razor": "9.0.0-preview.25052.3",
"razor": "9.0.0-preview.25064.4",
"razorOmnisharp": "7.0.0-preview.23363.1",
"xamlTools": "17.13.35709.178"
"xamlTools": "17.14.35723.260"
},
"main": "./dist/extension",
"l10n": "./l10n",
Expand Down Expand Up @@ -739,6 +739,11 @@
"default": true,
"description": "%configuration.dotnet.autoInsert.enableAutoInsert%"
},
"dotnet.formatting.organizeImportsOnFormat": {
"type": "boolean",
"default": false,
"description": "%configuration.dotnet.formatting.organizeImportsOnFormat%"
},
"dotnet.typeMembers.memberInsertionLocation": {
"type": "string",
"enum": [
Expand Down Expand Up @@ -1513,17 +1518,15 @@
"description": "%configuration.razor.languageServer.forceRuntimeCodeGeneration%",
"order": 90
},
"razor.languageServer.useRoslynTokenizer": {
"type": "boolean",
"scope": "machine-overridable",
"default": false,
"markdownDescription": "%configuration.razor.languageServer.useRoslynTokenizer%",
"order": 90
},
"razor.languageServer.suppressLspErrorToasts": {
"type": "boolean",
"default": true,
"description": "%configuration.razor.languageServer.suppressLspErrorToasts%"
},
"razor.languageServer.useNewFormattingEngine": {
"type": "boolean",
"default": true,
"description": "%configuration.razor.languageServer.useNewFormattingEngine%"
}
}
},
Expand Down Expand Up @@ -1698,11 +1701,6 @@
"default": false,
"description": "%configuration.omnisharp.enableLspDriver%"
},
"omnisharp.organizeImportsOnFormat": {
"type": "boolean",
"default": false,
"description": "%configuration.omnisharp.organizeImportsOnFormat%"
},
"omnisharp.enableAsyncCompletion": {
"type": "boolean",
"default": false,
Expand Down
Loading
Loading