Skip to content

Commit d5a66b0

Browse files
committed
fix(build): TypeScript compiler errors were not being shown or caught
1 parent 3eda9bb commit d5a66b0

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ configure:
3535
sh scripts/configure.sh
3636

3737
compile: $(sources) clean
38-
env PROJECTS="$(PROJECTS)" sh scripts/transpile.sh
38+
env PROJECTS="$(PROJECTS)" ./scripts/transpile.sh
3939

4040
# Rebuild, install, reconfigure local settings, restart shell, and listen to journalctl logs
4141
debug: depcheck compile install install-system76-plugins configure enable restart-shell listen

scripts/transpile.sh

100644100755
+3-3
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ glib-compile-schemas schemas &
2121

2222
for proj in ${PROJECTS}; do
2323
mkdir -p _build/${proj}
24-
tsc --p src/${proj} &
24+
tsc --p src/${proj}
2525
done
2626

27-
tsc &
27+
tsc
2828

2929
wait
3030

@@ -34,7 +34,7 @@ cp -r metadata.json icons schemas *.css _build &
3434

3535
for src in $(find target -name '*.js'); do
3636
dest=$(echo $src | sed s#target#_build#g)
37-
transpile &
37+
transpile
3838
done
3939

4040
wait

src/extension.ts

+1-4
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ export class Ext extends Ecs.System<ExtEvent> {
170170

171171
private size_requests: Map<GObject.Object, SignalID> = new Map();
172172

173-
/** Used to debounce on_focus triggers */
174-
private focus_trigger: null | SignalID = null;
175-
176173
// Entity-component associations
177174

178175
/** Store for stable sequences of each registered window */
@@ -2582,7 +2579,7 @@ function _show_skip_taskbar_windows(ext: Ext) {
25822579
// are skip taskbar true
25832580
(meta_win.get_wm_class() !== null &&
25842581
!gnome_shell_wm_class) ||
2585-
default_isoverviewwindow_ws(win);
2582+
default_isoverviewwindow_ws(win));
25862583
};
25872584
}
25882585
}

src/panel_settings.ts

-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
const Me = imports.misc.extensionUtils.getCurrentExtension();
22

3-
// import * as auto_tiler from 'auto_tiler';
43
import * as Utils from 'utils';
5-
import { Launcher } from './dialog_launcher';
64

7-
//import type { Entity } from './ecs';
85
import type { Ext } from './extension';
96

107
const { Clutter, Gio, St } = imports.gi;

src/window.ts

+10-4
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,14 @@ export class ShellWindow {
253253
}
254254

255255
is_single_max_screen(): boolean {
256-
let monitor_count = this.meta.get_display().get_n_monitors();
257-
return (this.is_maximized() || this.smart_gapped) && monitor_count == 1;
256+
const display = this.meta.get_display()
257+
258+
if (display) {
259+
let monitor_count = display.get_n_monitors();
260+
return (this.is_maximized() || this.smart_gapped) && monitor_count == 1;
261+
}
262+
263+
return false
258264
}
259265

260266
is_snap_edge(): boolean {
@@ -435,8 +441,8 @@ export class ShellWindow {
435441
*/
436442
restack(updateState: RESTACK_STATE = RESTACK_STATE.NORMAL) {
437443
this.update_border_layout();
438-
if (this.meta.is_fullscreen() ||
439-
(this.is_single_max_screen() && !this.is_snap_edge()) ||
444+
if (this.meta.is_fullscreen() ||
445+
(this.is_single_max_screen() && !this.is_snap_edge()) ||
440446
this.meta.minimized) {
441447
this.hide_border()
442448
}

0 commit comments

Comments
 (0)