mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00:00
update tas-client-umd
This commit is contained in:
parent
7e719d3f04
commit
4977db85c0
|
@ -76,7 +76,7 @@
|
|||
"nsfw": "^2.1.1",
|
||||
"spdlog": "^0.11.1",
|
||||
"sudo-prompt": "9.1.1",
|
||||
"tas-client-umd": "0.1.2",
|
||||
"tas-client-umd": "0.1.4",
|
||||
"v8-inspect-profiler": "^0.0.20",
|
||||
"vscode-oniguruma": "1.3.1",
|
||||
"vscode-proxy-agent": "^0.8.1",
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
"node-pty": "0.10.0-beta19",
|
||||
"nsfw": "^2.1.1",
|
||||
"spdlog": "^0.11.1",
|
||||
"tas-client-umd": "0.1.2",
|
||||
"tas-client-umd": "0.1.4",
|
||||
"vscode-oniguruma": "1.3.1",
|
||||
"vscode-proxy-agent": "^0.8.1",
|
||||
"vscode-regexpp": "^3.1.0",
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
"dependencies": {
|
||||
"iconv-lite-umd": "0.6.8",
|
||||
"jschardet": "2.2.1",
|
||||
"tas-client-umd": "0.1.2",
|
||||
"tas-client-umd": "0.1.4",
|
||||
"vscode-oniguruma": "1.3.1",
|
||||
"vscode-textmate": "5.2.0",
|
||||
"xterm": "4.12.0-beta.3",
|
||||
|
|
|
@ -12,10 +12,10 @@ jschardet@2.2.1:
|
|||
resolved "https://registry.yarnpkg.com/jschardet/-/jschardet-2.2.1.tgz#03b0264669a90c7a5c436a68c5a7d4e4cb0c9823"
|
||||
integrity sha512-Ks2JNuUJoc7PGaZ7bVFtSEvOcr0rBq6Q1J5/7+zKWLT+g+4zziL63O0jg7y2jxhzIa1LVsHUbPXrbaWmz9iwDw==
|
||||
|
||||
tas-client-umd@0.1.2:
|
||||
version "0.1.2"
|
||||
resolved "https://registry.yarnpkg.com/tas-client-umd/-/tas-client-umd-0.1.2.tgz#fe93ae085f65424292ac79feff4f1add3e50e624"
|
||||
integrity sha512-rT9BdDCejckqOTQL2ShX67QtTiAUGbmPm5ZTC8giXobBvZC6JuvBVy5G32hoGZ3Q0dpTvMfgpf3iVFNN2F7wzg==
|
||||
tas-client-umd@0.1.4:
|
||||
version "0.1.4"
|
||||
resolved "https://registry.yarnpkg.com/tas-client-umd/-/tas-client-umd-0.1.4.tgz#49db4130dd63a8342fabf77185a740fc6a7bea80"
|
||||
integrity sha512-1hFqJeLD3ryNikniIaO7TItlXhS5vx7bJ+wbPDf8o+IifgwwOWK2ARisdEM9SnJd0ccfcwNPG6Po+RiKn5L2hg==
|
||||
|
||||
vscode-oniguruma@1.3.1:
|
||||
version "1.3.1"
|
||||
|
|
|
@ -359,10 +359,10 @@ spdlog@^0.11.1:
|
|||
mkdirp "^0.5.1"
|
||||
nan "^2.14.0"
|
||||
|
||||
tas-client-umd@0.1.2:
|
||||
version "0.1.2"
|
||||
resolved "https://registry.yarnpkg.com/tas-client-umd/-/tas-client-umd-0.1.2.tgz#fe93ae085f65424292ac79feff4f1add3e50e624"
|
||||
integrity sha512-rT9BdDCejckqOTQL2ShX67QtTiAUGbmPm5ZTC8giXobBvZC6JuvBVy5G32hoGZ3Q0dpTvMfgpf3iVFNN2F7wzg==
|
||||
tas-client-umd@0.1.4:
|
||||
version "0.1.4"
|
||||
resolved "https://registry.yarnpkg.com/tas-client-umd/-/tas-client-umd-0.1.4.tgz#49db4130dd63a8342fabf77185a740fc6a7bea80"
|
||||
integrity sha512-1hFqJeLD3ryNikniIaO7TItlXhS5vx7bJ+wbPDf8o+IifgwwOWK2ARisdEM9SnJd0ccfcwNPG6Po+RiKn5L2hg==
|
||||
|
||||
to-regex-range@^5.0.1:
|
||||
version "5.0.1"
|
||||
|
|
|
@ -184,6 +184,7 @@ export class ExperimentService implements ITASExperimentService {
|
|||
private tasClient: Promise<TASClient> | undefined;
|
||||
private telemetry: ExperimentServiceTelemetry | undefined;
|
||||
private static MEMENTO_ID = 'experiment.service.memento';
|
||||
private networkInitialized = false;
|
||||
|
||||
private overrideInitDelay: Promise<void>;
|
||||
|
||||
|
@ -228,7 +229,13 @@ export class ExperimentService implements ITASExperimentService {
|
|||
return undefined;
|
||||
}
|
||||
|
||||
const result = (await this.tasClient).getTreatmentVariable<T>('vscode', name);
|
||||
let result: T | undefined;
|
||||
const client = await this.tasClient;
|
||||
if (this.networkInitialized) {
|
||||
result = client.getTreatmentVariable<T>('vscode', name);
|
||||
} else {
|
||||
result = await client.getTreatmentVariableAsync<T>('vscode', name, true);
|
||||
}
|
||||
|
||||
type TAASClientReadTreatmentData = {
|
||||
treatmentName: string;
|
||||
|
@ -291,7 +298,8 @@ export class ExperimentService implements ITASExperimentService {
|
|||
});
|
||||
|
||||
await tasClient.initializePromise;
|
||||
await tasClient.getTreatmentVariableAsync('vscode', 'initialize');
|
||||
|
||||
tasClient.initialFetch.then(() => this.networkInitialized = true);
|
||||
|
||||
type TAASClientSetupData = { setupTime: number; };
|
||||
type TAASClientSetupCalssification = { setupTime: { classification: 'SystemMetaData', purpose: 'PerformanceAndHealth', isMeasurement: true }; };
|
||||
|
|
|
@ -9320,10 +9320,10 @@ tar@^6.0.1, tar@^6.0.2:
|
|||
mkdirp "^1.0.3"
|
||||
yallist "^4.0.0"
|
||||
|
||||
tas-client-umd@0.1.2:
|
||||
version "0.1.2"
|
||||
resolved "https://registry.yarnpkg.com/tas-client-umd/-/tas-client-umd-0.1.2.tgz#fe93ae085f65424292ac79feff4f1add3e50e624"
|
||||
integrity sha512-rT9BdDCejckqOTQL2ShX67QtTiAUGbmPm5ZTC8giXobBvZC6JuvBVy5G32hoGZ3Q0dpTvMfgpf3iVFNN2F7wzg==
|
||||
tas-client-umd@0.1.4:
|
||||
version "0.1.4"
|
||||
resolved "https://registry.yarnpkg.com/tas-client-umd/-/tas-client-umd-0.1.4.tgz#49db4130dd63a8342fabf77185a740fc6a7bea80"
|
||||
integrity sha512-1hFqJeLD3ryNikniIaO7TItlXhS5vx7bJ+wbPDf8o+IifgwwOWK2ARisdEM9SnJd0ccfcwNPG6Po+RiKn5L2hg==
|
||||
|
||||
temp@^0.8.3:
|
||||
version "0.8.4"
|
||||
|
|
Loading…
Reference in a new issue