Skip to content

Commit ffe6e29

Browse files
committed
Remove notebook.trust command
1 parent 65c6a0a commit ffe6e29

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

src/vs/workbench/contrib/notebook/browser/contrib/coreActions.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,19 +1493,6 @@ registerAction2(class extends ChangeNotebookCellMetadataAction {
14931493
}
14941494
});
14951495

1496-
// Revisit once we have a story for trusted workspace
1497-
CommandsRegistry.registerCommand('notebook.trust', (accessor, args) => {
1498-
const uri = URI.revive(args as UriComponents);
1499-
const notebookService = accessor.get<INotebookService>(INotebookService);
1500-
1501-
1502-
const document = notebookService.listNotebookDocuments().find(document => document.uri.toString() === uri.toString());
1503-
1504-
if (document) {
1505-
document.applyEdits([{ editType: CellEditType.DocumentMetadata, metadata: { ...document.metadata, ...{ trusted: true } } }], true, undefined, () => undefined, undefined, false);
1506-
}
1507-
});
1508-
15091496
CommandsRegistry.registerCommand('_resolveNotebookContentProvider', (accessor, args): {
15101497
viewType: string;
15111498
displayName: string;

0 commit comments

Comments
 (0)