|
43 | 43 | "onCommand:PowerShell.RegisterExternalExtension",
|
44 | 44 | "onCommand:PowerShell.UnregisterExternalExtension",
|
45 | 45 | "onCommand:PowerShell.GetPowerShellVersionDetails",
|
46 |
| - "onView:PowerShellCommands", |
47 |
| - "onNotebook:PowerShellNotebookModeDefault", |
48 |
| - "onNotebookEditor:PowerShellNotebookModeDefault", |
49 |
| - "onNotebook:PowerShellNotebookModeOption", |
50 |
| - "onNotebookEditor:PowerShellNotebookModeOption" |
| 46 | + "onView:PowerShellCommands" |
51 | 47 | ],
|
52 | 48 | "dependencies": {
|
53 | 49 | "node-fetch": "~2.6.1",
|
|
77 | 73 | "tslint": "~6.1.3",
|
78 | 74 | "typescript": "~4.1.5",
|
79 | 75 | "vsce": "~1.85.0",
|
80 |
| - "vscode-dts": "~0.3.1", |
81 | 76 | "vscode-test": "~1.4.0"
|
82 | 77 | },
|
83 | 78 | "extensionDependencies": [
|
|
86 | 81 | "scripts": {
|
87 | 82 | "compile": "tsc -v && tsc -p ./ && tslint -p ./",
|
88 | 83 | "compile-watch": "tsc -watch -p ./",
|
89 |
| - "test": "node ./out/test/runTests.js", |
90 |
| - "download-api": "vscode-dts dev" |
| 84 | + "test": "node ./out/test/runTests.js" |
91 | 85 | },
|
92 | 86 | "contributes": {
|
93 | 87 | "breakpoints": [
|
|
113 | 107 | }
|
114 | 108 | ]
|
115 | 109 | },
|
116 |
| - "notebookProvider": [ |
117 |
| - { |
118 |
| - "viewType": "PowerShellNotebookModeDefault", |
119 |
| - "displayName": "Powershell Notebook", |
120 |
| - "selector": [ |
121 |
| - { |
122 |
| - "filenamePattern": "*.[Nn]otebook.ps1" |
123 |
| - } |
124 |
| - ], |
125 |
| - "priority": "default" |
126 |
| - }, |
127 |
| - { |
128 |
| - "viewType": "PowerShellNotebookModeOption", |
129 |
| - "displayName": "Powershell Notebook", |
130 |
| - "selector": [ |
131 |
| - { |
132 |
| - "excludeFileNamePattern": "*.Notebook.ps1", |
133 |
| - "filenamePattern": "*.ps1" |
134 |
| - } |
135 |
| - ], |
136 |
| - "priority": "option" |
137 |
| - } |
138 |
| - ], |
139 | 110 | "keybindings": [
|
140 | 111 | {
|
141 | 112 | "command": "PowerShell.ShowHelp",
|
|
231 | 202 | "dark": "resources/dark/play.svg"
|
232 | 203 | }
|
233 | 204 | },
|
234 |
| - { |
235 |
| - "command": "PowerShell.EnableNotebookMode", |
236 |
| - "title": "(Preview) Enable Notebook Mode", |
237 |
| - "category": "PowerShell", |
238 |
| - "icon": { |
239 |
| - "light": "resources/light/book.svg", |
240 |
| - "dark": "resources/dark/book.svg" |
241 |
| - } |
242 |
| - }, |
243 |
| - { |
244 |
| - "command": "PowerShell.DisableNotebookMode", |
245 |
| - "title": "(Preview) Disable Notebook Mode", |
246 |
| - "category": "PowerShell", |
247 |
| - "icon": { |
248 |
| - "light": "resources/light/file-code.svg", |
249 |
| - "dark": "resources/dark/file-code.svg" |
250 |
| - } |
251 |
| - }, |
252 | 205 | {
|
253 | 206 | "command": "PowerShell.RestartSession",
|
254 | 207 | "title": "Restart Current Session",
|
|
424 | 377 | "when": "editorLangId == powershell && config.powershell.buttons.showRunButtons",
|
425 | 378 | "command": "PowerShell.RunSelection",
|
426 | 379 | "group": "navigation@101"
|
427 |
| - }, |
428 |
| - { |
429 |
| - "when": "editorLangId == powershell && config.powershell.notebooks.showToggleButton", |
430 |
| - "command": "PowerShell.EnableNotebookMode", |
431 |
| - "group": "navigation@102" |
432 |
| - }, |
433 |
| - { |
434 |
| - "when": "resourceLangId == powershell && notebookEditorFocused", |
435 |
| - "command": "PowerShell.DisableNotebookMode", |
436 |
| - "group": "navigation@102" |
437 | 380 | }
|
438 | 381 | ],
|
439 | 382 | "editor/title/context": [
|
|
949 | 892 | "type": "boolean",
|
950 | 893 | "default": false,
|
951 | 894 | "description": "Show buttons in the editor titlebar for moving the panel around."
|
952 |
| - }, |
953 |
| - "powershell.notebooks.showToggleButton": { |
954 |
| - "type": "boolean", |
955 |
| - "default": false, |
956 |
| - "description": "Controls whether we show or hide the buttons to toggle Notebook mode in the top right." |
957 |
| - }, |
958 |
| - "powershell.notebooks.saveMarkdownCellsAs": { |
959 |
| - "type": "string", |
960 |
| - "enum": [ |
961 |
| - "BlockComment", |
962 |
| - "LineComment" |
963 |
| - ], |
964 |
| - "default": "BlockComment", |
965 |
| - "description": "Controls what new markdown cells in Notebook Mode get saved as in the PowerShell file." |
966 | 895 | }
|
967 | 896 | }
|
968 | 897 | },
|
|
0 commit comments