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