update tas-client-umd

This commit is contained in:
SteVen Batten 2021-03-22 14:02:06 -07:00
parent 7e719d3f04
commit 4977db85c0
7 changed files with 25 additions and 17 deletions

View file

@ -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",

View file

@ -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",

View file

@ -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",

View file

@ -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"

View file

@ -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"

View file

@ -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 }; };

View file

@ -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"