|
30 | 30 | }, |
31 | 31 | "activationEvents": [ |
32 | 32 | "workspaceContains:**/*.{rproj,Rproj,r,R,rd,Rd,rmd,Rmd}", |
33 | | - "onCommand:r.runSelectionInActiveTerm", |
34 | 33 | "onWebviewPanel:rhelp", |
35 | 34 | "onLanguage:r", |
36 | 35 | "onLanguage:rmd" |
|
178 | 177 | } |
179 | 178 | ], |
180 | 179 | "commands": [ |
181 | | - { |
182 | | - "command": "r.liveShare.toggle", |
183 | | - "title": "Toggle Live Share", |
184 | | - "category": "R" |
185 | | - }, |
186 | | - { |
187 | | - "command": "r.liveShare.retry", |
188 | | - "title": "Retry Live Share", |
189 | | - "category": "R" |
190 | | - }, |
191 | 180 | { |
192 | 181 | "command": "r.workspaceViewer.refreshEntry", |
193 | 182 | "title": "Manual Refresh", |
|
250 | 239 | "category": "R" |
251 | 240 | }, |
252 | 241 | { |
253 | | - "command": "editor.action.webvieweditor.showFind", |
| 242 | + "command": "r.webview.find", |
254 | 243 | "title": "R: Find in WebView", |
255 | 244 | "icon": "$(search)", |
256 | 245 | "category": "R" |
|
856 | 845 | ], |
857 | 846 | "menus": { |
858 | 847 | "commandPalette": [ |
| 848 | + { |
| 849 | + "command": "r.plot.toggleStyle", |
| 850 | + "when": "false" |
| 851 | + }, |
| 852 | + { |
| 853 | + "command": "r.plot.toggleFullWindow", |
| 854 | + "when": "false" |
| 855 | + }, |
| 856 | + { |
| 857 | + "command": "r.plot.togglePreviewPlots", |
| 858 | + "when": "false" |
| 859 | + }, |
| 860 | + { |
| 861 | + "command": "r.plot.exportPlot", |
| 862 | + "when": "false" |
| 863 | + }, |
| 864 | + { |
| 865 | + "command": "r.plot.closePlot", |
| 866 | + "when": "false" |
| 867 | + }, |
| 868 | + { |
| 869 | + "command": "r.plot.hidePlot", |
| 870 | + "when": "false" |
| 871 | + }, |
| 872 | + { |
| 873 | + "command": "r.plot.resetPlots", |
| 874 | + "when": "false" |
| 875 | + }, |
| 876 | + { |
| 877 | + "command": "r.plot.prevPlot", |
| 878 | + "when": "false" |
| 879 | + }, |
| 880 | + { |
| 881 | + "command": "r.plot.nextPlot", |
| 882 | + "when": "false" |
| 883 | + }, |
| 884 | + { |
| 885 | + "command": "r.plot.firstPlot", |
| 886 | + "when": "false" |
| 887 | + }, |
| 888 | + { |
| 889 | + "command": "r.plot.lastPlot", |
| 890 | + "when": "false" |
| 891 | + }, |
| 892 | + { |
| 893 | + "command": "r.plot.zoomIn", |
| 894 | + "when": "false" |
| 895 | + }, |
| 896 | + { |
| 897 | + "command": "r.plot.zoomOut", |
| 898 | + "when": "false" |
| 899 | + }, |
| 900 | + { |
| 901 | + "command": "r.plot.openUrl", |
| 902 | + "when": "false" |
| 903 | + }, |
| 904 | + { |
| 905 | + "command": "r.plot.openExternal", |
| 906 | + "when": "false" |
| 907 | + }, |
859 | 908 | { |
860 | 909 | "command": "r.workspaceViewer.view", |
861 | 910 | "when": "false" |
|
943 | 992 | { |
944 | 993 | "command": "r.helpPanel.openForPath", |
945 | 994 | "when": "false" |
946 | | - }, |
947 | | - { |
948 | | - "command": "r.liveShare.toggle", |
949 | | - "when": "false" |
950 | 995 | } |
951 | 996 | ], |
952 | 997 | "editor/title/run": [ |
|
1002 | 1047 | "group": "navigation" |
1003 | 1048 | }, |
1004 | 1049 | { |
1005 | | - "command": "editor.action.webvieweditor.showFind", |
| 1050 | + "command": "r.webview.find", |
1006 | 1051 | "when": "resourceScheme =~ /webview/ && r.browser.active", |
1007 | 1052 | "group": "navigation" |
1008 | 1053 | }, |
1009 | 1054 | { |
1010 | | - "command": "editor.action.webvieweditor.showFind", |
| 1055 | + "command": "r.webview.find", |
1011 | 1056 | "when": "resourceScheme =~ /webview/ && r.helpPanel.active", |
1012 | 1057 | "group": "navigation" |
1013 | 1058 | }, |
|
1203 | 1248 | "command": "r.helpPanel.summarizeTopics", |
1204 | 1249 | "group": "inline@8", |
1205 | 1250 | "when": "view == rHelpPages && viewItem =~ /_summarizeTopics_/" |
1206 | | - }, |
1207 | | - { |
1208 | | - "command": "r.liveShare.toggle", |
1209 | | - "when": "view == rLiveShare" |
1210 | 1251 | } |
1211 | 1252 | ], |
1212 | 1253 | "view/title": [ |
1213 | 1254 | { |
1214 | 1255 | "command": "r.workspaceViewer.load", |
1215 | 1256 | "group": "navigation@0", |
1216 | | - "when": "r.WorkspaceViewer:show && view == workspaceViewer && !r.liveShare:isGuest" |
| 1257 | + "when": "r.WorkspaceViewer:show && view == workspaceViewer" |
1217 | 1258 | }, |
1218 | 1259 | { |
1219 | 1260 | "command": "r.workspaceViewer.save", |
1220 | 1261 | "group": "navigation@1", |
1221 | | - "when": "r.WorkspaceViewer:show && view == workspaceViewer && !r.liveShare:isGuest" |
| 1262 | + "when": "r.WorkspaceViewer:show && view == workspaceViewer" |
1222 | 1263 | }, |
1223 | 1264 | { |
1224 | 1265 | "command": "r.workspaceViewer.clear", |
|
1234 | 1275 | "command": "r.helpPanel.showQuickPick", |
1235 | 1276 | "group": "navigation", |
1236 | 1277 | "when": "view == rHelpPages" |
1237 | | - }, |
1238 | | - { |
1239 | | - "command": "r.liveShare.retry", |
1240 | | - "group": "navigation@3", |
1241 | | - "when": "view == rLiveShare && r.liveShare:aborted" |
1242 | 1278 | } |
1243 | 1279 | ], |
1244 | 1280 | "explorer/context": [ |
|
1294 | 1330 | "type": "string", |
1295 | 1331 | "default": "", |
1296 | 1332 | "scope": "machine-overridable", |
1297 | | - "markdownDescription": "Absolute or substituted path to the executable used to launch the interactive R console, or an executable name available on `PATH`. Alternative consoles such as arf (or radian) are supported. The supported substitutions are `${userHome}`, `${workspaceFolder}`, `${fileWorkspaceFolder}`, and `${fileDirname}`." |
| 1333 | + "markdownDescription": "Use an absolute or substituted path, or a bare executable name such as `R`, `arf`, or `radian` resolved from `PATH` to launch the interactive R console. The supported substitutions are `${userHome}`, `${workspaceFolder}`, `${fileWorkspaceFolder}`, and `${fileDirname}`." |
1298 | 1334 | }, |
1299 | 1335 | "r.rpath.windows": { |
1300 | 1336 | "type": "string", |
|
1345 | 1381 | "--no-restore" |
1346 | 1382 | ], |
1347 | 1383 | "description": "R command line options.", |
| 1384 | + "markdownDeprecationMessage": "Deprecated. Use `#r.consoleArgs#` instead.", |
| 1385 | + "deprecationMessage": "Deprecated. Use r.consoleArgs instead.", |
| 1386 | + "items": { |
| 1387 | + "type": "string" |
| 1388 | + } |
| 1389 | + }, |
| 1390 | + "r.consoleArgs": { |
| 1391 | + "type": "array", |
| 1392 | + "default": [ |
| 1393 | + "--no-save", |
| 1394 | + "--no-restore" |
| 1395 | + ], |
| 1396 | + "scope": "machine-overridable", |
| 1397 | + "description": "Arguments passed to the interactive R console.", |
1348 | 1398 | "items": { |
1349 | 1399 | "type": "string" |
1350 | 1400 | } |
|
1618 | 1668 | "default": true, |
1619 | 1669 | "description": "Enable R session watcher. Required for workspace viewer and most features to work with an R session. Restart required to take effect." |
1620 | 1670 | }, |
1621 | | - "r.session.useWebServer": { |
1622 | | - "type": "boolean", |
1623 | | - "default": false, |
1624 | | - "markdownDescription": "Enable experimental use of web server in the R session to handle session requests from the extension. Requires `#r.sessionWatcher#` to be set to `true`. Requires the `httpuv` R package." |
1625 | | - }, |
1626 | 1671 | "r.session.watchGlobalEnvironment": { |
1627 | 1672 | "type": "boolean", |
1628 | 1673 | "default": true, |
|
1633 | 1678 | "default": true, |
1634 | 1679 | "markdownDescription": "Emulate the RStudio API for addin support and other {rstudioapi} calls. Requires `#r.sessionWatcher#` to be set to `true`." |
1635 | 1680 | }, |
1636 | | - "r.session.data.rowLimit": { |
1637 | | - "type": "integer", |
1638 | | - "default": 0, |
1639 | | - "markdownDescription": "The maximum number of rows to be displayed in the data viewer. `0` means no limit. Changes the option `sess.row_limit` in R. Requires `#r.sessionWatcher#` to be set to `true`." |
1640 | | - }, |
1641 | 1681 | "r.session.data.pageSize": { |
1642 | 1682 | "type": "integer", |
1643 | 1683 | "default": 500, |
|
1725 | 1765 | }, |
1726 | 1766 | "view": { |
1727 | 1767 | "type": "string", |
1728 | | - "description": "Which view column to show the WebView triggered by View()? \n\nChanges the option 'sess.dataview' in R.", |
| 1768 | + "description": "Which view column to show the WebView triggered by View()?", |
1729 | 1769 | "enum": [ |
1730 | 1770 | "Two", |
1731 | 1771 | "Active", |
|
1742 | 1782 | }, |
1743 | 1783 | "helpPanel": { |
1744 | 1784 | "type": "string", |
1745 | | - "description": "Which view column to show the WebView triggered by the help panel? \n\nChanges the option 'sess.helpPanel' in R.", |
| 1785 | + "description": "Which view column to show the WebView triggered by the help panel?", |
1746 | 1786 | "enum": [ |
1747 | 1787 | "Two", |
1748 | 1788 | "Active", |
|
1763 | 1803 | "r.rtermSendDelay": { |
1764 | 1804 | "type": "integer", |
1765 | 1805 | "default": 8, |
1766 | | - "markdownDescription": "Delay in milliseconds before sending each line to rterm. Requires `#r.bracketedPaste#` to be `false`." |
| 1806 | + "markdownDescription": "Delay in milliseconds before sending each line to the R console. Requires `#r.bracketedPaste#` to be `false`.", |
| 1807 | + "markdownDeprecationMessage": "Deprecated. Use `#r.consoleSendDelay#` instead.", |
| 1808 | + "deprecationMessage": "Deprecated. Use r.consoleSendDelay instead." |
| 1809 | + }, |
| 1810 | + "r.consoleSendDelay": { |
| 1811 | + "type": "integer", |
| 1812 | + "default": 8, |
| 1813 | + "scope": "machine-overridable", |
| 1814 | + "markdownDescription": "Delay in milliseconds before sending each line to the R console. Requires `#r.bracketedPaste#` to be `false`." |
1767 | 1815 | }, |
1768 | 1816 | "r.workspaceViewer.removeHiddenItems": { |
1769 | 1817 | "type": "boolean", |
|
1775 | 1823 | "default": true, |
1776 | 1824 | "description": "Prompt the user for confirmation when clearing the workspace." |
1777 | 1825 | }, |
1778 | | - "r.liveShare.timeout": { |
1779 | | - "type": "integer", |
1780 | | - "default": 10000, |
1781 | | - "description": "Time in milliseconds before aborting attempt to connect to Live Share API." |
1782 | | - }, |
1783 | | - "r.liveShare.defaults.commandForward": { |
1784 | | - "type": "boolean", |
1785 | | - "default": false, |
1786 | | - "description": "Default boolean value for guest command forwarding." |
1787 | | - }, |
1788 | | - "r.liveShare.defaults.shareWorkspace": { |
1789 | | - "type": "boolean", |
1790 | | - "default": true, |
1791 | | - "description": "Default boolean value for sharing the R workspace with guests." |
1792 | | - }, |
1793 | | - "r.liveShare.defaults.shareBrowser": { |
1794 | | - "type": "boolean", |
1795 | | - "default": false, |
1796 | | - "description": "Default boolean value for automatically sharing R browser ports with guests." |
1797 | | - }, |
1798 | 1826 | "r.plot.devArgs": { |
1799 | 1827 | "type": "object", |
1800 | | - "markdownDescription": "Supplementary arguments for the rendering device (for example, `png()` or `svglite()`) used by the `standard` plot backend. This setting is ignored by the `httpgd` and `jgd` backends. Width and height are managed dynamically by the responsive viewer and will be overridden.\n\nChanges the option `sess.devArgs` in R.", |
| 1828 | + "markdownDescription": "Supplementary arguments for the rendering device (for example, `png()` or `svglite()`) used by the `standard` plot backend. This setting is ignored by the `httpgd` and `jgd` backends. Width and height are managed dynamically by the responsive viewer and will be overridden.", |
1801 | 1829 | "default": { |
1802 | 1830 | "width": 800, |
1803 | 1831 | "height": 1200 |
|
1831 | 1859 | "r.plot.useHttpgd": { |
1832 | 1860 | "type": "boolean", |
1833 | 1861 | "default": false, |
1834 | | - "markdownDescription": "Legacy compatibility setting for selecting the httpgd plot viewer. When `#r.plot.backend#` is `auto`, setting this to `true` selects the `httpgd` backend. An explicit `#r.plot.backend#` value takes precedence.\n\nRequires the `httpgd` R package version 1.2.0 or later.", |
| 1862 | + "markdownDescription": "Legacy compatibility setting for selecting the httpgd plot viewer. When `#r.plot.backend#` is `auto`, setting this to `true` selects the `httpgd` backend. Workspace settings take precedence over user settings. Within the same scope, an explicit `#r.plot.backend#` value takes precedence.\n\nRequires the `httpgd` R package version 1.2.0 or later.", |
1835 | 1863 | "markdownDeprecationMessage": "Deprecated: use `#r.plot.backend#` instead. This setting is retained for compatibility with existing configurations but will be removed in a future release.", |
1836 | 1864 | "deprecationMessage": "Deprecated: use r.plot.backend instead. This setting is retained for compatibility with existing configurations but will be removed in a future release." |
1837 | 1865 | }, |
|
1850 | 1878 | "httpgd-based interactive plot viewer (requires `httpgd` R package)", |
1851 | 1879 | "JGD-based interactive plot viewer (requires `jgd` R package)" |
1852 | 1880 | ], |
1853 | | - "markdownDescription": "The canonical setting for selecting the plot backend.\n\nWhen set to `auto`, the best available backend is used (JGD if installed, then httpgd, then standard). For compatibility, setting `#r.plot.useHttpgd#` to `true` selects httpgd while this setting remains `auto`; an explicit backend value takes precedence." |
| 1881 | + "markdownDescription": "The canonical setting for selecting the plot backend.\n\nWhen set to `auto`, the best available backend is used (JGD if installed, then httpgd, then standard). For backwards compatibility, setting `#r.plot.useHttpgd#` to `true` selects httpgd while this setting remains `auto`; workspace settings take precedence over user settings, with an explicit backend value preferred within the same scope." |
1854 | 1882 | }, |
1855 | 1883 | "r.plot.jgd.historyLimit": { |
1856 | 1884 | "type": "number", |
|
0 commit comments