Skip to content

Commit

Permalink
Add debugType checks for all contexts that require a debug session
Browse files Browse the repository at this point in the history
  • Loading branch information
DanTup committed Dec 9, 2021
1 parent ea00f6c commit 3cf0c34
Showing 1 changed file with 23 additions and 23 deletions.
46 changes: 23 additions & 23 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@
},
{
"command": "dart.openObservatory",
"when": "dart-code:anyProjectLoaded && inDebugMode"
"when": "dart-code:anyProjectLoaded && inDebugMode && debugType == dart"
},
{
"command": "dart.openAnalyzerDiagnostics",
Expand Down Expand Up @@ -858,67 +858,67 @@
},
{
"command": "flutter.toggleDebugPainting",
"when": "inDebugMode && dart-code:serviceExtension.ext.flutter.debugPaint"
"when": "inDebugMode && debugType == dart && dart-code:serviceExtension.ext.flutter.debugPaint"
},
{
"command": "flutter.togglePerformanceOverlay",
"when": "inDebugMode && dart-code:serviceExtension.ext.flutter.showPerformanceOverlay"
"when": "inDebugMode && debugType == dart && dart-code:serviceExtension.ext.flutter.showPerformanceOverlay"
},
{
"command": "flutter.overridePlatform",
"when": "inDebugMode && dart-code:serviceExtension.ext.flutter.platformOverride"
"when": "inDebugMode && debugType == dart && dart-code:serviceExtension.ext.flutter.platformOverride"
},
{
"command": "flutter.toggleBrightness",
"when": "inDebugMode && dart-code:serviceExtension.ext.flutter.brightnessOverride"
"when": "inDebugMode && debugType == dart && dart-code:serviceExtension.ext.flutter.brightnessOverride"
},
{
"command": "flutter.toggleRepaintRainbow",
"when": "inDebugMode && dart-code:serviceExtension.ext.flutter.repaintRainbow"
"when": "inDebugMode && debugType == dart && dart-code:serviceExtension.ext.flutter.repaintRainbow"
},
{
"command": "flutter.toggleSlowAnimations",
"when": "inDebugMode && dart-code:serviceExtension.ext.flutter.timeDilation"
"when": "inDebugMode && debugType == dart && dart-code:serviceExtension.ext.flutter.timeDilation"
},
{
"command": "flutter.toggleDebugModeBanner",
"when": "inDebugMode && dart-code:serviceExtension.ext.flutter.debugAllowBanner"
"when": "inDebugMode && debugType == dart && dart-code:serviceExtension.ext.flutter.debugAllowBanner"
},
{
"command": "flutter.toggleCheckElevations",
"when": "inDebugMode && dart-code:serviceExtension.ext.flutter.debugCheckElevationsEnabled"
"when": "inDebugMode && debugType == dart && dart-code:serviceExtension.ext.flutter.debugCheckElevationsEnabled"
},
{
"command": "flutter.togglePaintBaselines",
"when": "inDebugMode && dart-code:serviceExtension.ext.flutter.debugPaintBaselinesEnabled"
"when": "inDebugMode && debugType == dart && dart-code:serviceExtension.ext.flutter.debugPaintBaselinesEnabled"
},
{
"command": "flutter.inspectWidget",
"when": "inDebugMode && !dart-code:flutter.isInspectingWidget"
"when": "inDebugMode && debugType == dart && !dart-code:flutter.isInspectingWidget"
},
{
"command": "flutter.cancelInspectWidget",
"when": "inDebugMode && dart-code:flutter.isInspectingWidget"
"when": "inDebugMode && debugType == dart && dart-code:flutter.isInspectingWidget"
},
{
"command": "flutter.hotRestart",
"when": "dart-code:anyFlutterProjectLoaded && inDebugMode && dart-code:service.hotRestart"
"when": "dart-code:anyFlutterProjectLoaded && inDebugMode && debugType == dart && dart-code:service.hotRestart"
},
{
"command": "flutter.hotReload",
"when": "dart-code:anyFlutterProjectLoaded && inDebugMode && dart-code:service.reloadSources"
"when": "dart-code:anyFlutterProjectLoaded && inDebugMode && debugType == dart && dart-code:service.reloadSources"
},
{
"command": "_dart.hotReload.touchBar",
"when": "false"
},
{
"command": "flutter.openTimeline",
"when": "dart-code:anyFlutterProjectLoaded && inDebugMode"
"when": "dart-code:anyFlutterProjectLoaded && inDebugMode && debugType == dart"
},
{
"command": "dart.hotReload",
"when": "inDebugMode"
"when": "inDebugMode && debugType == dart"
},
{
"command": "dart.openDevTools",
Expand All @@ -930,27 +930,27 @@
},
{
"command": "dart.openDevToolsInspector",
"when": "dart-code:anyProjectLoaded && inDebugMode && dart-code:anyFlutterProjectLoaded"
"when": "dart-code:anyProjectLoaded && inDebugMode && debugType == dart && dart-code:anyFlutterProjectLoaded"
},
{
"command": "dart.openDevToolsPerformance",
"when": "dart-code:anyProjectLoaded && inDebugMode && dart-code:anyFlutterProjectLoaded"
"when": "dart-code:anyProjectLoaded && inDebugMode && debugType == dart && dart-code:anyFlutterProjectLoaded"
},
{
"command": "dart.openDevToolsMemory",
"when": "dart-code:anyProjectLoaded && inDebugMode"
"when": "dart-code:anyProjectLoaded && inDebugMode && debugType == dart"
},
{
"command": "dart.openDevToolsCpuProfiler",
"when": "dart-code:anyProjectLoaded && inDebugMode"
"when": "dart-code:anyProjectLoaded && inDebugMode && debugType == dart"
},
{
"command": "dart.openDevToolsNetwork",
"when": "dart-code:anyProjectLoaded && inDebugMode"
"when": "dart-code:anyProjectLoaded && inDebugMode && debugType == dart"
},
{
"command": "dart.openDevToolsLogging",
"when": "dart-code:anyProjectLoaded && inDebugMode"
"when": "dart-code:anyProjectLoaded && inDebugMode && debugType == dart"
},
{
"command": "_dart.openDevTools.touchBar",
Expand Down Expand Up @@ -1002,7 +1002,7 @@
},
{
"command": "flutter.screenshot",
"when": "dart-code:anyFlutterProjectLoaded && inDebugMode"
"when": "dart-code:anyFlutterProjectLoaded && inDebugMode && debugType == dart"
},
{
"command": "_flutter.screenshot.touchBar",
Expand Down

0 comments on commit 3cf0c34

Please sign in to comment.