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:
Charles Gagnon
2020-10-13 09:29:00 -07:00
committed by GitHub
parent 10d3a6b2ba
commit 1c279675c8
19 changed files with 287 additions and 121 deletions

View File

@@ -11,7 +11,7 @@ import * as path from 'path';
import * as querystring from 'querystring';
import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();
import { IQuestion, confirm } from '../prompts/question';
import { IQuestion, QuestionTypes } from '../prompts/question';
import CodeAdapter from '../prompts/adapter';
import { getErrorMessage, isEditorTitleFree } from '../common/utils';
import * as constants from '../common/constants';
@@ -61,7 +61,7 @@ export class NotebookUriHandler implements vscode.UriHandler {
}
let doOpen = await this.prompter.promptSingle<boolean>(<IQuestion>{
type: confirm,
type: QuestionTypes.confirm,
message: localize('notebook.confirmOpen', "Download and open '{0}'?", url),
default: true
});