diff options
Diffstat (limited to 'src/vs/workbench/contrib/themes/test/electron-browser/colorRegistry.releaseTest.ts')
-rw-r--r-- | src/vs/workbench/contrib/themes/test/electron-browser/colorRegistry.releaseTest.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vs/workbench/contrib/themes/test/electron-browser/colorRegistry.releaseTest.ts b/src/vs/workbench/contrib/themes/test/electron-browser/colorRegistry.releaseTest.ts index 397ecffdb59..76104ae81f2 100644 --- a/src/vs/workbench/contrib/themes/test/electron-browser/colorRegistry.releaseTest.ts +++ b/src/vs/workbench/contrib/themes/test/electron-browser/colorRegistry.releaseTest.ts @@ -5,7 +5,7 @@ import { Registry } from 'vs/platform/registry/common/platform'; import { IColorRegistry, Extensions, ColorContribution } from 'vs/platform/theme/common/colorRegistry'; -import { asText } from 'vs/platform/request/common/request'; +import { asTextOrError } from 'vs/platform/request/common/request'; import * as pfs from 'vs/base/node/pfs'; import * as path from 'vs/base/common/path'; import * as assert from 'assert'; @@ -39,7 +39,7 @@ suite('Color Registry', function () { const environmentService = new class extends mock<INativeEnvironmentService>() { override args = { _: [] }; }; const reqContext = await new RequestService(new TestConfigurationService(), environmentService, new NullLogService()).request({ url: 'https://raw.githubusercontent.com/microsoft/vscode-docs/vnext/api/references/theme-color.md' }, CancellationToken.None); - const content = (await asText(reqContext))!; + const content = (await asTextOrError(reqContext))!; const expression = /-\s*\`([\w\.]+)\`: (.*)/g; |