mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 12:19:20 +00:00
Handle no github auth config
This commit is contained in:
@@ -17,7 +17,14 @@ export class Registrar {
|
||||
private _config: ClientConfig;
|
||||
|
||||
constructor() {
|
||||
this._config = require('./config.json') as ClientConfig;
|
||||
try {
|
||||
this._config = require('./config.json') as ClientConfig;
|
||||
} catch (e) {
|
||||
this._config = {
|
||||
OSS: {},
|
||||
INSIDERS: {}
|
||||
};
|
||||
}
|
||||
}
|
||||
getClientDetails(product: string): ClientDetails {
|
||||
let details: ClientDetails | undefined;
|
||||
|
||||
Reference in New Issue
Block a user