Skip to content

Commit 88c61f3

Browse files
authored
Merge pull request #5835 from dotnet/main
Merge main into prerelease
2 parents 43174c6 + 6fa1cb2 commit 88c61f3

23 files changed

+752
-477
lines changed

.github/workflows/ci.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/release-ci.yml

Lines changed: 0 additions & 128 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Known Issues in 1.25.1
1+
## Known Issues in 1.25.8
22

33
* For Mono-based development (e.g. Unity) that requires full .NET framework, you need to set `"omnisharp.useModernNet": false`.
44
* After selecting a solution filter (*.slnf) from the project selector, the solution's name will be displayed in the status bar instead of the filter's.
@@ -12,6 +12,15 @@
1212
* Renaming symbol fails within a file that had recently been renamed without saving changes.
1313
* As a workaround, make an edit within the file before using Rename Symbol.
1414

15+
## 1.25.9
16+
* Readme updates (PR: [#5705](https://github.com/OmniSharp/omnisharp-vscode/pull/5672))
17+
18+
## 1.25.8
19+
* Update Razor to 7.0.0-preview.23258.1 (PR: [#5672](https://github.com/OmniSharp/omnisharp-vscode/pull/5672))
20+
* Fix issue with Razor attribute hover and Go to Definition (PR: [#8653](https://github.com/dotnet/razor/pull/8653))
21+
* Fix issue with Razor formatting (PR: [#8669](https://github.com/dotnet/razor/pull/8669))
22+
* Combine test compile step into normal compile (PR: [#5666](https://github.com/OmniSharp/omnisharp-vscode/pull/5666))
23+
1524
## 1.25.7
1625
* Update Razor to 7.0.0-preview.23224.3 (PR: [#5660](https://github.com/OmniSharp/omnisharp-vscode/pull/5660))
1726
* Fix issue with Razor diagnostics (PR: [#8622](https://github.com/dotnet/razor/pull/8622))
@@ -1158,7 +1167,7 @@ The 1.8 release makes a major change to how the debugger works under the hood. T
11581167
Changes:
11591168

11601169
* The module load messages in the output window are now more detailed and hopefully less confusing. ([#837](https://github.com/OmniSharp/omnisharp-vscode/issues/837))
1161-
* Programs can now be launched into VS Code's integrated terminal. ([documentation](https://github.com/OmniSharp/omnisharp-vscode/blob/master/debugger.md#console-terminal-window))
1170+
* Programs can now be launched into VS Code's integrated terminal. ([documentation](https://github.com/dotnet/vscode-csharp/blob/main/debugger.md#console-terminal-window))
11621171
* VS Code recently introduced [column breakpoint support](https://code.visualstudio.com/updates/v1_10#_column-breakpoints) and they are now enabled for C#.
11631172
* React to the VS Code change to use `${command:` instead of `${command.`. ([#1275](https://github.com/OmniSharp/omnisharp-vscode/issues/1275))
11641173
* Fix a problem with browser launch support that could lead to debugger session's being aborted when the browser is started. ([#1274](https://github.com/OmniSharp/omnisharp-vscode/issues/1274))

CODEOWNERS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,3 @@
1-
* @microsoft/roslyn-ide
1+
* @dotnet/roslyn-ide
2+
/src/coreclr-debug/ @dotnet/ide-debugger-contracts
3+
/src/razor/ @dotnet/razor-tooling

CONTRIBUTING.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
First install:
66

7-
* Node.js ([v16.16 LTS](https://nodejs.org/en/blog/release/v16.16.0) is recommended. Later versions will fail to build).
7+
* Node.js ([v16.16 LTS](https://nodejs.org/en/blog/release/v16.16.0) is recommended).
88
* Npm (The version shipped with node is fine, for example for v16.16.0 it would be 8.19.2)
99
* .NET 7.0 SDK (dotnet should be on your path)
1010

@@ -15,9 +15,6 @@ To run and develop the extension do the following:
1515
* Run `npm i`
1616
* Run `npm i -g gulp`
1717
* Run `gulp installDependencies` (this will download the various dependencies as specified by the version in the [package.json](package.json))
18-
* A common error you may run into is `NU1301: Unable to load the service index for source https://devdiv.pkgs.visualstudio.com/_packaging/VS/nuget/v3/index.json`.
19-
To resolve this error, try running `dotnet restore --interactive server/ /p:MicrosoftCodeAnalysisLanguageServerVersion=version_number` with `version_number` replaced with the version number found in [package.json](package.json) inside the `defaults` section under the `roslyn` key.
20-
If this does not work, install [azure artifacts nuget credential provider](https://github.com/microsoft/artifacts-credprovider#installation-on-windows) then rerun the previous command.
2118
* Open in Visual Studio Code (`code .`)
2219
* _Optional:_ run `npm run watch`, make code changes
2320
* Press <kbd>F5</kbd> to debug
@@ -26,7 +23,7 @@ To **test** do the following: `npm run test` or <kbd>F5</kbd> in VS Code with th
2623

2724
### Using a locally developed Roslyn server
2825

29-
https://dnceng.visualstudio.com/internal/_git/dotnet-roslyn?version=GBfeatures%2Flsp_tools_host contains the server implementation. Follow the instructions there to build the repo as normal. Once built, the server executable will be located in the build output directory, typically
26+
https://github.com/dotnet/roslyn contains the server implementation. Follow the instructions there to build the repo as normal. Once built, the server executable will be located in the build output directory, typically
3027

3128
`$roslynRepoRoot/artifacts/bin/Microsoft.CodeAnalysis.LanguageServer/Debug/net7.0/Microsoft.CodeAnalysis.LanguageServer.exe`
3229

@@ -41,7 +38,8 @@ VSIXs can be created using the gulp command `gulp vsix:release:package`. This w
4138
## Updating the Roslyn server version
4239

4340
To update the version of the roslyn server used by the extension do the following:
44-
1. Find the the Roslyn signed build you want from [here](https://dnceng.visualstudio.com/internal/_build?definitionId=327&branchFilter=246637%2C246637). Typically the latest successful build is fine.
45-
2. In the official build stage, look for the `Publish Language Server Executables` step. In there you will see it publishing the `Microsoft.CodeAnalysis.LanguageServer` package with some version, e.g. `4.6.0-3.23158.4`. Take note of that version number.
41+
1. Find the the Roslyn signed build you want from [here](https://dnceng.visualstudio.com/internal/_build?definitionId=327&_a=summary). Typically the latest successful build of main is fine.
42+
2. In the official build stage, look for the `Publish Assets` step. In there you will see it publishing the `Microsoft.CodeAnalysis.LanguageServer` package with some version, e.g. `4.6.0-3.23158.4`. Take note of that version number.
4643
3. In the [package.json](package.json) inside the `defaults` section update the `roslyn` key to point to the version number you found above in step 2.
47-
4. Build and test the change (make sure to run `gulp installDependencies` to get the new version!). If everything looks good, submit a PR.
44+
4. Build and test the change (make sure to run `gulp installDependencies` to get the new version!). If everything looks good, submit a PR.
45+
* Adding new package versions might require authentication, run with the `--interactive` flag to login. You may need to install [azure artifacts nuget credential provider](https://github.com/microsoft/artifacts-credprovider#installation-on-windows) to run interactive authentication.

azure-pipelines-official.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
trigger:
2+
branches:
3+
include:
4+
- main
5+
- prerelease
6+
pr: none
7+
8+
variables:
9+
- name: prereleaseFlag
10+
value: '--prerelease'
11+
12+
stages:
13+
- stage: Build
14+
dependsOn: []
15+
jobs:
16+
- job: Build
17+
steps:
18+
- template: azure-pipelines/build.yml
19+
parameters:
20+
prereleaseFlag: $(prereleaseFlag)
21+
pool:
22+
name: NetCore1ESPool-Internal
23+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64
24+
25+
# TODO: add compliance, signing.

azure-pipelines.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ trigger:
44
include:
55
- feature/*
66
- prerelease
7-
- release
7+
- main
88

99
pr:
1010
- feature/*
1111
- prerelease
12-
- release
12+
- main
1313

1414
variables:
1515
- name: prereleaseFlag
@@ -24,6 +24,9 @@ stages:
2424
- template: azure-pipelines/build.yml
2525
parameters:
2626
prereleaseFlag: $(prereleaseFlag)
27+
pool:
28+
name: NetCore-Public
29+
demands: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
2730

2831
- stage: Test
2932
displayName: Test
@@ -33,10 +36,9 @@ stages:
3336
strategy:
3437
matrix:
3538
linux:
36-
vmImage: ubuntu-latest
39+
demandsName: ImageOverride -equals Build.Ubuntu.1804.Amd64.Open
3740
pool:
38-
vmImage: $(vmImage)
41+
name: NetCore-Public
42+
demands: $(demandsName)
3943
steps:
4044
- template: azure-pipelines/test.yml
41-
42-
# TODO: add compliance stage

azure-pipelines/green-insertion.yml

Lines changed: 21 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ schedules:
99
- feature/lsp_tools_host
1010

1111
parameters:
12-
- name: InsertTargetBranch
13-
displayName: Target branch
14-
type: string
15-
default: main
12+
- name: InsertTargetBranch
13+
displayName: Target branch
14+
type: string
15+
default: main
1616

1717
resources:
1818
pipelines:
@@ -87,16 +87,23 @@ jobs:
8787
$vsix = $_.FullName
8888
$npmName = "@microsoft/csharp-vscode-extension.$os-$arch"
8989
90-
Write-Host "##[group]Translating $os-$arch VSIX to NPM package $npmName"
91-
$packageStagingDir = "$(Agent.TempDirectory)/csharp/$os-$arch"
92-
New-Item -Type Directory -Path $packageStagingDir | Set-Location
93-
Spawn-Tool '7z' ('x', '-y', $vsix)
94-
Set-Content -Path package.json -Value "{`n `"description`": `"C# for Visual Studio Code ($os-$arch) as NPM package for insertion into the C# Dev Kit extension for testing.`"`n}"
95-
Spawn-Tool 'npm' ('pkg','set',"name=$npmName","version=$version",'publishConfig.registry=https://pkgs.dev.azure.com/devdiv/DevDiv/_packaging/vs-green/npm/registry/','repository.type=git','repository.url=https://devdiv.visualstudio.com/DevDiv/_git/vscode-csharp-next',"repository.commit=$(resources.pipeline.BlueCI.sourceCommit)")
96-
Get-Content -Path package.json
97-
Spawn-Tool 'npm' @('publish','--userconfig','$(Pipeline.Workspace)/.npmrc')
98-
$InsertNpmDependencies += "$npmName@$version "
99-
Write-Host "##[endgroup]"
90+
$packageNameAndVersion = "$npmName@$version"
91+
$InsertNpmDependencies += "$packageNameAndVersion "
92+
& npm view $packageNameAndVersion --userconfig $(Pipeline.Workspace)/.npmrc
93+
# If the command succeeded it means the package is already published, so we need to skip it.
94+
if ($LASTEXITCODE -eq 0) {
95+
Write-Host "$packageNameAndVersion is already published, skipping."
96+
} else {
97+
Write-Host "##[group]Translating $os-$arch VSIX to NPM package $npmName"
98+
$packageStagingDir = "$(Agent.TempDirectory)/csharp/$os-$arch"
99+
New-Item -Type Directory -Path $packageStagingDir | Set-Location
100+
Spawn-Tool '7z' ('x', '-y', $vsix)
101+
Set-Content -Path package.json -Value "{`n `"description`": `"C# for Visual Studio Code ($os-$arch) as NPM package for insertion into the C# Dev Kit extension for testing.`"`n}"
102+
Spawn-Tool 'npm' ('pkg','set',"name=$npmName","version=$version",'publishConfig.registry=https://pkgs.dev.azure.com/devdiv/DevDiv/_packaging/vs-green/npm/registry/','repository.type=git','repository.url=https://devdiv.visualstudio.com/DevDiv/_git/vscode-csharp-next',"repository.commit=$(resources.pipeline.BlueCI.sourceCommit)")
103+
Get-Content -Path package.json
104+
Spawn-Tool 'npm' @('publish','--userconfig','$(Pipeline.Workspace)/.npmrc')
105+
Write-Host "##[endgroup]"
106+
}
100107
}
101108
}
102109

azure-pipelines/prereqs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,15 @@ steps:
99
versionSpec: '16.x'
1010

1111
- task: UseDotNet@2
12+
displayName: 'Install .NET Core SDKs'
13+
inputs:
14+
version: '7.0.100'
1215

1316
# Set the CI build number to the VSIX version we're creating from this build.
1417
- script: |
1518
dotnet tool install --tool-path $(Agent.BuildDirectory) nbgv
1619
$(Agent.BuildDirectory)/nbgv cloud
20+
displayName: Install nbgv
1721

1822
- script: |
1923
npm ci

0 commit comments

Comments
 (0)