This repository was archived by the owner on Mar 11, 2024. It is now read-only.
File tree 3 files changed +9
-3
lines changed
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 5
5
// Created by John Holdsworth on 02/11/2017.
6
6
// Copyright © 2017 John Holdsworth. All rights reserved.
7
7
//
8
- // $Id: //depot/ResidentEval/InjectionBundle/SwiftEval.swift#110 $
8
+ // $Id: //depot/ResidentEval/InjectionBundle/SwiftEval.swift#111 $
9
9
//
10
10
// Basic implementation of a Swift "eval()" including the
11
11
// mechanics of recompiling a class and loading the new
Original file line number Diff line number Diff line change 19
19
<key >CFBundleShortVersionString </key >
20
20
<string >1.2 </string >
21
21
<key >CFBundleVersion </key >
22
- <string >1355 </string >
22
+ <string >1357 </string >
23
23
<key >LSApplicationCategoryType </key >
24
24
<string >public.app-category.developer-tools </string >
25
25
<key >LSMinimumSystemVersion </key >
Original file line number Diff line number Diff line change @@ -172,14 +172,20 @@ - (void)runInBackground {
172
172
}
173
173
174
174
NSTimeInterval now = [NSDate timeIntervalSinceReferenceDate ];
175
+ BOOL automatic = appDelegate.enableWatcher .state == NSControlStateValueOn ;
175
176
for (NSString *swiftSource in changedFiles)
176
177
if (![pending containsObject: swiftSource])
177
178
if (now > lastInjected[swiftSource].doubleValue + MIN_INJECTION_INTERVAL && now > pause ) {
178
179
lastInjected[swiftSource] = [NSNumber numberWithDouble: now];
179
180
[pending addObject: swiftSource];
181
+ if (!automatic)
182
+ [self writeCommand: InjectionLog
183
+ withString: [NSString stringWithFormat:
184
+ @" '%@ ' saved, type ctrl-= to inject" ,
185
+ swiftSource.lastPathComponent]];
180
186
}
181
187
182
- if (appDelegate. enableWatcher . state == NSControlStateValueOn )
188
+ if (automatic )
183
189
[self injectPending ];
184
190
};
185
191
You can’t perform that action at this time.
0 commit comments