You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Add `swift.recordTestDuration` setting
When running a large test suite full of tests that complete very
quickly, VS Code spends a lot of time updating the test explorer UI. For
every test the tree is refreshed, and in a suite where thousands of
tests complete very quickly this can make the UI unresponsive and
increase the amount of time the test run takes.
The UI updates because the duration of the test item is different
between runs, requiring the UI to change. As in the case described
above, omitting the duration when passing or failing test items
significantly improves performance.
Introduce the `swift.recordTestDuration` setting which, when set to
false, will omit the duration when recording test results. The default
is `true`, making this optimization opt-in.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,7 @@
7
7
- Added Swiftly toolchain management support `.swift-version` files, and integration with the toolchain selection UI ([#1717](https://github.com/swiftlang/vscode-swift/pull/1717)
8
8
- Added code lenses to run suites/tests, configurable with the `swift.showTestCodeLenses` setting ([#1698](https://github.com/swiftlang/vscode-swift/pull/1698))
9
9
- New `swift.excludePathsFromActivation` setting to ignore specified sub-folders from being activated as projects ([#1693](https://github.com/swiftlang/vscode-swift/pull/1693))
10
+
- New `swift.recordTestDuration` setting to disable capturing test durations, which can improve performance of heavy test runs ([#1745](https://github.com/swiftlang/vscode-swift/pull/1745))
10
11
- Add a `Generate SourceKit-LSP Configuration` command that creates the configuration file with versioned schema pre-populated ([#1726](https://github.com/swiftlang/vscode-swift/pull/1716))
Copy file name to clipboardExpand all lines: package.json
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -615,6 +615,12 @@
615
615
"coverage"
616
616
]
617
617
}
618
+
},
619
+
"swift.recordTestDuration": {
620
+
"type": "boolean",
621
+
"default": true,
622
+
"markdownDescription": "Controls whether or not to record the duration of tests in the Test Explorer. This is used to show the duration of tests in the Test Explorer view. If you're experiencing performance issues when running a large number of tests that complete quickly, disabling this setting can make the UI more responsive.",
0 commit comments