|
33 | 33 | "capabilities": {
|
34 | 34 | "virtualWorkspaces": false,
|
35 | 35 | "untrustedWorkspaces": {
|
36 |
| - "supported": false |
| 36 | + "supported": "limited" |
37 | 37 | }
|
38 | 38 | },
|
39 | 39 | "extensionKind": [
|
|
75 | 75 | "test:integration:razor": "npm run package && gulp test:integration:razor",
|
76 | 76 | "test:integration:razor:cohost": "npm run package && gulp test:integration:razor:cohost",
|
77 | 77 | "test:integration:devkit": "npm run package && gulp test:integration:devkit",
|
| 78 | + "test:integration:untrusted": "npm run package && gulp test:integration:untrusted", |
78 | 79 | "profiling": "npm run package && gulp profiling",
|
79 | 80 | "test:artifacts": "npm run compileDev && gulp test:artifacts",
|
80 | 81 | "omnisharptest": "npm run package && gulp omnisharptest",
|
@@ -1814,139 +1815,145 @@
|
1814 | 1815 | "command": "o.restart",
|
1815 | 1816 | "title": "%command.o.restart%",
|
1816 | 1817 | "category": "OmniSharp",
|
1817 |
| - "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
| 1818 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'OmniSharp'" |
1818 | 1819 | },
|
1819 | 1820 | {
|
1820 | 1821 | "command": "o.pickProjectAndStart",
|
1821 | 1822 | "title": "%command.o.pickProjectAndStart%",
|
1822 | 1823 | "category": "OmniSharp",
|
1823 |
| - "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
| 1824 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'OmniSharp'" |
1824 | 1825 | },
|
1825 | 1826 | {
|
1826 | 1827 | "command": "dotnet.openSolution",
|
1827 | 1828 | "title": "%command.dotnet.openSolution%",
|
1828 | 1829 | "category": ".NET",
|
1829 |
| - "enablement": "dotnet.server.activationContext == 'Roslyn'" |
| 1830 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'Roslyn'" |
1830 | 1831 | },
|
1831 | 1832 | {
|
1832 | 1833 | "command": "o.fixAll.solution",
|
1833 | 1834 | "title": "%command.o.fixAll.solution%",
|
1834 | 1835 | "category": "OmniSharp",
|
1835 |
| - "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
| 1836 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'OmniSharp'" |
1836 | 1837 | },
|
1837 | 1838 | {
|
1838 | 1839 | "command": "o.fixAll.project",
|
1839 | 1840 | "title": "%command.o.fixAll.project%",
|
1840 | 1841 | "category": "OmniSharp",
|
1841 |
| - "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
| 1842 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'OmniSharp'" |
1842 | 1843 | },
|
1843 | 1844 | {
|
1844 | 1845 | "command": "o.fixAll.document",
|
1845 | 1846 | "title": "%command.o.fixAll.document%",
|
1846 | 1847 | "category": "OmniSharp",
|
1847 |
| - "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
| 1848 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'OmniSharp'" |
1848 | 1849 | },
|
1849 | 1850 | {
|
1850 | 1851 | "command": "o.reanalyze.allProjects",
|
1851 | 1852 | "title": "%command.o.reanalyze.allProjects%",
|
1852 | 1853 | "category": "OmniSharp",
|
1853 |
| - "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
| 1854 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'OmniSharp'" |
1854 | 1855 | },
|
1855 | 1856 | {
|
1856 | 1857 | "command": "o.reanalyze.currentProject",
|
1857 | 1858 | "title": "%command.o.reanalyze.currentProject%",
|
1858 | 1859 | "category": "OmniSharp",
|
1859 |
| - "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
| 1860 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'OmniSharp'" |
1860 | 1861 | },
|
1861 | 1862 | {
|
1862 | 1863 | "command": "dotnet.generateAssets",
|
1863 | 1864 | "title": "%command.dotnet.generateAssets.currentProject%",
|
1864 | 1865 | "category": ".NET",
|
1865 |
| - "enablement": "dotnet.server.activationContext == 'RoslynDevKit' || dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
| 1866 | + "enablement": "isWorkspaceTrusted && (dotnet.server.activationContext == 'RoslynDevKit' || dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp')" |
1866 | 1867 | },
|
1867 | 1868 | {
|
1868 | 1869 | "command": "dotnet.restore.project",
|
1869 | 1870 | "title": "%command.dotnet.restore.project%",
|
1870 | 1871 | "category": ".NET",
|
1871 |
| - "enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
| 1872 | + "enablement": "isWorkspaceTrusted && (dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp')" |
1872 | 1873 | },
|
1873 | 1874 | {
|
1874 | 1875 | "command": "dotnet.restore.all",
|
1875 | 1876 | "title": "%command.dotnet.restore.all%",
|
1876 | 1877 | "category": ".NET",
|
1877 |
| - "enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
| 1878 | + "enablement": "isWorkspaceTrusted && (dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp')" |
1878 | 1879 | },
|
1879 | 1880 | {
|
1880 | 1881 | "command": "csharp.listProcess",
|
1881 | 1882 | "title": "%command.csharp.listProcess%",
|
1882 |
| - "category": "CSharp" |
| 1883 | + "category": "CSharp", |
| 1884 | + "enablement": "isWorkspaceTrusted" |
1883 | 1885 | },
|
1884 | 1886 | {
|
1885 | 1887 | "command": "csharp.listRemoteProcess",
|
1886 | 1888 | "title": "%command.csharp.listRemoteProcess%",
|
1887 |
| - "category": "CSharp" |
| 1889 | + "category": "CSharp", |
| 1890 | + "enablement": "isWorkspaceTrusted" |
1888 | 1891 | },
|
1889 | 1892 | {
|
1890 | 1893 | "command": "csharp.listRemoteDockerProcess",
|
1891 | 1894 | "title": "%command.csharp.listRemoteDockerProcess%",
|
1892 |
| - "category": "CSharp" |
| 1895 | + "category": "CSharp", |
| 1896 | + "enablement": "isWorkspaceTrusted" |
1893 | 1897 | },
|
1894 | 1898 | {
|
1895 | 1899 | "command": "csharp.attachToProcess",
|
1896 | 1900 | "title": "%command.csharp.attachToProcess%",
|
1897 |
| - "category": "Debug" |
| 1901 | + "category": "Debug", |
| 1902 | + "enablement": "isWorkspaceTrusted" |
1898 | 1903 | },
|
1899 | 1904 | {
|
1900 | 1905 | "command": "csharp.reportIssue",
|
1901 | 1906 | "title": "%command.csharp.reportIssue%",
|
1902 |
| - "category": "CSharp" |
| 1907 | + "category": "CSharp", |
| 1908 | + "enablement": "isWorkspaceTrusted" |
1903 | 1909 | },
|
1904 | 1910 | {
|
1905 | 1911 | "command": "csharp.showDecompilationTerms",
|
1906 | 1912 | "title": "%command.csharp.showDecompilationTerms%",
|
1907 | 1913 | "category": "CSharp",
|
1908 |
| - "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
| 1914 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'OmniSharp'" |
1909 | 1915 | },
|
1910 | 1916 | {
|
1911 | 1917 | "command": "csharp.recordLanguageServerTrace",
|
1912 | 1918 | "title": "%command.csharp.recordLanguageServerTrace%",
|
1913 | 1919 | "category": "CSharp",
|
1914 |
| - "enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'RoslynDevKit'" |
| 1920 | + "enablement": "isWorkspaceTrusted && (dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'RoslynDevKit')" |
1915 | 1921 | },
|
1916 | 1922 | {
|
1917 | 1923 | "command": "extension.showRazorCSharpWindow",
|
1918 | 1924 | "title": "%command.extension.showRazorCSharpWindow%",
|
1919 | 1925 | "category": "Razor",
|
1920 |
| - "enablement": "razor.mode == 'lsp'" |
| 1926 | + "enablement": "isWorkspaceTrusted && razor.mode == 'lsp'" |
1921 | 1927 | },
|
1922 | 1928 | {
|
1923 | 1929 | "command": "extension.showRazorHtmlWindow",
|
1924 | 1930 | "title": "%command.extension.showRazorHtmlWindow%",
|
1925 | 1931 | "category": "Razor",
|
1926 |
| - "enablement": "razor.mode == 'lsp'" |
| 1932 | + "enablement": "isWorkspaceTrusted && razor.mode == 'lsp'" |
1927 | 1933 | },
|
1928 | 1934 | {
|
1929 | 1935 | "command": "razor.reportIssue",
|
1930 | 1936 | "title": "%command.razor.reportIssue%",
|
1931 |
| - "category": "Razor" |
| 1937 | + "category": "Razor", |
| 1938 | + "enablement": "isWorkspaceTrusted" |
1932 | 1939 | },
|
1933 | 1940 | {
|
1934 | 1941 | "command": "dotnet.test.runTestsInContext",
|
1935 | 1942 | "title": "%command.dotnet.test.runTestsInContext%",
|
1936 | 1943 | "category": ".NET",
|
1937 |
| - "enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
| 1944 | + "enablement": "isWorkspaceTrusted && (dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp')" |
1938 | 1945 | },
|
1939 | 1946 | {
|
1940 | 1947 | "command": "dotnet.test.debugTestsInContext",
|
1941 | 1948 | "title": "%command.dotnet.test.debugTestsInContext%",
|
1942 | 1949 | "category": ".NET",
|
1943 |
| - "enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
| 1950 | + "enablement": "isWorkspaceTrusted && (dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp')" |
1944 | 1951 | },
|
1945 | 1952 | {
|
1946 | 1953 | "command": "dotnet.restartServer",
|
1947 | 1954 | "title": "%command.dotnet.restartServer%",
|
1948 | 1955 | "category": ".NET",
|
1949 |
| - "enablement": "dotnet.server.activationContext == 'Roslyn'" |
| 1956 | + "enablement": "isWorkspaceTrusted && dotnet.server.activationContext == 'Roslyn'" |
1950 | 1957 | }
|
1951 | 1958 | ],
|
1952 | 1959 | "keybindings": [
|
|
0 commit comments