Fixes#198183
Remove extra background and also removes the extra divs inside of the code blocks as these were causing issues with styling (extra padding)
This adds an `assertHeap` function that can be used in tests. It
takes a heap snapshot, and asserts the state of classes in memory. This
works in Node and the Electron sandbox, but is a no-op in the browser.
Snapshots are process asynchronously and will report failures at the end
of the suite.
This method should be used sparingly (e.g. once at the end of a suite to
ensure nothing leaked before), as gathering a heap snapshot is fairly
slow, at least until V8 11.5.130 (https://v8.dev/blog/speeding-up-v8-heap-snapshots).
When used, the function will ensure the test has a minimum timeout
duration of 20s to avoid immediate failures.
It takes options containing a mapping of class names, and assertion functions
to run on the number of retained instances of that class. For example:
```ts
assertSnapshot({
classes: {
ShouldNeverLeak: count => assert.strictEqual(count, 0),
SomeSingleton: count => assert(count <= 1),
}
});
```
Closes https://github.com/microsoft/vscode/issues/191920
* Update Swift grammar and upstream repository
* update grammar for bug fix
* Update Swift cgmanifest
---------
Co-authored-by: Alex Ross <alros@microsoft.com>
* Upstream commit + improve onDidChangeCurrentHistoryItemGroup
* Refactor expanding a history item group
* Wire up caching
* Invoking the git.refresh command invalidates the cache
* Clean up cache data structure
* Remove cycle browserHostService.ts -> web.api.ts.
Before this change, `IWorkbenchConstructionOptions` in web.api.ts
depended on `IWorkspaceProvider` in browserHostService.ts, which
depends on some types from web.api.ts.
While this apparently does not pose problems in VS Code's build, other
build system of downstream projects do not allow this, and it is also
overall harder to follow the code if "the API" depends on types defined
in ""the implementation".
* Fix one reference I missed