mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
fix notebook renderers
This commit is contained in:
@@ -65,8 +65,7 @@ const domEval = (container: Element) => {
|
||||
for (const key of preservedScriptAttributes) {
|
||||
const val = node[key] || node.getAttribute && node.getAttribute(key);
|
||||
if (val) {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
scriptTag.setAttribute(key, val as any);
|
||||
scriptTag.setAttribute(key, val as unknown as string);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -127,15 +127,13 @@ suite('Notebook builtin output renderer', () => {
|
||||
return text;
|
||||
},
|
||||
blob() {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
return [] as any;
|
||||
return new Blob([text], { type: mime });
|
||||
},
|
||||
json() {
|
||||
return '{ }';
|
||||
},
|
||||
data() {
|
||||
// eslint-disable-next-line local/code-no-any-casts
|
||||
return [] as any;
|
||||
return new Uint8Array();
|
||||
},
|
||||
metadata: {}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user