mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-20 02:08:47 +00:00
adopt new version of tas-client, no longer use "umd" variant (#263340)
upgrade to tas-client 0.3.1
This commit is contained in:
@@ -70,7 +70,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
// Reason: The license cannot be found by the tool due to access controls on the repository
|
// Reason: The license cannot be found by the tool due to access controls on the repository
|
||||||
"name": "tas-client-umd",
|
"name": "tas-client",
|
||||||
"fullLicenseText": [
|
"fullLicenseText": [
|
||||||
"MIT License",
|
"MIT License",
|
||||||
"Copyright (c) 2020 - present Microsoft Corporation",
|
"Copyright (c) 2020 - present Microsoft Corporation",
|
||||||
|
|||||||
@@ -1541,7 +1541,7 @@ export default tseslint.config(
|
|||||||
'readline',
|
'readline',
|
||||||
'stream',
|
'stream',
|
||||||
'string_decoder',
|
'string_decoder',
|
||||||
'tas-client-umd',
|
'tas-client',
|
||||||
'tls',
|
'tls',
|
||||||
'undici',
|
'undici',
|
||||||
'undici-types',
|
'undici-types',
|
||||||
@@ -1630,7 +1630,7 @@ export default tseslint.config(
|
|||||||
'vs/base/~',
|
'vs/base/~',
|
||||||
'vs/base/parts/*/~',
|
'vs/base/parts/*/~',
|
||||||
'vs/platform/*/~',
|
'vs/platform/*/~',
|
||||||
'tas-client-umd', // node module allowed even in /common/
|
'tas-client', // node module allowed even in /common/
|
||||||
'@microsoft/1ds-core-js', // node module allowed even in /common/
|
'@microsoft/1ds-core-js', // node module allowed even in /common/
|
||||||
'@microsoft/1ds-post-js', // node module allowed even in /common/
|
'@microsoft/1ds-post-js', // node module allowed even in /common/
|
||||||
'@xterm/headless' // node module allowed even in /common/
|
'@xterm/headless' // node module allowed even in /common/
|
||||||
@@ -1748,7 +1748,7 @@ export default tseslint.config(
|
|||||||
'when': 'test',
|
'when': 'test',
|
||||||
'pattern': 'vs/workbench/contrib/*/~'
|
'pattern': 'vs/workbench/contrib/*/~'
|
||||||
}, // TODO@layers
|
}, // TODO@layers
|
||||||
'tas-client-umd', // node module allowed even in /common/
|
'tas-client', // node module allowed even in /common/
|
||||||
'vscode-textmate', // node module allowed even in /common/
|
'vscode-textmate', // node module allowed even in /common/
|
||||||
'@vscode/vscode-languagedetection', // node module allowed even in /common/
|
'@vscode/vscode-languagedetection', // node module allowed even in /common/
|
||||||
'@vscode/tree-sitter-wasm', // type import
|
'@vscode/tree-sitter-wasm', // type import
|
||||||
|
|||||||
14
package-lock.json
generated
14
package-lock.json
generated
@@ -48,7 +48,7 @@
|
|||||||
"native-watchdog": "^1.4.1",
|
"native-watchdog": "^1.4.1",
|
||||||
"node-pty": "1.1.0-beta35",
|
"node-pty": "1.1.0-beta35",
|
||||||
"open": "^10.1.2",
|
"open": "^10.1.2",
|
||||||
"tas-client-umd": "0.2.0",
|
"tas-client": "0.3.1",
|
||||||
"undici": "^7.9.0",
|
"undici": "^7.9.0",
|
||||||
"v8-inspect-profiler": "^0.1.1",
|
"v8-inspect-profiler": "^0.1.1",
|
||||||
"vscode-oniguruma": "1.7.0",
|
"vscode-oniguruma": "1.7.0",
|
||||||
@@ -16659,10 +16659,14 @@
|
|||||||
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
"resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz",
|
||||||
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
"integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A=="
|
||||||
},
|
},
|
||||||
"node_modules/tas-client-umd": {
|
"node_modules/tas-client": {
|
||||||
"version": "0.2.0",
|
"version": "0.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/tas-client-umd/-/tas-client-umd-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/tas-client/-/tas-client-0.3.1.tgz",
|
||||||
"integrity": "sha512-oezN7mJVm5qZDVEby7OzxCLKUpUN5of0rY4dvOWaDF2JZBlGpd3BXceFN8B53qlTaIkVSzP65aAMT0Vc+/N25Q=="
|
"integrity": "sha512-Mn4+4t/KXEf8aIENeI1TkzpKIImzmG+FjPZ2dlaoGNFgxJqBE/pp3MT7nc2032EG4aS73E4OEcr2WiNaWW8mdA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"node_modules/teex": {
|
"node_modules/teex": {
|
||||||
"version": "1.0.1",
|
"version": "1.0.1",
|
||||||
|
|||||||
@@ -110,7 +110,7 @@
|
|||||||
"native-watchdog": "^1.4.1",
|
"native-watchdog": "^1.4.1",
|
||||||
"node-pty": "1.1.0-beta35",
|
"node-pty": "1.1.0-beta35",
|
||||||
"open": "^10.1.2",
|
"open": "^10.1.2",
|
||||||
"tas-client-umd": "0.2.0",
|
"tas-client": "0.3.1",
|
||||||
"undici": "^7.9.0",
|
"undici": "^7.9.0",
|
||||||
"v8-inspect-profiler": "^0.1.1",
|
"v8-inspect-profiler": "^0.1.1",
|
||||||
"vscode-oniguruma": "1.7.0",
|
"vscode-oniguruma": "1.7.0",
|
||||||
|
|||||||
14
remote/package-lock.json
generated
14
remote/package-lock.json
generated
@@ -39,7 +39,7 @@
|
|||||||
"minimist": "^1.2.8",
|
"minimist": "^1.2.8",
|
||||||
"native-watchdog": "^1.4.1",
|
"native-watchdog": "^1.4.1",
|
||||||
"node-pty": "1.1.0-beta35",
|
"node-pty": "1.1.0-beta35",
|
||||||
"tas-client-umd": "0.2.0",
|
"tas-client": "0.3.1",
|
||||||
"vscode-oniguruma": "1.7.0",
|
"vscode-oniguruma": "1.7.0",
|
||||||
"vscode-regexpp": "^3.1.0",
|
"vscode-regexpp": "^3.1.0",
|
||||||
"vscode-textmate": "^9.2.1",
|
"vscode-textmate": "^9.2.1",
|
||||||
@@ -1125,10 +1125,14 @@
|
|||||||
"node": ">=6"
|
"node": ">=6"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tas-client-umd": {
|
"node_modules/tas-client": {
|
||||||
"version": "0.2.0",
|
"version": "0.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/tas-client-umd/-/tas-client-umd-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/tas-client/-/tas-client-0.3.1.tgz",
|
||||||
"integrity": "sha512-oezN7mJVm5qZDVEby7OzxCLKUpUN5of0rY4dvOWaDF2JZBlGpd3BXceFN8B53qlTaIkVSzP65aAMT0Vc+/N25Q=="
|
"integrity": "sha512-Mn4+4t/KXEf8aIENeI1TkzpKIImzmG+FjPZ2dlaoGNFgxJqBE/pp3MT7nc2032EG4aS73E4OEcr2WiNaWW8mdA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tiny-inflate": {
|
"node_modules/tiny-inflate": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
|
|||||||
@@ -34,7 +34,7 @@
|
|||||||
"minimist": "^1.2.8",
|
"minimist": "^1.2.8",
|
||||||
"native-watchdog": "^1.4.1",
|
"native-watchdog": "^1.4.1",
|
||||||
"node-pty": "1.1.0-beta35",
|
"node-pty": "1.1.0-beta35",
|
||||||
"tas-client-umd": "0.2.0",
|
"tas-client": "0.3.1",
|
||||||
"vscode-oniguruma": "1.7.0",
|
"vscode-oniguruma": "1.7.0",
|
||||||
"vscode-regexpp": "^3.1.0",
|
"vscode-regexpp": "^3.1.0",
|
||||||
"vscode-textmate": "^9.2.1",
|
"vscode-textmate": "^9.2.1",
|
||||||
|
|||||||
14
remote/web/package-lock.json
generated
14
remote/web/package-lock.json
generated
@@ -24,7 +24,7 @@
|
|||||||
"@xterm/xterm": "^5.6.0-beta.136",
|
"@xterm/xterm": "^5.6.0-beta.136",
|
||||||
"jschardet": "3.1.4",
|
"jschardet": "3.1.4",
|
||||||
"katex": "^0.16.22",
|
"katex": "^0.16.22",
|
||||||
"tas-client-umd": "0.2.0",
|
"tas-client": "0.3.1",
|
||||||
"vscode-oniguruma": "1.7.0",
|
"vscode-oniguruma": "1.7.0",
|
||||||
"vscode-textmate": "^9.2.1"
|
"vscode-textmate": "^9.2.1"
|
||||||
}
|
}
|
||||||
@@ -287,10 +287,14 @@
|
|||||||
"node": ">8.0.0"
|
"node": ">8.0.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tas-client-umd": {
|
"node_modules/tas-client": {
|
||||||
"version": "0.2.0",
|
"version": "0.3.1",
|
||||||
"resolved": "https://registry.npmjs.org/tas-client-umd/-/tas-client-umd-0.2.0.tgz",
|
"resolved": "https://registry.npmjs.org/tas-client/-/tas-client-0.3.1.tgz",
|
||||||
"integrity": "sha512-oezN7mJVm5qZDVEby7OzxCLKUpUN5of0rY4dvOWaDF2JZBlGpd3BXceFN8B53qlTaIkVSzP65aAMT0Vc+/N25Q=="
|
"integrity": "sha512-Mn4+4t/KXEf8aIENeI1TkzpKIImzmG+FjPZ2dlaoGNFgxJqBE/pp3MT7nc2032EG4aS73E4OEcr2WiNaWW8mdA==",
|
||||||
|
"license": "MIT",
|
||||||
|
"engines": {
|
||||||
|
"node": ">=22"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"node_modules/tiny-inflate": {
|
"node_modules/tiny-inflate": {
|
||||||
"version": "1.0.3",
|
"version": "1.0.3",
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
"@xterm/xterm": "^5.6.0-beta.136",
|
"@xterm/xterm": "^5.6.0-beta.136",
|
||||||
"jschardet": "3.1.4",
|
"jschardet": "3.1.4",
|
||||||
"katex": "^0.16.22",
|
"katex": "^0.16.22",
|
||||||
"tas-client-umd": "0.2.0",
|
"tas-client": "0.3.1",
|
||||||
"vscode-oniguruma": "1.7.0",
|
"vscode-oniguruma": "1.7.0",
|
||||||
"vscode-textmate": "^9.2.1"
|
"vscode-textmate": "^9.2.1"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { Event } from '../../../base/common/event.js';
|
import { Event } from '../../../base/common/event.js';
|
||||||
import * as platform from '../../../base/common/platform.js';
|
import * as platform from '../../../base/common/platform.js';
|
||||||
import type { IExperimentationFilterProvider } from 'tas-client-umd';
|
import type { IExperimentationFilterProvider } from 'tas-client';
|
||||||
|
|
||||||
export const ASSIGNMENT_STORAGE_KEY = 'VSCode.ABExp.FeatureData';
|
export const ASSIGNMENT_STORAGE_KEY = 'VSCode.ABExp.FeatureData';
|
||||||
export const ASSIGNMENT_REFETCH_INTERVAL = 60 * 60 * 1000; // 1 hour
|
export const ASSIGNMENT_REFETCH_INTERVAL = 60 * 60 * 1000; // 1 hour
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||||
*--------------------------------------------------------------------------------------------*/
|
*--------------------------------------------------------------------------------------------*/
|
||||||
|
|
||||||
import type { IExperimentationFilterProvider } from 'tas-client-umd';
|
import type { IExperimentationFilterProvider } from 'tas-client';
|
||||||
import { IExtensionService } from '../../extensions/common/extensions.js';
|
import { IExtensionService } from '../../extensions/common/extensions.js';
|
||||||
import { Disposable } from '../../../../base/common/lifecycle.js';
|
import { Disposable } from '../../../../base/common/lifecycle.js';
|
||||||
import { ExtensionIdentifier } from '../../../../platform/extensions/common/extensions.js';
|
import { ExtensionIdentifier } from '../../../../platform/extensions/common/extensions.js';
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
import { localize } from '../../../../nls.js';
|
import { localize } from '../../../../nls.js';
|
||||||
import { createDecorator, IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
import { createDecorator, IInstantiationService } from '../../../../platform/instantiation/common/instantiation.js';
|
||||||
import type { IKeyValueStorage, IExperimentationTelemetry, ExperimentationService as TASClient } from 'tas-client-umd';
|
import type { IKeyValueStorage, IExperimentationTelemetry, ExperimentationService as TASClient } from 'tas-client';
|
||||||
import { Memento } from '../../../common/memento.js';
|
import { Memento } from '../../../common/memento.js';
|
||||||
import { ITelemetryService, TelemetryLevel } from '../../../../platform/telemetry/common/telemetry.js';
|
import { ITelemetryService, TelemetryLevel } from '../../../../platform/telemetry/common/telemetry.js';
|
||||||
import { IStorageService, StorageScope, StorageTarget } from '../../../../platform/storage/common/storage.js';
|
import { IStorageService, StorageScope, StorageTarget } from '../../../../platform/storage/common/storage.js';
|
||||||
@@ -267,7 +267,7 @@ export class WorkbenchAssignmentService extends Disposable implements IAssignmen
|
|||||||
this.tasSetupDisposables.add(extensionsFilterProvider.onDidChangeFilters(() => this.refetchAssignments()));
|
this.tasSetupDisposables.add(extensionsFilterProvider.onDidChangeFilters(() => this.refetchAssignments()));
|
||||||
|
|
||||||
const tasConfig = this.productService.tasConfig!;
|
const tasConfig = this.productService.tasConfig!;
|
||||||
const tasClient = new (await importAMDNodeModule<typeof import('tas-client-umd')>('tas-client-umd', 'lib/tas-client-umd.js')).ExperimentationService({
|
const tasClient = new (await importAMDNodeModule<typeof import('tas-client')>('tas-client', 'dist/tas-client.min.js')).ExperimentationService({
|
||||||
filterProviders: [filterProvider, extensionsFilterProvider],
|
filterProviders: [filterProvider, extensionsFilterProvider],
|
||||||
telemetry: this.telemetry,
|
telemetry: this.telemetry,
|
||||||
storageKey: ASSIGNMENT_STORAGE_KEY,
|
storageKey: ASSIGNMENT_STORAGE_KEY,
|
||||||
|
|||||||
Reference in New Issue
Block a user