TSGops -image (Light version of ADSWeb) (#17768)

* rough changes for adsweb-lite

* commit id of latest quality

* fix for aria label

* distro commit id changes

* merged latest changes distro id

* python path changes + quality name change

* Hide container views/settings/panel for ADSWeb

* undo unintentional change

* No python prompt changes for tsgops-image

* distro id changed for tsgops quality name

* changed quality name to tsgops

* changed name to tsgops-image

* python address change

* unintended changes undo

* correct python installation path for tsgops

* enable preview features tsgops

* no prompt for tsgops-lite image

* revert preview feature change

* Fixes for few comments

* removed extra line

* add deleted line

* Addressed comments

* Addressed final comments

* eslint error fix

* fix

Co-authored-by: Monica Gupta <mogupt@microsoft.com>
This commit is contained in:
Monica Gupta
2022-02-02 16:57:59 -08:00
committed by GitHub
parent 644d24ca13
commit 8685137c27
8 changed files with 186 additions and 40 deletions

View File

@@ -133,18 +133,24 @@ export class JupyterServerInstallation implements IJupyterServerInstallation {
private readonly _requiredPackagesSet: Set<string>;
private readonly _runningOnSAW: boolean;
private readonly _tsgopsweb: boolean;
constructor(extensionPath: string, outputChannel: vscode.OutputChannel) {
this.extensionPath = extensionPath;
this.outputChannel = outputChannel;
this._runningOnSAW = vscode.env.appName.toLowerCase().indexOf('saw') > 0;
this._tsgopsweb = vscode.env.appName.toLowerCase().indexOf('tsgops') > 0;
void vscode.commands.executeCommand(constants.BuiltInCommands.SetContext, 'notebook:runningOnSAW', this._runningOnSAW);
if (this._runningOnSAW) {
this._pythonInstallationPath = `${vscode.env.appRoot}\\ads-python`;
this._usingExistingPython = true;
} else {
} else if (this._tsgopsweb) {
this._pythonInstallationPath = `/usr`;
this._usingExistingPython = true;
}
else {
this._pythonInstallationPath = JupyterServerInstallation.getPythonInstallPath();
this._usingExistingPython = JupyterServerInstallation.getExistingPythonSetting();
}
@@ -497,7 +503,7 @@ export class JupyterServerInstallation implements IJupyterServerInstallation {
* Opens a dialog for configuring the installation path for the Notebook Python dependencies.
*/
public async promptForPythonInstall(kernelDisplayName: string): Promise<void> {
if (this._runningOnSAW) {
if (this._runningOnSAW || this._tsgopsweb) {
return Promise.resolve();
}
if (this._installInProgress) {