Remove path from github-authentication

This commit is contained in:
Rachel Macfarlane 2021-04-20 16:48:58 -07:00
parent 1d54cdf54a
commit c67ac5d083
No known key found for this signature in database
GPG key ID: D6C324F0F27A078C

View file

@ -3,7 +3,6 @@
* 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 * as path from 'path';
import * as vscode from 'vscode'; import * as vscode from 'vscode';
import TelemetryReporter from 'vscode-extension-telemetry'; import TelemetryReporter from 'vscode-extension-telemetry';
import { getExperimentationService, IExperimentationService, IExperimentationTelemetry, TargetPopulation } from 'vscode-tas-client'; import { getExperimentationService, IExperimentationService, IExperimentationTelemetry, TargetPopulation } from 'vscode-tas-client';
@ -57,7 +56,7 @@ interface ProductConfiguration {
} }
async function getProductConfig(appRoot: string): Promise<ProductConfiguration> { async function getProductConfig(appRoot: string): Promise<ProductConfiguration> {
const raw = await vscode.workspace.fs.readFile(vscode.Uri.file(path.join(appRoot, 'product.json'))); const raw = await vscode.workspace.fs.readFile((vscode.Uri.joinPath(vscode.Uri.file(appRoot), 'product.json')));
return JSON.parse(raw.toString()); return JSON.parse(raw.toString());
} }