1608
1608
"variables" : {
1609
1609
"pickProcess" : " python.pickLocalProcess"
1610
1610
},
1611
- "when" : " !virtualWorkspace"
1611
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1612
1612
}
1613
1613
],
1614
1614
"grammars" : [
@@ -1712,108 +1712,108 @@
1712
1712
"category" : " Python" ,
1713
1713
"command" : " python.analysis.clearCache" ,
1714
1714
"title" : " %python.command.python.analysis.clearCache.title%" ,
1715
- "when" : " !virtualWorkspace"
1715
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1716
1716
},
1717
1717
{
1718
1718
"category" : " Python" ,
1719
1719
"command" : " python.analysis.restartLanguageServer" ,
1720
1720
"title" : " %python.command.python.analysis.restartLanguageServer.title%" ,
1721
- "when" : " !virtualWorkspace"
1721
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1722
1722
},
1723
1723
{
1724
1724
"category" : " Python" ,
1725
1725
"command" : " python.clearPersistentStorage" ,
1726
1726
"title" : " %python.command.python.clearPersistentStorage.title%" ,
1727
- "when" : " !virtualWorkspace"
1727
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1728
1728
},
1729
1729
{
1730
1730
"category" : " Python" ,
1731
1731
"command" : " python.clearWorkspaceInterpreter" ,
1732
1732
"title" : " %python.command.python.clearWorkspaceInterpreter.title%" ,
1733
- "when" : " !virtualWorkspace"
1733
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1734
1734
},
1735
1735
{
1736
1736
"category" : " Python" ,
1737
1737
"command" : " python.configureTests" ,
1738
1738
"title" : " %python.command.python.configureTests.title%" ,
1739
- "when" : " !virtualWorkspace"
1739
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1740
1740
},
1741
1741
{
1742
1742
"category" : " Python" ,
1743
1743
"command" : " python.createTerminal" ,
1744
1744
"title" : " %python.command.python.createTerminal.title%" ,
1745
- "when" : " !virtualWorkspace"
1745
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1746
1746
},
1747
1747
{
1748
1748
"category" : " Python" ,
1749
1749
"command" : " python.enableLinting" ,
1750
1750
"title" : " %python.command.python.enableLinting.title%" ,
1751
- "when" : " !virtualWorkspace"
1751
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1752
1752
},
1753
1753
{
1754
1754
"category" : " Python" ,
1755
1755
"command" : " python.enableSourceMapSupport" ,
1756
1756
"title" : " %python.command.python.enableSourceMapSupport.title%" ,
1757
- "when" : " !virtualWorkspace"
1757
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1758
1758
},
1759
1759
{
1760
1760
"category" : " Python" ,
1761
1761
"command" : " python.execInTerminal" ,
1762
1762
"title" : " %python.command.python.execInTerminal.title%" ,
1763
- "when" : " !virtualWorkspace"
1763
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1764
1764
},
1765
1765
{
1766
1766
"category" : " Python" ,
1767
1767
"command" : " python.execInTerminal-icon" ,
1768
1768
"icon" : " $(play)" ,
1769
1769
"title" : " %python.command.python.execInTerminal.title%" ,
1770
- "when" : " !virtualWorkspace"
1770
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1771
1771
},
1772
1772
{
1773
1773
"category" : " Python" ,
1774
1774
"command" : " python.debugInTerminal" ,
1775
1775
"icon" : " $(debug-alt)" ,
1776
1776
"title" : " %python.command.python.debugInTerminal.title%" ,
1777
- "when" : " !virtualWorkspace"
1777
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1778
1778
},
1779
1779
{
1780
1780
"category" : " Python" ,
1781
1781
"command" : " python.execSelectionInDjangoShell" ,
1782
1782
"title" : " %python.command.python.execSelectionInDjangoShell.title%" ,
1783
- "when" : " !virtualWorkspace"
1783
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1784
1784
},
1785
1785
{
1786
1786
"category" : " Python" ,
1787
1787
"command" : " python.execSelectionInTerminal" ,
1788
1788
"title" : " %python.command.python.execSelectionInTerminal.title%" ,
1789
- "when" : " !virtualWorkspace"
1789
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1790
1790
},
1791
1791
{
1792
1792
"category" : " Python" ,
1793
1793
"command" : " python.goToPythonObject" ,
1794
1794
"title" : " %python.command.python.goToPythonObject.title%" ,
1795
- "when" : " !virtualWorkspace"
1795
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1796
1796
},
1797
1797
{
1798
1798
"category" : " Python" ,
1799
1799
"command" : " python.launchTensorBoard" ,
1800
1800
"title" : " %python.command.python.launchTensorBoard.title%" ,
1801
- "when" : " !virtualWorkspace"
1801
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1802
1802
},
1803
1803
{
1804
1804
"category" : " Python" ,
1805
1805
"command" : " python.refreshTensorBoard" ,
1806
1806
"enablement" : " python.hasActiveTensorBoardSession" ,
1807
1807
"icon" : " $(refresh)" ,
1808
1808
"title" : " %python.command.python.refreshTensorBoard.title%" ,
1809
- "when" : " !virtualWorkspace"
1809
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1810
1810
},
1811
1811
{
1812
1812
"category" : " Test" ,
1813
1813
"command" : " python.refreshTests" ,
1814
1814
"icon" : " $(refresh)" ,
1815
1815
"title" : " %python.command.python.refreshTests.title%" ,
1816
- "when" : " !virtualWorkspace"
1816
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1817
1817
},
1818
1818
{
1819
1819
"category" : " Test" ,
@@ -1823,166 +1823,166 @@
1823
1823
"light" : " resources/light/discovering-tests.svg"
1824
1824
},
1825
1825
"title" : " %python.command.python.refreshingTests.title%" ,
1826
- "when" : " !virtualWorkspace"
1826
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1827
1827
},
1828
1828
{
1829
1829
"category" : " Test" ,
1830
1830
"command" : " python.stopRefreshingTests" ,
1831
1831
"icon" : " $(stop-circle)" ,
1832
1832
"title" : " %python.command.python.stopRefreshingTests.title%" ,
1833
- "when" : " !virtualWorkspace"
1833
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1834
1834
},
1835
1835
{
1836
1836
"category" : " Python" ,
1837
1837
"command" : " python.reportIssue" ,
1838
1838
"title" : " %python.command.python.reportIssue.title%" ,
1839
- "when" : " !virtualWorkspace"
1839
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1840
1840
},
1841
1841
{
1842
1842
"category" : " Test" ,
1843
1843
"command" : " testing.reRunFailTests" ,
1844
1844
"icon" : " $(run-errors)" ,
1845
1845
"title" : " %python.command.testing.rerunFailedTests.title%" ,
1846
- "when" : " !virtualWorkspace"
1846
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1847
1847
},
1848
1848
{
1849
1849
"category" : " Python" ,
1850
1850
"command" : " python.runLinting" ,
1851
1851
"title" : " %python.command.python.runLinting.title%" ,
1852
- "when" : " !virtualWorkspace"
1852
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1853
1853
},
1854
1854
{
1855
1855
"category" : " Python" ,
1856
1856
"command" : " python.setInterpreter" ,
1857
1857
"title" : " %python.command.python.setInterpreter.title%" ,
1858
- "when" : " !virtualWorkspace"
1858
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1859
1859
},
1860
1860
{
1861
1861
"category" : " Python" ,
1862
1862
"command" : " python.setLinter" ,
1863
1863
"title" : " %python.command.python.setLinter.title%" ,
1864
- "when" : " !virtualWorkspace"
1864
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1865
1865
},
1866
1866
{
1867
1867
"category" : " Python Refactor" ,
1868
1868
"command" : " python.sortImports" ,
1869
1869
"title" : " %python.command.python.sortImports.title%" ,
1870
- "when" : " !virtualWorkspace"
1870
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1871
1871
},
1872
1872
{
1873
1873
"category" : " Python" ,
1874
1874
"command" : " python.startREPL" ,
1875
1875
"title" : " %python.command.python.startREPL.title%" ,
1876
- "when" : " !virtualWorkspace"
1876
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1877
1877
},
1878
1878
{
1879
1879
"category" : " Python" ,
1880
1880
"command" : " python.viewLanguageServerOutput" ,
1881
1881
"enablement" : " python.hasLanguageServerOutputChannel" ,
1882
1882
"title" : " %python.command.python.viewLanguageServerOutput.title%" ,
1883
- "when" : " !virtualWorkspace"
1883
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1884
1884
},
1885
1885
{
1886
1886
"category" : " Python" ,
1887
1887
"command" : " python.clearWorkspaceInterpreter" ,
1888
1888
"title" : " %python.command.python.clearWorkspaceInterpreter.title%" ,
1889
- "when" : " !virtualWorkspace"
1889
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1890
1890
},
1891
1891
{
1892
1892
"category" : " Python" ,
1893
1893
"command" : " python.switchOffInsidersChannel" ,
1894
1894
"title" : " %python.command.python.switchOffInsidersChannel.title%" ,
1895
- "when" : " config.python.insidersChannel != 'default' && !virtualWorkspace"
1895
+ "when" : " config.python.insidersChannel != 'default' && !virtualWorkspace && shellExecutionSupported "
1896
1896
},
1897
1897
{
1898
1898
"category" : " Python" ,
1899
1899
"command" : " python.switchToDailyChannel" ,
1900
1900
"title" : " %python.command.python.switchToDailyChannel.title%" ,
1901
- "when" : " config.python.insidersChannel != 'daily' && !virtualWorkspace"
1901
+ "when" : " config.python.insidersChannel != 'daily' && !virtualWorkspace && shellExecutionSupported "
1902
1902
},
1903
1903
{
1904
1904
"category" : " Python" ,
1905
1905
"command" : " python.switchToWeeklyChannel" ,
1906
1906
"title" : " %python.command.python.switchToWeeklyChannel.title%" ,
1907
- "when" : " config.python.insidersChannel != 'weekly' && !virtualWorkspace"
1907
+ "when" : " config.python.insidersChannel != 'weekly' && !virtualWorkspace && shellExecutionSupported "
1908
1908
},
1909
1909
{
1910
1910
"category" : " Python" ,
1911
1911
"command" : " python.viewOutput" ,
1912
1912
"title" : " %python.command.python.viewOutput.title%" ,
1913
- "when" : " !virtualWorkspace"
1913
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1914
1914
}
1915
1915
],
1916
1916
"editor/context" : [
1917
1917
{
1918
1918
"command" : " python.execInTerminal" ,
1919
1919
"group" : " Python" ,
1920
- "when" : " resourceLangId == python && !virtualWorkspace"
1920
+ "when" : " resourceLangId == python && !virtualWorkspace && shellExecutionSupported "
1921
1921
},
1922
1922
{
1923
1923
"command" : " python.execSelectionInDjangoShell" ,
1924
1924
"group" : " Python" ,
1925
- "when" : " editorHasSelection && editorLangId == python && python.isDjangoProject && !virtualWorkspace"
1925
+ "when" : " editorHasSelection && editorLangId == python && python.isDjangoProject && !virtualWorkspace && shellExecutionSupported "
1926
1926
},
1927
1927
{
1928
1928
"command" : " python.execSelectionInTerminal" ,
1929
1929
"group" : " Python" ,
1930
- "when" : " editorFocus && editorLangId == python && !virtualWorkspace"
1930
+ "when" : " editorFocus && editorLangId == python && !virtualWorkspace && shellExecutionSupported "
1931
1931
},
1932
1932
{
1933
1933
"command" : " python.sortImports" ,
1934
1934
"group" : " Refactor" ,
1935
1935
"title" : " Refactor: Sort Imports" ,
1936
- "when" : " editorLangId == python && !notebookEditorFocused && !virtualWorkspace"
1936
+ "when" : " editorLangId == python && !notebookEditorFocused && !virtualWorkspace && shellExecutionSupported "
1937
1937
}
1938
1938
],
1939
1939
"editor/title" : [
1940
1940
{
1941
1941
"command" : " python.refreshTensorBoard" ,
1942
1942
"group" : " navigation@0" ,
1943
- "when" : " python.hasActiveTensorBoardSession && !virtualWorkspace"
1943
+ "when" : " python.hasActiveTensorBoardSession && !virtualWorkspace && shellExecutionSupported "
1944
1944
}
1945
1945
],
1946
1946
"editor/title/run" : [
1947
1947
{
1948
1948
"command" : " python.execInTerminal-icon" ,
1949
1949
"group" : " navigation@0" ,
1950
1950
"title" : " %python.command.python.execInTerminal.title%" ,
1951
- "when" : " resourceLangId == python && !isInDiffEditor && !virtualWorkspace"
1951
+ "when" : " resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported "
1952
1952
},
1953
1953
{
1954
1954
"command" : " python.debugInTerminal" ,
1955
1955
"group" : " navigation@1" ,
1956
1956
"title" : " %python.command.python.debugInTerminal.title%" ,
1957
- "when" : " resourceLangId == python && !isInDiffEditor && !virtualWorkspace"
1957
+ "when" : " resourceLangId == python && !isInDiffEditor && !virtualWorkspace && shellExecutionSupported "
1958
1958
}
1959
1959
],
1960
1960
"explorer/context" : [
1961
1961
{
1962
1962
"command" : " python.execInTerminal" ,
1963
1963
"group" : " Python" ,
1964
- "when" : " resourceLangId == python && !virtualWorkspace"
1964
+ "when" : " resourceLangId == python && !virtualWorkspace && shellExecutionSupported "
1965
1965
}
1966
1966
],
1967
1967
"view/title" : [
1968
1968
{
1969
1969
"command" : " python.refreshTests" ,
1970
- "when" : " view == workbench.view.testing && !refreshingTests && inShowRefreshingTestsExperiment && !virtualWorkspace" ,
1970
+ "when" : " view == workbench.view.testing && !refreshingTests && inShowRefreshingTestsExperiment && !virtualWorkspace && shellExecutionSupported " ,
1971
1971
"group" : " navigation@0"
1972
1972
},
1973
1973
{
1974
1974
"command" : " python.refreshingTests" ,
1975
- "when" : " view == workbench.view.testing && refreshingTests && inShowRefreshingTestsExperiment && !virtualWorkspace" ,
1975
+ "when" : " view == workbench.view.testing && refreshingTests && inShowRefreshingTestsExperiment && !virtualWorkspace && shellExecutionSupported " ,
1976
1976
"group" : " navigation@0"
1977
1977
},
1978
1978
{
1979
1979
"command" : " python.stopRefreshingTests" ,
1980
- "when" : " view == workbench.view.testing && refreshingTests && inShowRefreshingTestsExperiment && !virtualWorkspace" ,
1980
+ "when" : " view == workbench.view.testing && refreshingTests && inShowRefreshingTestsExperiment && !virtualWorkspace && shellExecutionSupported " ,
1981
1981
"group" : " navigation@0"
1982
1982
},
1983
1983
{
1984
1984
"command" : " testing.reRunFailTests" ,
1985
- "when" : " view == workbench.view.testing && hasFailedTests && inShowRunFailedTestsExperiment && !virtualWorkspace" ,
1985
+ "when" : " view == workbench.view.testing && hasFailedTests && inShowRunFailedTestsExperiment && !virtualWorkspace && shellExecutionSupported " ,
1986
1986
"group" : " navigation@1"
1987
1987
}
1988
1988
]
1991
1991
{
1992
1992
"view" : " testing" ,
1993
1993
"contents" : " Configure a test framework to see your tests here.\n [Configure Python Tests](command:python.configureTests)" ,
1994
- "when" : " !virtualWorkspace"
1994
+ "when" : " !virtualWorkspace && shellExecutionSupported "
1995
1995
}
1996
1996
],
1997
1997
"yamlValidation" : [
0 commit comments