mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-29 21:11:38 +01:00
Fix writing kernelspec
For #130602 I think we need to write it into metadata section instead of the top level
This commit is contained in:
@@ -33,7 +33,10 @@ export function activate(context: vscode.ExtensionContext) {
|
||||
...document.metadata,
|
||||
custom: {
|
||||
...(document.metadata.custom ?? {}),
|
||||
kernelspec: kernelspec
|
||||
metadata: {
|
||||
...(document.metadata.custom?.metadata ?? {}),
|
||||
kernelspec: kernelspec
|
||||
},
|
||||
}
|
||||
});
|
||||
return vscode.workspace.applyEdit(edit);
|
||||
|
||||
Reference in New Issue
Block a user