File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
packages/flutter_tools/lib/src Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 5
5
import 'file_system.dart' ;
6
6
import 'platform.dart' ;
7
7
8
+ /// Whether the tool started from the daemon, as opposed to the command line.
9
+ // TODO(jonahwilliams): remove once IDE updates have rolled.
10
+ bool isRunningFromDaemon = false ;
11
+
8
12
/// Return the absolute path of the user's home directory
9
13
String get homeDirPath {
10
14
String path = platform.isWindows
Original file line number Diff line number Diff line change @@ -28,10 +28,6 @@ import '../vmservice.dart';
28
28
29
29
const String protocolVersion = '0.5.2' ;
30
30
31
- /// Whether the tool started from the daemon, as opposed to the command line.
32
- bool get isRunningFromDaemon => _isRunningFromDaemon;
33
- bool _isRunningFromDaemon = false ;
34
-
35
31
/// A server process command. This command will start up a long-lived server.
36
32
/// It reads JSON-RPC based commands from stdin, executes them, and returns
37
33
/// JSON-RPC based responses and events to stdout.
@@ -53,7 +49,7 @@ class DaemonCommand extends FlutterCommand {
53
49
@override
54
50
Future <FlutterCommandResult > runCommand () async {
55
51
printStatus ('Starting device daemon...' );
56
- _isRunningFromDaemon = true ;
52
+ isRunningFromDaemon = true ;
57
53
58
54
final NotifyingLogger notifyingLogger = NotifyingLogger ();
59
55
Original file line number Diff line number Diff line change @@ -6,10 +6,10 @@ import 'dart:async';
6
6
7
7
import 'package:meta/meta.dart' ;
8
8
9
+ import 'base/common.dart' ;
9
10
import 'base/io.dart' ;
10
11
import 'base/platform.dart' ;
11
12
import 'base/process_manager.dart' ;
12
- import 'commands/daemon.dart' show isRunningFromDaemon;
13
13
import 'convert.dart' ;
14
14
import 'device.dart' ;
15
15
import 'version.dart' ;
Original file line number Diff line number Diff line change 4
4
5
5
import 'package:meta/meta.dart' ;
6
6
7
+ import '../base/common.dart' ;
7
8
import '../base/context.dart' ;
8
9
import '../base/platform.dart' ;
9
10
import '../base/process_manager.dart' ;
10
- import '../commands/daemon.dart' show isRunningFromDaemon;
11
11
import '../doctor.dart' ;
12
12
import '../version.dart' ;
13
13
import 'chrome.dart' ;
You can’t perform that action at this time.
0 commit comments