mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
* saving untested work * fixes for #8165 and #8167 * minor fixes * fix for #8260 * minor quoting fixes * fix for #8264 * minor fixes * minor fixes. * move tools constants to their own files * remove execution cell results from notebooks. * remove extraneous changes * move ensuring of StoragePath to platformservice * remove fix for #8264 pending pm input
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
import { NoteBookEnvironmentVariablePrefix } from '../interfaces';
|
||||
|
||||
export class Model {
|
||||
private propValueObject: { [s: string]: string | undefined } = {};
|
||||
@@ -32,7 +33,7 @@ export class Model {
|
||||
}
|
||||
|
||||
public setEnvironmentVariables(): void {
|
||||
Object.keys(this.propValueObject).filter(propertyName => propertyName.startsWith('AZDATA_NB_VAR_')).forEach(propertyName => {
|
||||
Object.keys(this.propValueObject).filter(propertyName => propertyName.startsWith(NoteBookEnvironmentVariablePrefix)).forEach(propertyName => {
|
||||
const value = this.getStringValue(propertyName);
|
||||
if (value !== undefined && value !== '') {
|
||||
process.env[propertyName] = value;
|
||||
|
||||
Reference in New Issue
Block a user