|
2 | 2 | "name": "r", |
3 | 3 | "displayName": "R", |
4 | 4 | "description": "R Extension for Visual Studio Code", |
5 | | - "version": "2.8.8", |
| 5 | + "version": "3.0.0-rc.0", |
6 | 6 | "author": "REditorSupport", |
7 | 7 | "license": "SEE LICENSE IN LICENSE", |
8 | 8 | "publisher": "REditorSupport", |
|
26 | 26 | "R Markdown" |
27 | 27 | ], |
28 | 28 | "engines": { |
29 | | - "vscode": "^1.75.0" |
| 29 | + "vscode": "^1.110.0" |
30 | 30 | }, |
31 | 31 | "activationEvents": [ |
32 | 32 | "workspaceContains:**/*.{rproj,Rproj,r,R,rd,Rd,rmd,Rmd}", |
|
393 | 393 | "command": "r.generateCCppProperties" |
394 | 394 | }, |
395 | 395 | { |
396 | | - "title": "Attach Active Terminal", |
| 396 | + "title": "Activate R Session", |
397 | 397 | "category": "R", |
398 | | - "command": "r.attachActive" |
| 398 | + "command": "r.activateRSession" |
| 399 | + }, |
| 400 | + { |
| 401 | + "title": "Connect to R Session", |
| 402 | + "category": "R", |
| 403 | + "command": "r.connectToSession" |
399 | 404 | }, |
400 | 405 | { |
401 | 406 | "title": "Run Command With Selection or Word in Terminal", |
|
1615 | 1620 | "r.session.useWebServer": { |
1616 | 1621 | "type": "boolean", |
1617 | 1622 | "default": false, |
1618 | | - "markdownDescription": "Enable experimental use of web server in the R session to handle session requests from the extension. Changes the option `vsc.use_webserver` in R. Requires `#r.sessionWatcher#` to be set to `true`. Requires the `httpuv` R package." |
| 1623 | + "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." |
1619 | 1624 | }, |
1620 | 1625 | "r.session.watchGlobalEnvironment": { |
1621 | 1626 | "type": "boolean", |
1622 | 1627 | "default": true, |
1623 | | - "markdownDescription": "Watch the global environment to provide hover, autocompletions, and workspace viewer information. Changes the option `vsc.globalenv` in R. Requires `#r.sessionWatcher#` to be set to `true`." |
| 1628 | + "markdownDescription": "Watch the global environment to provide hover, autocompletions, and workspace viewer information. Requires `#r.sessionWatcher#` to be set to `true`." |
1624 | 1629 | }, |
1625 | 1630 | "r.session.objectLengthLimit": { |
1626 | 1631 | "type": "integer", |
1627 | 1632 | "default": 2000, |
1628 | | - "markdownDescription": "The upper limit of object length to show object details in workspace viewer and provide session symbol completion. Decrease this value if you experience significant delay after executing R commands caused by large global objects with many elements. Changes the option `vsc.object_length_limit` in R. Requires `#r.sessionWatcher#` to be set to `true`." |
| 1633 | + "markdownDescription": "The upper limit of object length to show object details in workspace viewer and provide session symbol completion. Decrease this value if you experience significant delay after executing R commands caused by large global objects with many elements. Requires `#r.sessionWatcher#` to be set to `true`." |
1629 | 1634 | }, |
1630 | 1635 | "r.session.objectTimeout": { |
1631 | 1636 | "type": "integer", |
1632 | 1637 | "default": 50, |
1633 | | - "markdownDescription": "The maximum number of milliseconds to get information of a single object in the global environment. Decrease this value if you experience significant delay after executing R commands caused by large global objects with many elements. Changes the option `vsc.object_timeout` in R. Requires `#r.sessionWatcher#` to be set to `true`." |
| 1638 | + "markdownDescription": "The maximum number of milliseconds to get information of a single object in the global environment. Decrease this value if you experience significant delay after executing R commands caused by large global objects with many elements. Requires `#r.sessionWatcher#` to be set to `true`." |
1634 | 1639 | }, |
1635 | 1640 | "r.session.levelOfObjectDetail": { |
1636 | 1641 | "type": "string", |
1637 | | - "markdownDescription": "How much of the object to show on hover, autocompletion, and in the workspace viewer? Changes the option `vsc.str.max.level` in R. Requires `#r.sessionWatcher#` to be set to `true`.", |
| 1642 | + "markdownDescription": "How much of the object to show on hover, autocompletion, and in the workspace viewer? Requires `#r.sessionWatcher#` to be set to `true`.", |
1638 | 1643 | "default": "Minimal", |
1639 | 1644 | "enum": [ |
1640 | 1645 | "Minimal", |
|
1650 | 1655 | "r.session.emulateRStudioAPI": { |
1651 | 1656 | "type": "boolean", |
1652 | 1657 | "default": true, |
1653 | | - "markdownDescription": "Emulate the RStudio API for addin support and other {rstudioapi} calls. Changes the option `vsc.rstudioapi` in R. Requires `#r.sessionWatcher#` to be set to `true`." |
| 1658 | + "markdownDescription": "Emulate the RStudio API for addin support and other {rstudioapi} calls. Requires `#r.sessionWatcher#` to be set to `true`." |
1654 | 1659 | }, |
1655 | 1660 | "r.session.data.rowLimit": { |
1656 | 1661 | "type": "integer", |
1657 | 1662 | "default": 0, |
1658 | | - "markdownDescription": "The maximum number of rows to be displayed in the data viewer. `0` means no limit. Changes the option `vsc.row_limit` in R. Requires `#r.sessionWatcher#` to be set to `true`." |
| 1663 | + "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`." |
1659 | 1664 | }, |
1660 | 1665 | "r.session.data.pageSize": { |
1661 | 1666 | "type": "integer", |
|
1676 | 1681 | "properties": { |
1677 | 1682 | "plot": { |
1678 | 1683 | "type": "string", |
1679 | | - "description": "Which view column to show the plot file on graphics update? \n\nChanges the option 'vsc.plot' in R.", |
| 1684 | + "description": "Which view column to show the plot viewer on graphics update?", |
1680 | 1685 | "enum": [ |
1681 | 1686 | "Two", |
1682 | 1687 | "Active", |
|
1693 | 1698 | }, |
1694 | 1699 | "browser": { |
1695 | 1700 | "type": "string", |
1696 | | - "description": "Which view column to show the WebView triggered by browser (e.g. shiny apps)? \n\nChanges the option 'vsc.browser' in R.", |
| 1701 | + "description": "Which view column to show the WebView triggered by browser (e.g. shiny apps)?", |
1697 | 1702 | "enum": [ |
1698 | 1703 | "Two", |
1699 | 1704 | "Active", |
|
1710 | 1715 | }, |
1711 | 1716 | "viewer": { |
1712 | 1717 | "type": "string", |
1713 | | - "description": "Which view column to show the WebView triggered by viewer (e.g. htmlwidgets)? \n\nChanges the option 'vsc.viewer' in R.", |
| 1718 | + "description": "Which view column to show the WebView triggered by viewer (e.g. htmlwidgets)?", |
1714 | 1719 | "enum": [ |
1715 | 1720 | "Two", |
1716 | 1721 | "Active", |
|
1727 | 1732 | }, |
1728 | 1733 | "pageViewer": { |
1729 | 1734 | "type": "string", |
1730 | | - "description": "Which view column to show the WebView triggered by the page viewer (e.g. profvis)? \n\nChanges the option 'vsc.page_viewer' in R.", |
| 1735 | + "description": "Which view column to show the WebView triggered by the page viewer (e.g. profvis)?", |
1731 | 1736 | "enum": [ |
1732 | 1737 | "Two", |
1733 | 1738 | "Active", |
|
1744 | 1749 | }, |
1745 | 1750 | "view": { |
1746 | 1751 | "type": "string", |
1747 | | - "description": "Which view column to show the WebView triggered by View()? \n\nChanges the option 'vsc.view' in R.", |
| 1752 | + "description": "Which view column to show the WebView triggered by View()? \n\nChanges the option 'sess.dataview' in R.", |
1748 | 1753 | "enum": [ |
1749 | 1754 | "Two", |
1750 | 1755 | "Active", |
|
1761 | 1766 | }, |
1762 | 1767 | "helpPanel": { |
1763 | 1768 | "type": "string", |
1764 | | - "description": "Which view column to show the WebView triggered by the help panel? \n\nChanges the option 'vsc.help_panel' in R.", |
| 1769 | + "description": "Which view column to show the WebView triggered by the help panel? \n\nChanges the option 'sess.helpPanel' in R.", |
1765 | 1770 | "enum": [ |
1766 | 1771 | "Two", |
1767 | 1772 | "Active", |
|
1787 | 1792 | "r.workspaceViewer.showObjectSize": { |
1788 | 1793 | "type": "boolean", |
1789 | 1794 | "default": false, |
1790 | | - "markdownDescription": "Show object size when hovering over a workspace viewer item. Changes the option `vsc.show_object_size` in R." |
| 1795 | + "markdownDescription": "Show object size when hovering over a workspace viewer item." |
1791 | 1796 | }, |
1792 | 1797 | "r.workspaceViewer.removeHiddenItems": { |
1793 | 1798 | "type": "boolean", |
|
1821 | 1826 | }, |
1822 | 1827 | "r.plot.devArgs": { |
1823 | 1828 | "type": "object", |
1824 | | - "markdownDescription": "The arguments for the png device to replay user graphics to show in VSCode. Requires `#r.plot.useHttpgd#` to be set to `false`. \n\nChanges the option `vsc.dev.args` in R.", |
| 1829 | + "markdownDescription": "The supplementary arguments for the rendering device (e.g., `png()` or `svglite()`) used by the standard plot viewer. Note that width and height are now handled dynamically by the responsive viewer and will be overridden. Requires `#r.plot.useHttpgd#` to be set to `false`. \n\nChanges the option `sess.devArgs` in R.", |
1825 | 1830 | "default": { |
1826 | 1831 | "width": 800, |
1827 | 1832 | "height": 1200 |
1828 | 1833 | }, |
1829 | 1834 | "properties": { |
1830 | 1835 | "width": { |
1831 | 1836 | "type": "number", |
1832 | | - "description": "Width of the graphic device.", |
| 1837 | + "description": "Width of the graphic device (Note: This is now handled dynamically by the responsive viewer).", |
1833 | 1838 | "default": 480 |
1834 | 1839 | }, |
1835 | 1840 | "height": { |
1836 | 1841 | "type": "number", |
1837 | | - "description": "Height of the graphic device.", |
| 1842 | + "description": "Height of the graphic device (Note: This is now handled dynamically by the responsive viewer).", |
1838 | 1843 | "default": 480 |
1839 | 1844 | }, |
1840 | 1845 | "units": { |
|
1855 | 1860 | "r.plot.useHttpgd": { |
1856 | 1861 | "type": "boolean", |
1857 | 1862 | "default": false, |
1858 | | - "markdownDescription": "Use the httpgd-based plot viewer instead of the base VSCode-R plot viewer. Changes the option `vsc.use_httpgd` in R.\n\nRequires the `httpgd` R package version 1.2.0 or later." |
| 1863 | + "markdownDescription": "Use the httpgd-based plot viewer instead of the base VSCode-R plot viewer.\n\nRequires the `httpgd` R package version 1.2.0 or later." |
| 1864 | + }, |
| 1865 | + "r.plot.format": { |
| 1866 | + "type": "string", |
| 1867 | + "default": "svglite", |
| 1868 | + "enum": [ |
| 1869 | + "png", |
| 1870 | + "svglite" |
| 1871 | + ], |
| 1872 | + "description": "The graphics format to use for the standard plot viewer. Requires `#r.plot.useHttpgd#` to be set to `false`." |
1859 | 1873 | }, |
1860 | 1874 | "r.plot.defaults.colorTheme": { |
1861 | 1875 | "type": "string", |
|
1983 | 1997 | ] |
1984 | 1998 | }, |
1985 | 1999 | "scripts": { |
1986 | | - "vscode:prepublish": "tsc -p ./html/help && tsc -p ./html/httpgd && node esbuild.js --production", |
| 2000 | + "vscode:prepublish": "node esbuild.js --production", |
1987 | 2001 | "changelog": "npx git-cliff v2.8.5.. -o", |
1988 | | - "build": "tsc -p ./html/help && tsc -p ./html/httpgd && node esbuild.js", |
| 2002 | + "build": "node esbuild.js && Rscript -e \"remotes::install_local('sess', force=TRUE)\"", |
1989 | 2003 | "watch": "node esbuild.js --watch", |
1990 | | - "watchHelp": "tsc -p ./html/help --watch", |
1991 | | - "watchHttpgd": "tsc -p ./html/httpgd --watch", |
1992 | | - "pretest": "tsc -p ./", |
1993 | | - "test": "node ./out/test/runTest.js", |
1994 | | - "lint": "eslint src --ext ts" |
| 2004 | + "clean": "rimraf out", |
| 2005 | + "pretest": "npm run clean && tsc -p ./", |
| 2006 | + "test": "vscode-test", |
| 2007 | + "lint": "eslint src --ext ts && Rscript -e \"lintr::lint_package('sess')\"" |
1995 | 2008 | }, |
1996 | 2009 | "devDependencies": { |
1997 | | - "@types/cheerio": "^0.22.29", |
1998 | | - "@types/ejs": "^3.0.6", |
1999 | | - "@types/express": "^4.17.12", |
2000 | | - "@types/fs-extra": "^9.0.11", |
2001 | | - "@types/glob": "^8.0.0", |
| 2010 | + "@types/cheerio": "^0.22.35", |
| 2011 | + "@types/ejs": "^3.1.5", |
| 2012 | + "@types/express": "^4.17.25", |
| 2013 | + "@types/fs-extra": "^9.0.13", |
2002 | 2014 | "@types/highlight.js": "^10.1.0", |
2003 | | - "@types/js-yaml": "^4.0.2", |
2004 | | - "@types/mocha": "^8.2.2", |
2005 | | - "@types/node": "^18.17.1", |
2006 | | - "@types/node-fetch": "^2.5.10", |
2007 | | - "@types/sinon": "^10.0.13", |
| 2015 | + "@types/js-yaml": "^4.0.9", |
| 2016 | + "@types/mocha": "^8.2.3", |
| 2017 | + "@types/node": "^18.19.130", |
| 2018 | + "@types/node-fetch": "^2.6.13", |
| 2019 | + "@types/sinon": "^10.0.20", |
2008 | 2020 | "@types/vscode": "^1.75.0", |
2009 | | - "@types/winreg": "^1.2.31", |
2010 | | - "@typescript-eslint/eslint-plugin": "^5.30.0", |
2011 | | - "@typescript-eslint/parser": "^5.30.0", |
2012 | | - "@vscode/test-electron": "^2.2.3", |
2013 | | - "esbuild": "^0.27.3", |
2014 | | - "eslint": "^7.28.0", |
2015 | | - "eslint-plugin-jsdoc": "^35.1.3", |
| 2021 | + "@types/winreg": "^1.2.36", |
| 2022 | + "@types/ws": "^8.18.1", |
| 2023 | + "@typescript-eslint/eslint-plugin": "^5.62.0", |
| 2024 | + "@typescript-eslint/parser": "^5.62.0", |
| 2025 | + "@vscode/test-cli": "^0.0.12", |
| 2026 | + "@vscode/test-electron": "^2.5.2", |
| 2027 | + "esbuild": "^0.27.4", |
| 2028 | + "eslint": "^7.32.0", |
| 2029 | + "eslint-plugin-jsdoc": "^35.5.1", |
2016 | 2030 | "git-cliff": "^2.12.0", |
2017 | | - "mocha": "^11.1.0", |
2018 | | - "sinon": "^15.0.1", |
2019 | | - "typescript": "^4.7.2" |
| 2031 | + "mocha": "^11.7.5", |
| 2032 | + "sinon": "^15.2.0", |
| 2033 | + "typescript": "^4.9.5" |
2020 | 2034 | }, |
2021 | 2035 | "dependencies": { |
2022 | | - "ag-grid-community": "^31.3.2", |
| 2036 | + "ag-grid-community": "^31.3.4", |
2023 | 2037 | "cheerio": "1.0.0-rc.12", |
2024 | 2038 | "crypto": "^1.0.1", |
2025 | 2039 | "ejs": "^3.1.10", |
2026 | | - "fs-extra": "^10.0.0", |
2027 | | - "highlight.js": "^11.9.0", |
| 2040 | + "fs-extra": "^10.1.0", |
| 2041 | + "highlight.js": "^11.11.1", |
2028 | 2042 | "httpgd": "0.1.6", |
2029 | 2043 | "jquery": "^3.7.1", |
2030 | 2044 | "jquery.json-viewer": "^1.5.0", |
2031 | | - "js-yaml": "^4.1.0", |
2032 | | - "node-fetch": "^2.6.7", |
| 2045 | + "js-yaml": "^4.1.1", |
| 2046 | + "node-fetch": "^2.7.0", |
2033 | 2047 | "vscode-languageclient": "^9.0.1", |
2034 | 2048 | "vsls": "^1.0.4753", |
2035 | | - "winreg": "^1.2.4" |
| 2049 | + "winreg": "^1.2.5", |
| 2050 | + "ws": "^8.19.0" |
2036 | 2051 | }, |
2037 | 2052 | "extensionDependencies": [ |
2038 | 2053 | "REditorSupport.r-syntax" |
|
0 commit comments