mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-16 09:35:36 -05:00
This was reviewed / worked on with Smitha and will be signed off on by PM via mail. 1 thing left (make run button look better when not selected) will be one in separate review. Changes - Add top/bottom padding to editor so it's not cramped - Added an (on by default) setting `notebook.overrideEditorTheming`. This controls whether new colors etc. are used for notebook editors or if users should see vanilla UI like in standard editor. Settings under this flag are: - When unselected, editor has same color as toolbar. On selection it goes back to regular editor view so colors work "right" - In standard light/dark themes we now use a filled in background color instead of border box.
136 lines
3.1 KiB
JSON
136 lines
3.1 KiB
JSON
{
|
|
"name": "notebook",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "0.1.0",
|
|
"publisher": "Microsoft",
|
|
"engines": {
|
|
"vscode": "*",
|
|
"sqlops": "*"
|
|
},
|
|
"main": "./out/extension",
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"contributes": {
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "%notebook.configuration.title%",
|
|
"properties": {
|
|
"notebook.pythonPath": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "%notebook.pythonPath.description%"
|
|
},
|
|
"notebook.sqlKernelEnabled": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%notebook.sqlKernelEnabled.description%"
|
|
},
|
|
"notebook.overrideEditorTheming": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%notebook.overrideEditorTheming.description%"
|
|
}
|
|
}
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "notebook.command.analyzeNotebook",
|
|
"title": "%notebook.analyzeJupyterNotebook%"
|
|
},
|
|
{
|
|
"command": "notebook.command.new",
|
|
"title": "%notebook.command.new%",
|
|
"icon": {
|
|
"dark": "resources/dark/new_notebook_inverse.svg",
|
|
"light": "resources/light/new_notebook.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "notebook.command.open",
|
|
"title": "%notebook.command.open%",
|
|
"icon": {
|
|
"dark": "resources/dark/open_notebook_inverse.svg",
|
|
"light": "resources/light/open_notebook.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "notebook.command.runactivecell",
|
|
"title": "%notebook.command.runactivecell%"
|
|
},
|
|
{
|
|
"command": "notebook.command.addcode",
|
|
"title": "%notebook.command.addcode%"
|
|
},
|
|
{
|
|
"command": "notebook.command.addtext",
|
|
"title": "%notebook.command.addtext%"
|
|
}
|
|
],
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "notebook.command.analyzeNotebook"
|
|
},
|
|
{
|
|
"command": "notebook.command.new"
|
|
},
|
|
{
|
|
"command": "notebook.command.open"
|
|
},
|
|
{
|
|
"command": "notebook.command.runactivecell",
|
|
"when": "notebookEditorVisible"
|
|
},
|
|
{
|
|
"command": "notebook.command.addcode",
|
|
"when": "notebookEditorVisible"
|
|
},
|
|
{
|
|
"command": "notebook.command.addtext",
|
|
"when": "notebookEditorVisible"
|
|
}
|
|
],
|
|
"objectExplorer/item/context": [
|
|
{
|
|
"command": "notebook.command.new",
|
|
"when": "connectionProvider == MSSQL && nodeType && nodeType == Server",
|
|
"group": "1root@1"
|
|
},
|
|
{
|
|
"command": "notebook.command.analyzeNotebook",
|
|
"when": "nodeType=~/^mssqlCluster/ && nodeLabel=~/[^\\s]+(\\.(csv|tsv|txt))$/ && nodeType == mssqlCluster:file",
|
|
"group": "1notebook@1"
|
|
}
|
|
]
|
|
},
|
|
"keybindings": [
|
|
{
|
|
"command": "notebook.command.new",
|
|
"key": "Ctrl+Shift+N"
|
|
},
|
|
{
|
|
"command": "notebook.command.runactivecell",
|
|
"key": "F5",
|
|
"when": "notebookEditorVisible"
|
|
},
|
|
{
|
|
"command": "notebook.command.addcode",
|
|
"key": "Ctrl+Shift+C",
|
|
"when": "notebookEditorVisible"
|
|
},
|
|
{
|
|
"command": "notebook.command.addtext",
|
|
"key": "Ctrl+Shift+T",
|
|
"when": "notebookEditorVisible"
|
|
}
|
|
]
|
|
},
|
|
"dependencies": {
|
|
"vscode-nls": "^4.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "8.0.33"
|
|
}
|
|
} |