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