Skip to content

Commit d05e7e9

Browse files
authored
Merge branch 'main' into u/beccam/dedupeDiagnostics
2 parents aaf5545 + e336406 commit d05e7e9

File tree

300 files changed

+3938
-3659
lines changed

Some content is hidden

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

300 files changed

+3938
-3659
lines changed

.vscode/launch.json

Lines changed: 60 additions & 197 deletions
Large diffs are not rendered by default.

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
},
1717
"csharp.suppressDotnetRestoreNotification": true,
1818
"typescript.tsdk": "./node_modules/typescript/lib",
19-
"mocha.enabled": true,
2019
"omnisharp.autoStart": false,
2120
"editor.formatOnSave": false,
2221
"eslint.lintTask.enable": true,

.vscodeignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ CODEOWNERS
3535
gulpfile.ts
3636
!install.Lock
3737
ISSUE_TEMPLATE
38-
.mocharc.jsonc
3938
!README.md
4039
!CHANGELOG.md
4140
*.md

CHANGELOG.md

Lines changed: 68 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,73 @@
11
## Known Issues
22

33
- Diagnostics related feature requests and improvements [#5951](https://github.com/dotnet/vscode-csharp/issues/5951)
4-
- [O# Parity] FixAll support for code fixes and refactorings [#5735](https://github.com/dotnet/vscode-csharp/issues/5735)
4+
- [O# Parity] Nested code code action support for code fixes and refactorings [#5735](https://github.com/dotnet/vscode-csharp/issues/5735)
55
- [O# Parity] Nuget restore [#5725](https://github.com/dotnet/vscode-csharp/issues/5725)
6-
- [O# Parity] Projects running on Mono may not load correctly [#5721](https://github.com/dotnet/vscode-csharp/issues/5721)
7-
- [O# Parity] Run and debug tests in context [#5719](https://github.com/dotnet/vscode-csharp/issues/5719)
86
- Debug from .csproj and .sln [#5876](https://github.com/dotnet/vscode-csharp/issues/5876)
97

108
## Latest
11-
* Update Roslyn version to 4.9.0-1.23478.7 (PR: [#6449](https://github.com/dotnet/vscode-csharp/pull/6449))
9+
* Update Roslyn to 4.9.0-1.23519.13 (PR: [#<>](https://github.com/dotnet/vscode-csharp/pull/<>))
10+
* Filter completion list only with text before cursor (PR: [#70448](https://github.com/dotnet/roslyn/pull/70448))
11+
* Bump MSBuild.StructuredLogger package version (PR: [#70157](https://github.com/dotnet/roslyn/pull/70157))
12+
* Fix issues launching the server when a .NET 7 preview 7 runtime is installed (PR: [#70446](https://github.com/dotnet/roslyn/pull/70446))
13+
* Ensure LSP didChange processing matches specification. (PR: [#70407](https://github.com/dotnet/roslyn/pull/70407))
14+
* Update Razor to 7.0.0-preview.23516.2 (PR: [#6550](https://github.com/dotnet/vscode-csharp/pull/6550))
15+
* Make sure correct info is passed in code action resolve (PR: [razor#9420](https://github.com/dotnet/razor/pull/9420))
16+
17+
## 2.7.25
18+
* Update Razor to 7.0.0-preview.23513.5 (PR: [#6551](https://github.com/dotnet/vscode-csharp/pull/6551))
19+
* Reduce noisy errors when viewing git diff (PR: [razor#9407](https://github.com/dotnet/razor/pull/9407))
20+
* Update Roslyn to 4.9.0-1.23513.7 (PR: [#6548](https://github.com/dotnet/vscode-csharp/pull/6548))
21+
* Fix extraneous error when connecting to devkit (PR: [#70298](https://github.com/dotnet/roslyn/pull/70298))
22+
* Add support for using Mono to load .NET Framework projects on macOS and Linux (PR: [#70263](https://github.com/dotnet/roslyn/pull/70263))
23+
* Fix source generator and analyzer output not being recognized if you didn't have C# Dev Kit installed (PR: [#70331](https://github.com/dotnet/roslyn/pull/70331))
24+
* Hide debug console when using `"console": "integratedTerminal"` (PR: [#6523](https://github.com/dotnet/vscode-csharp/pull/6523))
25+
* Fix dotnet path resolution when using snap installed packages (PR: [#6515](https://github.com/dotnet/vscode-csharp/pull/6515))
26+
* Track debugging sessions until csdevkit is initialized (PR: [#6480](https://github.com/dotnet/vscode-csharp/pull/6480))
27+
* Update vsdbg and vsdbg-ui to 2.0.4 (PR: [#6517](https://github.com/dotnet/vscode-csharp/pull/6517))
28+
* Debugger: better handle long strings ([#6496](https://github.com/dotnet/vscode-csharp/issues/6496)). Strings are truncated if they are longer than 1024 UTF-16 characters, but the full value up to 5,242,880 characters or 10 megabytes, is available using 'Copy Value' in the watch or variables window. Truncated strings will end with '...'.
29+
* Add setting to control Razor component commit behaviour (PR: [#6506](https://github.com/dotnet/vscode-csharp/pull/6506))
30+
* Razor textmate colorization fixes (PR: [#6514](https://github.com/dotnet/vscode-csharp/pull/6514))
31+
* Update Razor version to 7.0.0-preview.23475.5 (PR: [#6506](https://github.com/dotnet/vscode-csharp/pull/6506))
32+
* Add setting for whether to complete components with space (PR: [razor#9379](https://github.com/dotnet/razor/pull/9379))
33+
34+
## 2.6.24
35+
* Update Roslyn version to 4.9.0-1.23506.7 (PR: [#6447](https://github.com/dotnet/vscode-csharp/pull/6447))
36+
* Fix various issues with project loading and allow fallbacks to .NET framework msbuild (PR: [#70240](https://github.com/dotnet/roslyn/pull/70240))
37+
* Fix some Razor colorization issues (PR: [#6502](https://github.com/dotnet/vscode-csharp/pull/6502))
38+
* Fire telemetry if Razor buffers get out of sync, and recover from same (PR: [#6494](https://github.com/dotnet/vscode-csharp/pull/6494))
39+
* Update OmniSharp to 1.39.10 (PR: [#6491](https://github.com/dotnet/vscode-csharp/pull/6491))
40+
* Add RazorComplier EA to support razor generators (PR: [omnisharp-roslyn#2572](https://github.com/OmniSharp/omnisharp-roslyn/pull/2572))
41+
* Add Kind parameter to InlayHint (PR: [omnisharp-roslyn#2570](https://github.dev/OmniSharp/omnisharp-roslyn/pull/2570))
42+
* Do not include commit characters if the typed span is empty (PR: [omnisharp-roslyn#2569](https://github.com/OmniSharp/omnisharp-roslyn/pull/2569))
43+
* Update Roslyn to version 4.9.0-1.23504.3 (PR: [omnisharp-roslyn#2567](https://github.com/OmniSharp/omnisharp-roslyn/pull/2567))
44+
* Async diagnostics analyzer work queue (PR: [omnisharp-roslyn#2351](https://github.com/OmniSharp/omnisharp-roslyn/pull/2351))
45+
* Add InlayHint implementation to OmniSharp.LSP (PR: [omnisharp-roslyn#2566](https://github.com/OmniSharp/omnisharp-roslyn/pull/2566))
46+
* Include the project file name when invoking `dotnet build` (PR: [omnisharp-roslyn#2565](https://github.com/OmniSharp/omnisharp-roslyn/pull/2565))
47+
* feat: ignore diagnostics for generated code (PR: [omnisharp-roslyn#2509](https://github.com/OmniSharp/omnisharp-roslyn/pull/2509))
48+
* Update documentation to reflect --stdio flag deprecation (#2439) (PR: [omnisharp-roslyn#2554](https://github.com/OmniSharp/omnisharp-roslyn/pull/2554))
49+
* Update Roslyn to version 4.8.0-1.23374.10 (PR: [omnisharp-roslyn#2555](https://github.com/OmniSharp/omnisharp-roslyn/pull/2555))
50+
* Use double quote when quoting un script path (PR: [omnisharp-roslyn#2553](https://github.com/OmniSharp/omnisharp-roslyn/pull/2553))
51+
* Use core LSP TokenTypes where possible and validate token names (PR: [omnisharp-roslyn#2548](https://github.com/OmniSharp/omnisharp-roslyn/pull/2548))
52+
* Add Razor C# semantic tokens support in VS Code (PR: [#6489](https://github.com/dotnet/vscode-csharp/pull/6489))
53+
* Update Roslyn version to 4.9.0-1.23502.8 (PR: [#6447](https://github.com/dotnet/vscode-csharp/pull/6447))
54+
* Update Razor project configuration file name (PR: [#70156](https://github.com/dotnet/roslyn/pull/70156))* added support.md file (PR: [#6478](https://github.com/dotnet/vscode-csharp/pull/6478))
55+
* Debugger: Improve the display of various debug configurations and snippets (PR: [#6456](https://github.com/dotnet/vscode-csharp/pull/6456))
56+
* Initialize Razor even if Razor doc isn't opened yet (PR: [#6473](https://github.com/dotnet/vscode-csharp/pull/6473))
57+
58+
## 2.5.30
59+
* Add code action fix all support (PR: [#6310](https://github.com/dotnet/vscode-csharp/pull/6310))
60+
* Update Roslyn version to 4.9.0-1.23502.2 (PR: [#6463](https://github.com/dotnet/vscode-csharp/pull/6463))
61+
* Fix issue loading projects on .NET 8 RC2 (PR: [#70196](https://github.com/dotnet/roslyn/pull/70196))
1262
* Fix exception thrown by outdated version of ExternalAccess.RazorCompiler.dll (PR: [#70716](https://github.com/dotnet/roslyn/pull/70176))
1363
* Fix crash when navigating to .NET Framework reference assemblies (PR: [#69936](https://github.com/dotnet/roslyn/pull/69936))
1464
* Fix error when only the invariant culture is available (PR: [#70096](https://github.com/dotnet/roslyn/pull/70096))
1565
* Update Razor version to 7.0.0-preview.23475.5 (PR: [#6449](https://github.com/dotnet/vscode-csharp/pull/6449))
1666
* Add Razor language server telemetry when DevKit is installed (PR: [#9283](https://github.com/dotnet/razor/pull/9283))
1767
* Use message pack for project.razor.* configuration file (PR: [#9270](https://github.com/dotnet/razor/pull/9270))
1868
* Fix issues with Razor completion (PR: [#6441](https://github.com/dotnet/vscode-csharp/pull/6441))
69+
* Add option to collect crash dumps on language server crash (PR: [#6438](https://github.com/dotnet/vscode-csharp/pull/6438))
70+
* Add support for multilaunch for Blazorwasm (PR: [#6432](https://github.com/dotnet/vscode-csharp/pull/6432))
1971
* Fix issue in Razor new file formatting (PR: [#6429](https://github.com/dotnet/vscode-csharp/pull/6429))
2072
* Fix issue in debug tests where tests would complete before the debugger attached (PR: [#6415](https://github.com/dotnet/vscode-csharp/pull/6415))
2173
* Hide certain debugger launch configurations when devkit is installed (PR: [#6405](https://github.com/dotnet/vscode-csharp/pull/6405))
@@ -134,7 +186,7 @@
134186
* Fix misleading LSP server logs (PR: [#69378](https://github.com/dotnet/roslyn/pull/69378))
135187
* Add support for code lens enable/disable options to roslyn LSP (PR: [#6001](https://github.com/dotnet/vscode-csharp/pull/6001))
136188
* Onboard Localization pipeline (PR: [#5990](https://github.com/dotnet/vscode-csharp/pull/5990))
137-
* Enable loading translated strings from razor TS code (PR: [#5962](https://github.com/dotnet/vscode-csharp/pull/5962))
189+
* Enable loading translated strings from Razor TS code (PR: [#5962](https://github.com/dotnet/vscode-csharp/pull/5962))
138190
* Update typescript and eslint plugin to remove build warning (PR: [6002](https://github.com/dotnet/vscode-csharp/pull/6002))
139191
* Report how the extension was activated (PR: [#6043](https://github.com/dotnet/vscode-csharp/pull/6043))
140192
* Update Razor to 7.0.0-preview.23410.1 (PR: [#6105](https://github.com/dotnet/vscode-csharp/pull/6105))
@@ -155,9 +207,9 @@ We are switching to the new Roslyn language server as the default. We recognize
155207

156208
## 1.26.0
157209
* Update OmniSharp to 1.39.7 (PR: [#5840](https://github.com/OmniSharp/omnisharp-vscode/pull/5840))
158-
* Respond to breaking change in VSCode 1.79.2 in completion (PR:[#2542](https://github.com/OmniSharp/omnisharp-roslyn/pull/2542))
159-
* Use dotnet-cake for build (PR:[#2537](https://github.com/OmniSharp/omnisharp-roslyn/pull/2537))
160-
* Implement LSP CodeAction resolve (PR:[#2467](https://github.com/OmniSharp/omnisharp-roslyn/pull/2467))
210+
* Respond to breaking change in VSCode 1.79.2 in completion (PR:[omnisharp-roslyn#2542](https://github.com/OmniSharp/omnisharp-roslyn/pull/2542))
211+
* Use dotnet-cake for build (PR:[omnisharp-roslyn#2537](https://github.com/OmniSharp/omnisharp-roslyn/pull/2537))
212+
* Implement LSP CodeAction resolve (PR:[omnisharp-roslyn#2467](https://github.com/OmniSharp/omnisharp-roslyn/pull/2467))
161213
* Update debugger to 1.25.8 (PR: [#5706](https://github.com/OmniSharp/omnisharp-vscode/pull/5706))
162214
* Updates to README, default branch and repo link (PR: [#5709](https://github.com/OmniSharp/omnisharp-vscode/pull/5709))
163215

@@ -184,25 +236,26 @@ We are switching to the new Roslyn language server as the default. We recognize
184236
* Add C#/HTML folding range support ([razor#8309](https://github.com/dotnet/razor/pull/8309))
185237
* Formatting fixes ([razor#8318](https://github.com/dotnet/razor/pull/8318))
186238
* Update OmniSharp to 1.39.6 (PR: [#5625](https://github.com/OmniSharp/omnisharp-vscode/pull/5625))
187-
* Use new VS threading version to match with Razor (PR:[#2518](https://github.com/OmniSharp/omnisharp-roslyn/pull/2518))
239+
* Use new VS threading version to match with Razor (PR:[omnisharp-roslyn#2518](https://github.com/OmniSharp/omnisharp-roslyn/pull/2518))
188240
* Update OmniSharp to 1.39.5 (PR: [#5618](https://github.com/OmniSharp/omnisharp-vscode/pull/5618))
189-
* Update to Roslyn `4.6.0-3.23153.5` (PR:[#2511](https://github.com/OmniSharp/omnisharp-roslyn/pull/2511))
190-
* Report to the client if the project being loaded is sdk style (PR:[#2502](https://github.com/OmniSharp/omnisharp-roslyn/pull/2502))
241+
* Update to Roslyn `4.6.0-3.23153.5` (PR:[omnisharp-roslyn#2511](https://github.com/OmniSharp/omnisharp-roslyn/pull/2511))
242+
* Report to the client if the project being loaded is sdk style (PR:[omnisharp-roslyn#2502](https://github.com/OmniSharp/omnisharp-roslyn/pull/2502))
191243
* Automatically trust ASP.NET Core HTTPS development certificate (PR: [#5589](https://github.com/OmniSharp/omnisharp-vscode/pull/5589))
192244
* Improve outline to be less verbose (PR: [#5536](https://github.com/OmniSharp/omnisharp-vscode/pull/5536))
193245
* Update Razor TextMate grammar (PR: [#5570](https://github.com/OmniSharp/omnisharp-vscode/pull/5570))
194246

195247
## 1.25.4
196248
* Update OmniSharp to 1.39.4 (PR: [#5544](https://github.com/OmniSharp/omnisharp-vscode/pull/5544))
197-
* Disable snippets in sync completion (PR: [#2497](https://github.com/OmniSharp/omnisharp-roslyn/pull/2497))
249+
* Disable snippets in sync completion (PR: [omnisharp-roslyn#2497](https://github.com/OmniSharp/omnisharp-roslyn/pull/2497))
198250

199251
## 1.25.3
200252
* Update Razor to 7.0.0-preview.23067.5 (PR: [#5543](https://github.com/OmniSharp/omnisharp-vscode/pull/5543))
201253
* Enables support for arm64
202254
* Adds document color and color presentation features
203-
* Update Roslyn to 4.5.0-2.22527.10 (PR: [#2486](https://github.com/OmniSharp/omnisharp-roslyn/pull/2486))
204-
* Update dotnet-script dependencies to 1.4.0 (PR: [#2477](https://github.com/OmniSharp/omnisharp-roslyn/pull/2477))
205-
* Register the LanguageServerLogger only once (PR: [#2473](https://github.com/OmniSharp/omnisharp-roslyn/pull/2473))
255+
* Update OmniSharp to 1.39.3 (PR: [#5520](https://github.com/OmniSharp/omnisharp-vscode/pull/5520))
256+
* Update Roslyn to 4.5.0-2.22527.10 (PR: [omnisharp-roslyn#2486](https://github.com/OmniSharp/omnisharp-roslyn/pull/2486))
257+
* Update dotnet-script dependencies to 1.4.0 (PR: [omnisharp-roslyn#2477](https://github.com/OmniSharp/omnisharp-roslyn/pull/2477))
258+
* Register the LanguageServerLogger only once (PR: [omnisharp-roslyn#2473](https://github.com/OmniSharp/omnisharp-roslyn/pull/2473))
206259
* Fix extension not finding mono. ([#5454](https://github.com/OmniSharp/omnisharp-vscode/issues/5454), PR: [#5484](https://github.com/OmniSharp/omnisharp-vscode/pull/5484))
207260
* Update debugger to 1.25.3. ([#5460](https://github.com/OmniSharp/omnisharp-vscode/issues/5460), PR: [#5489](https://github.com/OmniSharp/omnisharp-vscode/pull/5489))
208261
* Fix missing fix all commands. ([#5474](https://github.com/OmniSharp/omnisharp-vscode/issues/5474), PR: [#5475](https://github.com/OmniSharp/omnisharp-vscode/pull/5475))

SUPPORT.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Support
2+
3+
## How to file issues and get help
4+
5+
This project uses GitHub Issues to track bugs and feature requests. Please search the [existing issues](https://github.com/dotnet/vscode-csharp/issues) before filing new issues to avoid duplicates. For new issues, file your bug or feature request as a new Issue.
6+
7+
For help and questions about using this project, please see the [README](https://github.com/dotnet/vscode-csharp/blob/main/README.md).
8+
9+
## Microsoft Support Policy
10+
11+
Support for this project is limited to the resources listed above.

azure-pipelines-official.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,16 @@ trigger:
55
- release
66
pr: none
77

8-
variables:
9-
${{ if eq(variables['Build.SourceBranchName'], 'release') }}:
10-
prereleaseFlag: ''
11-
${{ else }}:
12-
prereleaseFlag: '--prerelease'
8+
parameters:
9+
# Allows the version number to be set manually for a specific build.
10+
# Useful when we need to create an updated extension version with no changes (for example to fix a bad partial release).
11+
- name: versionNumberOverride
12+
type: string
13+
default: 'default'
1314

1415
stages:
15-
- stage: Build
16-
dependsOn: []
17-
jobs:
18-
- job: Build
19-
steps:
20-
- template: azure-pipelines/build.yml
21-
parameters:
22-
prereleaseFlag: $(prereleaseFlag)
23-
pool:
24-
name: NetCore1ESPool-Internal
25-
demands: ImageOverride -equals Build.Ubuntu.2204.Amd64
16+
- template: azure-pipelines/build.yml
17+
parameters:
18+
versionNumberOverride: ${{ parameters.versionNumberOverride }}
2619

2720
# TODO: add compliance, signing.

azure-pipelines.yml

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,24 +11,8 @@ pr:
1111
- release
1212
- main
1313

14-
variables:
15-
${{ if eq(variables['Build.SourceBranchName'], 'release') }}:
16-
prereleaseFlag: ''
17-
${{ else }}:
18-
prereleaseFlag: '--prerelease'
19-
2014
stages:
21-
- stage: Build
22-
dependsOn: []
23-
jobs:
24-
- job: Build
25-
steps:
26-
- template: azure-pipelines/build.yml
27-
parameters:
28-
prereleaseFlag: $(prereleaseFlag)
29-
pool:
30-
name: NetCore-Public
31-
demands: ImageOverride -equals Build.Ubuntu.2204.Amd64.Open
15+
- template: azure-pipelines/build.yml
3216

3317
- stage: Test
3418
displayName: Test

azure-pipelines/build.yml

Lines changed: 56 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,63 @@
11
parameters:
2-
- name: prereleaseFlag
2+
- name: versionNumberOverride
33
type: string
4+
default: 'default'
45

5-
steps:
6-
- checkout: self
7-
clean: true
8-
submodules: true
9-
fetchTags: false
10-
fetchDepth: 0
6+
stages:
7+
- stage: Build
8+
displayName: 'Build VSIXs'
9+
jobs:
10+
- job:
11+
displayName: 'Build Prerelease VSIXs'
12+
steps:
13+
- checkout: self
14+
clean: true
15+
submodules: true
16+
fetchTags: false
17+
fetchDepth: 0
1118

12-
- template: prereqs.yml
19+
- template: prereqs.yml
20+
parameters:
21+
versionNumberOverride: ${{ parameters.versionNumberOverride }}
1322

14-
- script: gulp 'vsix:release:package' ${{ parameters.prereleaseFlag }}
15-
displayName: 'Build VSIXs'
23+
- script: gulp 'vsix:release:package' --prerelease
24+
displayName: 'Build VSIXs'
25+
26+
- task: PublishPipelineArtifact@1
27+
# Run the publish step so we have vsix's even if the tests fail.
28+
condition: succeededOrFailed()
29+
displayName: 'Publish VSIXs'
30+
inputs:
31+
targetPath: '$(Build.SourcesDirectory)/vsix'
32+
artifactName: 'VSIX_Prerelease_$(System.JobAttempt)'
33+
34+
- script: npm run test:artifacts
35+
displayName: 'Run artifacts tests'
36+
37+
- job:
38+
displayName: 'Build Release VSIXs'
39+
steps:
40+
- checkout: self
41+
clean: true
42+
submodules: true
43+
fetchTags: false
44+
fetchDepth: 0
45+
46+
- template: prereqs.yml
47+
parameters:
48+
versionNumberOverride: ${{ parameters.versionNumberOverride }}
49+
50+
- script: gulp 'vsix:release:package'
51+
displayName: 'Build VSIXs'
1652

17-
- task: PublishPipelineArtifact@1
18-
# Run the publish step so we have vsix's even if the tests fail.
19-
condition: succeededOrFailed()
20-
displayName: 'Publish VSIXs'
21-
inputs:
22-
targetPath: '$(Build.SourcesDirectory)/vsix'
23-
artifactName: 'VSIXs - Attempt $(System.JobAttempt)'
53+
- task: PublishPipelineArtifact@1
54+
# Run the publish step so we have vsix's even if the tests fail.
55+
condition: succeededOrFailed()
56+
displayName: 'Publish VSIXs'
57+
inputs:
58+
targetPath: '$(Build.SourcesDirectory)/vsix'
59+
artifactName: 'VSIX_Release_$(System.JobAttempt)'
2460

25-
- script: npm run omnisharptest:artifacts
26-
displayName: 'Run artifacts tests'
61+
- script: npm run test:artifacts
62+
displayName: 'Run artifacts tests'
63+

azure-pipelines/prereqs.yml

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
parameters:
2+
- name: versionNumberOverride
3+
type: string
4+
default: 'default'
5+
16
steps:
27

38
# The server package is downloaded from NuGet
@@ -13,19 +18,24 @@ steps:
1318
inputs:
1419
version: '7.x'
1520

16-
# Set the CI build number to the VSIX version we're creating from this build.
1721
- script: |
1822
dotnet tool install --tool-path $(Agent.BuildDirectory) nbgv
19-
$(Agent.BuildDirectory)/nbgv cloud
2023
displayName: Install nbgv
2124

25+
# If we want to override the version, update the version.json here - vsix packaging will see this value
26+
# and use it to set the version number in the package.json.
27+
- ${{ if ne(parameters.versionNumberOverride, 'default') }}:
28+
- script: $(Agent.BuildDirectory)/nbgv set-version ${{ parameters.versionNumberOverride }}
29+
displayName: 'Override version number'
30+
31+
# Set the CI build number to the VSIX version we're creating from this build.
32+
- script: $(Agent.BuildDirectory)/nbgv cloud
33+
displayName: Set pipeline build number
34+
2235
- script: |
2336
npm ci
2437
npm i -g gulp
2538
displayName: 'Install dependencies'
2639

2740
- script: npm run compile
2841
displayName: 'Compile'
29-
30-
- script: npm run vscode:prepublish
31-
displayName: 'Prepublish VSIXs'

0 commit comments

Comments
 (0)