mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Add support for low-privileged user to run spark notebooks (#12883)
* Add support for low-privileged user to run spark notebooks * error * fix test
This commit is contained in:
@@ -17,6 +17,8 @@ import { BuiltInCommands, unsavedBooksContextKey } from './common/constants';
|
||||
import { RemoteBookController } from './book/remoteBookController';
|
||||
import { RemoteBookDialog } from './dialog/remoteBookDialog';
|
||||
import { RemoteBookDialogModel } from './dialog/remoteBookDialogModel';
|
||||
import { IconPathHelper } from './common/iconHelper';
|
||||
import { ExtensionContextHelper } from './common/extensionContextHelper';
|
||||
|
||||
const localize = nls.loadMessageBundle();
|
||||
|
||||
@@ -24,6 +26,9 @@ let controller: JupyterController;
|
||||
type ChooseCellType = { label: string, id: CellType };
|
||||
|
||||
export async function activate(extensionContext: vscode.ExtensionContext): Promise<IExtensionApi> {
|
||||
ExtensionContextHelper.setExtensionContext(extensionContext);
|
||||
IconPathHelper.setExtensionContext(extensionContext);
|
||||
|
||||
const appContext = new AppContext(extensionContext);
|
||||
const createBookPath: string = path.posix.join(extensionContext.extensionPath, 'resources', 'notebooks', 'JupyterBooksCreate.ipynb');
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user