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