Skip to content

Bump vscode-tas-client - #22490

Closed
Kartik Raj (karrtikr) wants to merge 1 commit into
mainfrom
kartik/passing-beaver
Closed

Kartik Raj (karrtikr) wants to merge 1 commit into
mainfrom
kartik/passing-beaver

Conversation

@karrtikr

Copy link
Copy Markdown

Closes #22461

Comment on lines +1 to +13
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// For some reason exporting it directly from 'vscode-tas-client' doesn't work well in unit tests with sinon.
// export { getExperimentationService } from 'vscode-tas-client';
// Hence getting it using require...

import type * as tasClientTypes from 'vscode-tas-client';

// eslint-disable-next-line global-require
const tasClient = require('vscode-tas-client') as typeof tasClientTypes;

export const { getExperimentationService } = tasClient;

@karrtikr Kartik Raj (karrtikr) Nov 17, 2023 •

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tried investigating what changed in the definition files, but couldn't find anything obvious. Hence going with this workaround.

@karrtikr

Copy link
Copy Markdown
Author

Closing, we have a better fix with sinon.

auto-merge was automatically disabled November 18, 2023 00:09

Pull request was closed

@karthiknadig
Karthik Nadig (karthiknadig) deleted the kartik/passing-beaver branch June 13, 2024 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

debt Code quality issues

1 participant