mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-01-14 17:22:20 -05:00
* Reworking notebook action bar functionality and appearance. * added separator * Revised notebookActions for collapse, clear and trusted such that they can be implemented with a boolean set to T of F and show labels or shift them into tooltip for accessibility. Updated styles for select boxes. Added toolbar icons to common icon location. Split icon definition for use as masked or background-image. * Completed styles for action icons: collapse, clear and trusted. Added theme colors. Simplified icon behavior styles. * Made maskedIconClass optional. Added theme colors for toolbar icons, select box border and dropdown arrow. Experimenting with adding masked icon to pseudo element so I can pull out label text from icons. * Added icons styles to handle masked SVG elements as pseudo element beside button text. Added icons using this method to respect the color theming system. * Adjusted styles for the cell and run all icons in notebook toolbar. * Prepped notebook toolbar with placeholder icon for Underline action. Implemented Underline action. Added custom --wip-- ButtonMenu control, a modified copy of DropDown. * Revised colorRegistry and corresponding notebook styles. Removed unused code from new custom control: buttonMneu. Revised icon styles to create a dropdown arrow for buttonMenu. * Added new icon for Underline action. * Removed comment from needed markup. * Replaced actionItemProvider with optional undefined per DropdownMenuActionViewItem constructor. * Cleaned up new control, removing unneeded code and referencing what the class needs. Corrected style declaration for overriding input box padding. Removed unused notebook color styles. Scoped element styles to the toolbar so others outside the toolbar are not affected. * Removed unnecessary !important from style override. * Removed reference to unused color entry. * Syntax cleanup. * Put notebook toolbar improvements behind the preview flag. This involves some conditionals and CSS classes. * Updated icon used for Manage Packages. Created and updated styles for notebook toolbar icon spacing. Modified notebook.component contributed actions so that the label text is shifted into the title attribute. Added new icon for Not Trusted toggle. * Replaced SVG code for not-trusted icon. * Addressed PR feedback: changed masked classname. Revised component and CSS accordingly. Removed unnecessary instance of in-preview class. Fixed code logic that assigns label text to tooltip on incoming contributed action
571 lines
16 KiB
JSON
571 lines
16 KiB
JSON
{
|
|
"name": "notebook",
|
|
"displayName": "%displayName%",
|
|
"description": "%description%",
|
|
"version": "0.1.0",
|
|
"publisher": "Microsoft",
|
|
"engines": {
|
|
"vscode": "*",
|
|
"azdata": "*"
|
|
},
|
|
"main": "./out/extension",
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"contributes": {
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "%notebook.configuration.title%",
|
|
"properties": {
|
|
"notebook.maxBookSearchDepth": {
|
|
"type": "number",
|
|
"default": 10,
|
|
"description": "%notebook.maxBookSearchDepth.description%"
|
|
},
|
|
"notebook.pythonPath": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "%notebook.pythonPath.description%"
|
|
},
|
|
"notebook.useExistingPython": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%notebook.useExistingPython.description%"
|
|
},
|
|
"notebook.overrideEditorTheming": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%notebook.overrideEditorTheming.description%"
|
|
},
|
|
"notebook.maxTableRows": {
|
|
"type": "number",
|
|
"default": 5000,
|
|
"description": "%notebook.maxTableRows.description%"
|
|
},
|
|
"notebook.trustedBooks": {
|
|
"type": "array",
|
|
"default": [],
|
|
"description": "%notebook.trustedBooks.description%",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"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%",
|
|
"icon": "resources/dark/touchbar_run_cell.png"
|
|
},
|
|
{
|
|
"command": "notebook.command.clearactivecellresult",
|
|
"title": "%notebook.command.clearactivecellresult%"
|
|
},
|
|
{
|
|
"command": "notebook.command.runallcells",
|
|
"title": "%notebook.command.runallcells%"
|
|
},
|
|
{
|
|
"command": "notebook.command.addcode",
|
|
"title": "%notebook.command.addcode%"
|
|
},
|
|
{
|
|
"command": "notebook.command.addtext",
|
|
"title": "%notebook.command.addtext%"
|
|
},
|
|
{
|
|
"command": "notebook.command.addcell",
|
|
"title": "%notebook.command.addcell%",
|
|
"icon": "resources/dark/touchbar_add_cell.png"
|
|
},
|
|
{
|
|
"command": "jupyter.cmd.analyzeNotebook",
|
|
"title": "%title.analyzeJupyterNotebook%"
|
|
},
|
|
{
|
|
"command": "jupyter.task.newNotebook",
|
|
"title": "%title.newJupyterNotebook%",
|
|
"icon": {
|
|
"dark": "resources/dark/new_notebook_inverse.svg",
|
|
"light": "resources/light/new_notebook.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "jupyter.task.openNotebook",
|
|
"title": "%title.openJupyterNotebook%",
|
|
"icon": {
|
|
"dark": "resources/dark/open_notebook_inverse.svg",
|
|
"light": "resources/light/open_notebook.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "jupyter.cmd.newNotebook",
|
|
"title": "%title.newJupyterNotebook%",
|
|
"icon": {
|
|
"dark": "resources/dark/new_notebook_inverse.svg",
|
|
"light": "resources/light/new_notebook.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "jupyter.cmd.managePackages",
|
|
"title": "%title.managePackages%",
|
|
"icon": {
|
|
"dark": "resources/dark/packages_inverse.svg",
|
|
"light": "resources/light/packages.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "jupyter.cmd.configurePython",
|
|
"title": "%title.configurePython%"
|
|
},
|
|
{
|
|
"command": "jupyter.reinstallDependencies",
|
|
"title": "%title.reinstallNotebookDependencies%"
|
|
},
|
|
{
|
|
"command": "books.sqlserver2019",
|
|
"title": "%title.SQL19PreviewBook%",
|
|
"category": "%books-preview-category%"
|
|
},
|
|
{
|
|
"command": "books.command.openLocalizedBooks",
|
|
"title": "%title.PreviewLocalizedBook%",
|
|
"category": "%books-preview-category%"
|
|
},
|
|
{
|
|
"command": "notebook.command.revealInBooksViewlet",
|
|
"title": "%title.revealInBooksViewlet%",
|
|
"category": "%books-preview-category%"
|
|
},
|
|
{
|
|
"command": "notebook.command.saveBook",
|
|
"title": "%title.saveJupyterBook%",
|
|
"category": "%books-preview-category%",
|
|
"icon": {
|
|
"dark": "resources/dark/save_inverse.svg",
|
|
"light": "resources/light/save.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "notebook.command.trustBook",
|
|
"title": "%title.trustBook%",
|
|
"category": "%books-preview-category%",
|
|
"icon": {
|
|
"dark": "resources/dark/trust_inverse.svg",
|
|
"light": "resources/light/trust.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "notebook.command.searchBook",
|
|
"title": "%title.searchJupyterBook%",
|
|
"category": "%books-preview-category%",
|
|
"icon": {
|
|
"dark": "resources/dark/search_inverse.svg",
|
|
"light": "resources/light/search.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "notebook.command.searchUntitledBook",
|
|
"title": "%title.searchJupyterBook%",
|
|
"category": "%books-preview-category%",
|
|
"icon": {
|
|
"dark": "resources/dark/search_inverse.svg",
|
|
"light": "resources/light/search.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "notebook.command.openBook",
|
|
"title": "%title.openJupyterBook%",
|
|
"category": "%books-preview-category%",
|
|
"icon": {
|
|
"dark": "resources/dark/open_notebook_inverse.svg",
|
|
"light": "resources/light/open_notebook.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "notebook.command.openNotebookFolder",
|
|
"title": "%title.openNotebookFolder%",
|
|
"category": "%books-preview-category%",
|
|
"icon": {
|
|
"dark": "resources/dark/open_folder_inverse.svg",
|
|
"light": "resources/light/open_folder.svg"
|
|
}
|
|
},
|
|
{
|
|
"command": "notebook.command.closeBook",
|
|
"title": "%title.closeJupyterBook%"
|
|
},
|
|
{
|
|
"command": "notebook.command.closeNotebook",
|
|
"title": "%title.closeJupyterNotebook%"
|
|
},
|
|
{
|
|
"command": "notebook.command.createBook",
|
|
"title": "%title.createJupyterBook%",
|
|
"category": "%books-preview-category%",
|
|
"icon": {
|
|
"dark": "resources/dark/open_notebook_inverse.svg",
|
|
"light": "resources/light/open_notebook.svg"
|
|
}
|
|
}
|
|
],
|
|
"languages": [
|
|
{
|
|
"id": "notebook",
|
|
"extensions": [
|
|
".ipynb"
|
|
],
|
|
"aliases": [
|
|
"Notebook"
|
|
],
|
|
"configuration": "./language-configuration.json"
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "notebook",
|
|
"scopeName": "source.notebook",
|
|
"path": "./syntaxes/notebook.tmLanguage.json"
|
|
}
|
|
],
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "notebook.command.analyzeNotebook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "_notebook.command.new",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.open"
|
|
},
|
|
{
|
|
"command": "notebook.command.runactivecell",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
},
|
|
{
|
|
"command": "notebook.command.clearactivecellresult",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
},
|
|
{
|
|
"command": "notebook.command.runallcells",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
},
|
|
{
|
|
"command": "notebook.command.addcode",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
},
|
|
{
|
|
"command": "notebook.command.addtext",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
},
|
|
{
|
|
"command": "notebook.command.addcell",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "jupyter.task.newNotebook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "jupyter.cmd.newNotebook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "jupyter.cmd.analyzeNotebook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "jupyter.task.openNotebook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "jupyter.cmd.managePackages",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "books.sqlserver2019",
|
|
"when": "sqlserver2019"
|
|
},
|
|
{
|
|
"command": "notebook.command.saveBook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.searchBook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.searchUntitledBook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.trustBook",
|
|
"when": "view == bookTreeView && viewItem == savedBook"
|
|
},
|
|
{
|
|
"command": "notebook.command.closeBook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.closeNotebook",
|
|
"when": "false"
|
|
},
|
|
{
|
|
"command": "notebook.command.revealInBooksViewlet",
|
|
"when": "false"
|
|
}
|
|
],
|
|
"touchBar": [
|
|
{
|
|
"command": "notebook.command.runactivecell",
|
|
"when": "activeEditor == workbench.editor.notebookEditor",
|
|
"group": "1_notebook@1"
|
|
},
|
|
{
|
|
"command": "notebook.command.addcell",
|
|
"when": "activeEditor == workbench.editor.notebookEditor",
|
|
"group": "1_notebook@2"
|
|
}
|
|
],
|
|
"objectExplorer/item/context": [
|
|
{
|
|
"command": "notebook.command.analyzeNotebook",
|
|
"when": "nodeType=~/^mssqlCluster/ && nodeLabel=~/[^\\s]+(\\.(csv|tsv|txt))$/ && nodeType == mssqlCluster:file",
|
|
"group": "1notebook@1"
|
|
},
|
|
{
|
|
"command": "jupyter.cmd.analyzeNotebook",
|
|
"when": "nodeType=~/^hdfs/ && nodeLabel=~/[^\\s]+(\\.(csv|tsv|txt))$/ && nodeType == hdfs:file",
|
|
"group": "1notebook@1"
|
|
}
|
|
],
|
|
"view/item/context": [
|
|
{
|
|
"command": "notebook.command.trustBook",
|
|
"when": "view == bookTreeView && viewItem == savedBook",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "notebook.command.searchBook",
|
|
"when": "view == bookTreeView && viewItem == savedBook || viewItem == section",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "notebook.command.searchUntitledBook",
|
|
"when": "view == unsavedBookTreeView && viewItem == unsavedBook && unsavedBooks",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "notebook.command.saveBook",
|
|
"when": "view == unsavedBookTreeView && viewItem == unsavedBook && unsavedBooks",
|
|
"group": "inline"
|
|
},
|
|
{
|
|
"command": "notebook.command.closeBook",
|
|
"when": "view == bookTreeView && viewItem == savedBook"
|
|
},
|
|
{
|
|
"command": "notebook.command.closeNotebook",
|
|
"when": "view == bookTreeView && viewItem == savedNotebook"
|
|
}
|
|
],
|
|
"view/title": [
|
|
{
|
|
"command": "notebook.command.openBook",
|
|
"when": "view == bookTreeView",
|
|
"group": "navigation"
|
|
},
|
|
{
|
|
"command": "notebook.command.createBook",
|
|
"when": "view == bookTreeView"
|
|
},
|
|
{
|
|
"command": "notebook.command.openNotebookFolder",
|
|
"when": "view == bookTreeView",
|
|
"group": "navigation"
|
|
}
|
|
],
|
|
"notebook/toolbar": [
|
|
{
|
|
"command": "jupyter.cmd.managePackages",
|
|
"when": "providerId == jupyter && notebook:pythonInstalled"
|
|
}
|
|
]
|
|
},
|
|
"keybindings": [
|
|
{
|
|
"command": "notebook.command.runactivecell",
|
|
"key": "F5",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
},
|
|
{
|
|
"command": "notebook.command.clearactivecellresult",
|
|
"key": "Ctrl+Shift+R",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
},
|
|
{
|
|
"command": "notebook.command.runallcells",
|
|
"key": "Ctrl+Shift+F5",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
},
|
|
{
|
|
"command": "notebook.command.addcode",
|
|
"key": "Ctrl+Shift+C",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
},
|
|
{
|
|
"command": "notebook.command.addtext",
|
|
"key": "Ctrl+Shift+T",
|
|
"when": "activeEditor == workbench.editor.notebookEditor"
|
|
}
|
|
],
|
|
"notebook.languagemagics": [
|
|
{
|
|
"magic": "lang_python",
|
|
"language": "python",
|
|
"executionTarget": null,
|
|
"kernels": [
|
|
"sql"
|
|
]
|
|
},
|
|
{
|
|
"magic": "lang_r",
|
|
"language": "r",
|
|
"executionTarget": null,
|
|
"kernels": [
|
|
"sql"
|
|
]
|
|
},
|
|
{
|
|
"magic": "lang_java",
|
|
"language": "java",
|
|
"executionTarget": null,
|
|
"kernels": [
|
|
"sql"
|
|
]
|
|
}
|
|
],
|
|
"notebook.providers": {
|
|
"provider": "jupyter",
|
|
"fileExtensions": [
|
|
"IPYNB"
|
|
],
|
|
"standardKernels": [
|
|
{
|
|
"name": "pysparkkernel",
|
|
"displayName": "PySpark",
|
|
"connectionProviderIds": [
|
|
"MSSQL"
|
|
]
|
|
},
|
|
{
|
|
"name": "sparkkernel",
|
|
"displayName": "Spark | Scala",
|
|
"connectionProviderIds": [
|
|
"MSSQL"
|
|
]
|
|
},
|
|
{
|
|
"name": "sparkrkernel",
|
|
"displayName": "Spark | R",
|
|
"connectionProviderIds": [
|
|
"MSSQL"
|
|
]
|
|
},
|
|
{
|
|
"name": "python3",
|
|
"displayName": "Python 3",
|
|
"connectionProviderIds": []
|
|
},
|
|
{
|
|
"name": "powershell",
|
|
"displayName": "PowerShell",
|
|
"connectionProviderIds": []
|
|
}
|
|
]
|
|
},
|
|
"viewsContainers": {
|
|
"activitybar": [
|
|
{
|
|
"id": "books-explorer",
|
|
"title": "Notebooks",
|
|
"icon": "resources/dark/JupyterBook_2.svg"
|
|
}
|
|
]
|
|
},
|
|
"views": {
|
|
"books-explorer": [
|
|
{
|
|
"id": "bookTreeView",
|
|
"name": "%title.SavedBooks%"
|
|
},
|
|
{
|
|
"id": "unsavedBookTreeView",
|
|
"name": "%title.UnsavedBooks%"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@jupyterlab/services": "^3.2.1",
|
|
"@types/adm-zip": "^0.4.32",
|
|
"@types/tar": "^4.0.3",
|
|
"adm-zip": "^0.4.14",
|
|
"error-ex": "^1.3.1",
|
|
"fast-glob": "^3.1.0",
|
|
"figures": "^2.0.0",
|
|
"fs-extra": "^5.0.0",
|
|
"glob": "^7.1.1",
|
|
"node-fetch": "^2.3.0",
|
|
"request": "^2.88.0",
|
|
"tar": "^6.0.1",
|
|
"temp-write": "^3.4.0",
|
|
"vscode-languageclient": "^5.3.0-next.1",
|
|
"vscode-nls": "^4.0.0",
|
|
"ws": "^7.2.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/fs-extra": "^5.0.0",
|
|
"@types/glob": "^7.1.1",
|
|
"@types/js-yaml": "^3.12.1",
|
|
"@types/mocha": "^5.2.5",
|
|
"@types/node": "^12.11.7",
|
|
"@types/request": "^2.48.1",
|
|
"@types/rimraf": "^2.0.2",
|
|
"@types/temp-write": "^3.3.0",
|
|
"@types/uuid": "^3.4.5",
|
|
"assert": "^1.4.1",
|
|
"mocha": "^5.2.0",
|
|
"mocha-junit-reporter": "^1.17.0",
|
|
"mocha-multi-reporters": "^1.1.7",
|
|
"should": "^13.2.3",
|
|
"typemoq": "^2.1.0",
|
|
"vscodetestcover": "github:corivera/vscodetestcover#1.0.6"
|
|
},
|
|
"enableProposedApi": true
|
|
}
|