|
2007 | 2007 | "command": "o.restart", |
2008 | 2008 | "title": "%command.o.restart%", |
2009 | 2009 | "category": "OmniSharp", |
2010 | | - "enablement": "config.dotnet.server.useOmnisharp" |
| 2010 | + "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
2011 | 2011 | }, |
2012 | 2012 | { |
2013 | 2013 | "command": "o.pickProjectAndStart", |
2014 | 2014 | "title": "%command.o.pickProjectAndStart%", |
2015 | 2015 | "category": "OmniSharp", |
2016 | | - "enablement": "config.dotnet.server.useOmnisharp" |
| 2016 | + "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
2017 | 2017 | }, |
2018 | 2018 | { |
2019 | 2019 | "command": "dotnet.openSolution", |
2020 | 2020 | "title": "%command.dotnet.openSolution%", |
2021 | 2021 | "category": ".NET", |
2022 | | - "enablement": "!config.dotnet.server.useOmnisharp && dotnet.server.activatedStandalone" |
| 2022 | + "enablement": "dotnet.server.activationContext == 'Roslyn'" |
2023 | 2023 | }, |
2024 | 2024 | { |
2025 | 2025 | "command": "o.fixAll.solution", |
2026 | 2026 | "title": "%command.o.fixAll.solution%", |
2027 | 2027 | "category": "OmniSharp", |
2028 | | - "enablement": "config.dotnet.server.useOmnisharp" |
| 2028 | + "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
2029 | 2029 | }, |
2030 | 2030 | { |
2031 | 2031 | "command": "o.fixAll.project", |
2032 | 2032 | "title": "%command.o.fixAll.project%", |
2033 | 2033 | "category": "OmniSharp", |
2034 | | - "enablement": "config.dotnet.server.useOmnisharp" |
| 2034 | + "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
2035 | 2035 | }, |
2036 | 2036 | { |
2037 | 2037 | "command": "o.fixAll.document", |
2038 | 2038 | "title": "%command.o.fixAll.document%", |
2039 | 2039 | "category": "OmniSharp", |
2040 | | - "enablement": "config.dotnet.server.useOmnisharp" |
| 2040 | + "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
2041 | 2041 | }, |
2042 | 2042 | { |
2043 | 2043 | "command": "o.reanalyze.allProjects", |
2044 | 2044 | "title": "%command.o.reanalyze.allProjects%", |
2045 | 2045 | "category": "OmniSharp", |
2046 | | - "enablement": "config.dotnet.server.useOmnisharp" |
| 2046 | + "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
2047 | 2047 | }, |
2048 | 2048 | { |
2049 | 2049 | "command": "o.reanalyze.currentProject", |
2050 | 2050 | "title": "%command.o.reanalyze.currentProject%", |
2051 | 2051 | "category": "OmniSharp", |
2052 | | - "enablement": "config.dotnet.server.useOmnisharp" |
| 2052 | + "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
2053 | 2053 | }, |
2054 | 2054 | { |
2055 | 2055 | "command": "dotnet.generateAssets", |
|
2060 | 2060 | "command": "dotnet.restore.project", |
2061 | 2061 | "title": "%command.dotnet.restore.project%", |
2062 | 2062 | "category": ".NET", |
2063 | | - "enablement": "dotnet.server.activatedStandalone" |
| 2063 | + "enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
2064 | 2064 | }, |
2065 | 2065 | { |
2066 | 2066 | "command": "dotnet.restore.all", |
2067 | 2067 | "title": "%command.dotnet.restore.all%", |
2068 | 2068 | "category": ".NET", |
2069 | | - "enablement": "dotnet.server.activatedStandalone" |
2070 | | - }, |
2071 | | - { |
2072 | | - "command": "csharp.downloadDebugger", |
2073 | | - "title": "%command.csharp.downloadDebugger%", |
2074 | | - "category": "Debug" |
| 2069 | + "enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
2075 | 2070 | }, |
2076 | 2071 | { |
2077 | 2072 | "command": "csharp.listProcess", |
|
2102 | 2097 | "command": "csharp.showDecompilationTerms", |
2103 | 2098 | "title": "%command.csharp.showDecompilationTerms%", |
2104 | 2099 | "category": "CSharp", |
2105 | | - "enablement": "config.dotnet.server.useOmnisharp" |
| 2100 | + "enablement": "dotnet.server.activationContext == 'OmniSharp'" |
2106 | 2101 | }, |
2107 | 2102 | { |
2108 | 2103 | "command": "extension.showRazorCSharpWindow", |
|
2123 | 2118 | "command": "dotnet.test.runTestsInContext", |
2124 | 2119 | "title": "%command.dotnet.test.runTestsInContext%", |
2125 | 2120 | "category": ".NET", |
2126 | | - "enablement": "dotnet.server.activatedStandalone" |
| 2121 | + "enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
2127 | 2122 | }, |
2128 | 2123 | { |
2129 | 2124 | "command": "dotnet.test.debugTestsInContext", |
2130 | 2125 | "title": "%command.dotnet.test.debugTestsInContext%", |
2131 | 2126 | "category": ".NET", |
2132 | | - "enablement": "dotnet.server.activatedStandalone" |
| 2127 | + "enablement": "dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
2133 | 2128 | }, |
2134 | 2129 | { |
2135 | 2130 | "command": "dotnet.restartServer", |
2136 | 2131 | "title": "%command.dotnet.restartServer%", |
2137 | 2132 | "category": ".NET", |
2138 | | - "enablement": "!config.dotnet.server.useOmnisharp" |
| 2133 | + "enablement": "dotnet.server.activationContext != 'OmniSharp'" |
2139 | 2134 | } |
2140 | 2135 | ], |
2141 | 2136 | "keybindings": [ |
|
5637 | 5632 | "commandPalette": [ |
5638 | 5633 | { |
5639 | 5634 | "command": "dotnet.test.runTestsInContext", |
5640 | | - "when": "editorLangId == csharp && dotnet.server.activatedStandalone" |
| 5635 | + "when": "editorLangId == csharp && dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
5641 | 5636 | }, |
5642 | 5637 | { |
5643 | 5638 | "command": "dotnet.test.debugTestsInContext", |
5644 | | - "when": "editorLangId == csharp && dotnet.server.activatedStandalone" |
| 5639 | + "when": "editorLangId == csharp && dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp'" |
5645 | 5640 | }, |
5646 | 5641 | { |
5647 | 5642 | "command": "o.restart", |
5648 | | - "when": "config.dotnet.server.useOmnisharp" |
| 5643 | + "when": "dotnet.server.activationContext == 'OmniSharp'" |
5649 | 5644 | }, |
5650 | 5645 | { |
5651 | 5646 | "command": "csharp.listProcess", |
|
5677 | 5672 | "editor/context": [ |
5678 | 5673 | { |
5679 | 5674 | "command": "dotnet.test.runTestsInContext", |
5680 | | - "when": "editorLangId == csharp && dotnet.server.activatedStandalone", |
| 5675 | + "when": "editorLangId == csharp && (dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp')", |
5681 | 5676 | "group": "2_dotnet@1" |
5682 | 5677 | }, |
5683 | 5678 | { |
5684 | 5679 | "command": "dotnet.test.debugTestsInContext", |
5685 | | - "when": "editorLangId == csharp && dotnet.server.activatedStandalone", |
| 5680 | + "when": "editorLangId == csharp && (dotnet.server.activationContext == 'Roslyn' || dotnet.server.activationContext == 'OmniSharp')", |
5686 | 5681 | "group": "2_dotnet@2" |
5687 | 5682 | } |
5688 | 5683 | ] |
|
0 commit comments