File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
client/datascience/notebook Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -180,6 +180,9 @@ export class NotebookEditorProvider implements INotebookEditorProvider {
180
180
const deferred = this . notebooksWaitingToBeOpenedByUri . get ( uri . toString ( ) ) ! ;
181
181
deferred . resolve ( editor ) ;
182
182
this . notebookEditorsByUri . set ( uri . toString ( ) , editor ) ;
183
+ if ( ! model . isTrusted ) {
184
+ await this . commandManager . executeCommand ( Commands . TrustNotebook , model . file ) ;
185
+ }
183
186
}
184
187
private onDidChangeActiveVsCodeNotebookEditor ( editor : VSCodeNotebookEditor | undefined ) {
185
188
if ( ! editor ) {
Original file line number Diff line number Diff line change 24
24
"files.autoSave" : " off" ,
25
25
// We don't want jupyter to start when testing (DS functionality or anything else).
26
26
"python.dataScience.disableJupyterAutoStart" : true ,
27
- "python.logging.level" : " debug"
27
+ "python.logging.level" : " debug" ,
28
+ "python.dataScience.alwaysTrustNotebooks" : true // In UI tests we don't want prompts for `Do you want to trust thie nb...`
28
29
}
You can’t perform that action at this time.
0 commit comments