Files
vscode/extensions/vscode-notebook-tests/package.json
Connor Peet 24b712d7c2 notebooks: remove impure renderer API
This removes the initial notebook renderer API and keeps the 'pure'
renderer API described in #102644 and hacked-in previously.

Remaining work in this area, in no particular order:

- Add messaging context to postMessage as requested by Don (API proposal TBA)
- Cleanups around how state is managed internally in the backLayerWebView
- Deprecate the renderer `viewType` in favor of calling it the `id` or `rendererId`

Q: I kept around some of the "transform" functions since the mime type
picking happens there, not sure if there's a better place for this
to happen now, or whether these methods should simply be renamed.
2020-08-19 15:47:02 -07:00

84 lines
2.1 KiB
JSON

{
"name": "vscode-notebook-tests",
"description": "Notebook tests for VS Code",
"version": "0.0.1",
"publisher": "vscode",
"license": "MIT",
"private": true,
"activationEvents": [
"*"
],
"main": "./out/notebookTestMain",
"enableProposedApi": true,
"engines": {
"vscode": "^1.25.0"
},
"scripts": {
"compile": "node ./node_modules/vscode/bin/compile -watch -p ./",
"vscode:prepublish": "node ../../node_modules/gulp/bin/gulp.js --gulpfile ../../build/gulpfile.extensions.js compile-extension:vscode-notebook-tests ./tsconfig.json"
},
"dependencies": {},
"devDependencies": {
"typescript": "^3.8.3",
"@types/node": "^12.11.7",
"mocha-junit-reporter": "^1.17.0",
"mocha-multi-reporters": "^1.1.7",
"vscode": "~1.1.36",
"mocha": "^2.3.3"
},
"contributes": {
"commands": [
{
"command": "vscode-notebook-tests.createNewNotebook",
"title": "Create New Notebook"
},
{
"command": "vscode-notebook-tests.debugAction",
"title": "Debug Notebook Test Cell Action",
"icon": "$(debug)"
}
],
"notebookProvider": [
{
"viewType": "notebookCoreTest",
"displayName": "Notebook Core Test",
"selector": [
{
"filenamePattern": "*.vsctestnb",
"excludeFileNamePattern": ""
}
]
},
{
"viewType": "notebookSmokeTest",
"displayName": "Notebook Smoke Test",
"selector": [
{
"filenamePattern": "*.smoke-nb",
"excludeFileNamePattern": ""
}
]
}
],
"notebookOutputRenderer": [
{
"viewType": "notebookCoreTestRenderer",
"displayName": "Notebook Core Test Renderer",
"entrypoint": "./src/customRenderer.js",
"mimeTypes": [
"text/custom"
]
}
],
"menus": {
"notebook/cell/title": [
{
"command": "vscode-notebook-tests.debugAction",
"when": "notebookViewType == notebookSmokeTest",
"group": "inline@1"
}
]
}
}
}