mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 13:00:58 +00: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:
parent
d466ee95c1
commit
b2bbd76e80
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue