Skip to content

Commit a7a5628

Browse files
authored
Merge branch 'master' into jeremypw/vala-symbol-pane/timeout-tree-construction
2 parents 8df9ffe + c6960ca commit a7a5628

File tree

614 files changed

+20312
-17797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

614 files changed

+20312
-17797
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -32,37 +32,35 @@ jobs:
3232
3333
flatpak:
3434
name: Flatpak
35-
runs-on: ubuntu-latest
35+
runs-on: ${{ matrix.configuration.runs-on }}
3636

3737
strategy:
3838
matrix:
39-
arch: [x86_64, aarch64]
39+
configuration:
40+
- arch: x86_64
41+
runs-on: ubuntu-latest
42+
- arch: aarch64
43+
runs-on: ubuntu-24.04-arm
4044
# Don't fail the whole workflow if one architecture fails
4145
fail-fast: false
4246

4347
container:
44-
image: ghcr.io/elementary/flatpak-platform/runtime:7.1-${{ matrix.arch }}
48+
image: ghcr.io/elementary/flatpak-platform/runtime:8-${{ matrix.configuration.arch }}
4549
options: --privileged
4650

4751
steps:
4852
- name: Checkout
4953
uses: actions/checkout@v4
5054

51-
- name: Set up QEMU for aarch64 emulation
52-
if: ${{ matrix.arch != 'x86_64' }}
53-
uses: docker/setup-qemu-action@v3
54-
with:
55-
platforms: arm64
56-
5755
- name: Build
58-
uses: flatpak/flatpak-github-actions/flatpak-builder@v6
56+
uses: flatpak/flatpak-github-actions/flatpak-builder@v6.4
5957
with:
6058
bundle: code.flatpak
6159
manifest-path: io.elementary.code.yml
6260
repository-name: appcenter
6361
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
6462
cache-key: "flatpak-builder-${{ github.sha }}"
65-
arch: ${{ matrix.arch }}
63+
arch: ${{ matrix.configuration.arch }}
6664

6765
lint:
6866
name: Lint

plugins/editorconfig/editorconfig.vala

Lines changed: 52 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -32,60 +32,65 @@ public class Scratch.Plugins.EditorConfigPlugin: Peas.ExtensionBase, Peas.Activa
3232
});
3333

3434
plugins.hook_document.connect ((d) => {
35-
// Ensure use global settings by default
36-
format_bar.tab_style_set_by_editor_config = false;
37-
format_bar.tab_width_set_by_editor_config = false;
38-
format_bar.set_document (d);
35+
update_config.begin (d);
36+
});
3937

40-
Scratch.Widgets.SourceView view = d.source_view;
41-
File file = d.file;
38+
}
4239

43-
if (file == null || !file.query_exists ()) {
44-
return;
45-
}
40+
private async void update_config (Scratch.Services.Document d) {
41+
// Ensure use global settings by default
42+
format_bar.tab_style_set_by_editor_config = false;
43+
format_bar.tab_width_set_by_editor_config = false;
44+
format_bar.set_document (d);
4645

47-
var handle = new EditorConfig.Handle ();
48-
handle.set_conf_file_name (".editorconfig");
49-
if (handle.parse (file.get_path ()) != 0) {
50-
return;
51-
}
46+
Scratch.Widgets.SourceView view = d.source_view;
47+
File file = d.file;
5248

53-
for (int i = 0; i < handle.get_name_value_count (); i++) {
54-
string name, val;
55-
handle.get_name_value (i, out name, out val);
56-
/* These are all properties (https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties) */
57-
switch (name) {
58-
case "indent_style":
59-
format_bar.tab_style_set_by_editor_config = true;
60-
var use_spaces = (val != "tab");
61-
format_bar.set_insert_spaces_instead_of_tabs (use_spaces);
62-
break;
63-
case "indent_size":
64-
case "tab_width":
65-
format_bar.tab_width_set_by_editor_config = true;
66-
var indent_width = (int.parse (val)).clamp (2, 16);
67-
format_bar.set_tab_width (indent_width);
68-
break;
69-
case "end_of_line":
70-
break;
71-
case "charset":
72-
break;
73-
case "trim_trailing_whitespace":
74-
break;
75-
case "insert_final_newline":
76-
break;
77-
case "max_line_length":
78-
view.right_margin_position = int.parse (val);
79-
break;
80-
default:
81-
warning ("unrecognised name/value %s/%s", name, val);
82-
break;
83-
}
49+
if (file == null || !file.query_exists ()) {
50+
return;
51+
}
52+
53+
var handle = new EditorConfig.Handle ();
54+
handle.set_conf_file_name (".editorconfig");
55+
if (handle.parse (file.get_path ()) != 0) {
56+
return;
57+
}
58+
59+
for (int i = 0; i < handle.get_name_value_count (); i++) {
60+
string name, val;
61+
handle.get_name_value (i, out name, out val);
62+
/* These are all properties (https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties) */
63+
switch (name) {
64+
case "indent_style":
65+
format_bar.tab_style_set_by_editor_config = true;
66+
var use_spaces = (val != "tab");
67+
format_bar.set_insert_spaces_instead_of_tabs (use_spaces);
68+
break;
69+
case "indent_size":
70+
case "tab_width":
71+
format_bar.tab_width_set_by_editor_config = true;
72+
var indent_width = (int.parse (val)).clamp (2, 16);
73+
format_bar.set_tab_width (indent_width);
74+
break;
75+
case "end_of_line":
76+
break;
77+
case "charset":
78+
break;
79+
case "trim_trailing_whitespace":
80+
break;
81+
case "insert_final_newline":
82+
break;
83+
case "max_line_length":
84+
view.right_margin_position = int.parse (val);
85+
break;
86+
default:
87+
warning ("unrecognised name/value %s/%s", name, val);
88+
break;
8489
}
85-
});
90+
}
8691
}
8792

88-
public void deactivate () { }
93+
public void deactivate () { debug ("Editor config deactivate");}
8994
}
9095

9196
[ModuleInit]

plugins/highlight-word-selection/highlight-word-selection.vala

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@ public class Scratch.Plugins.HighlightSelectedWords : Peas.ExtensionBase, Peas.A
2323
Scratch.MainWindow? main_window = null;
2424
Gtk.SourceSearchContext? current_search_context = null;
2525

26-
// Consts
27-
// Pneumonoultramicroscopicsilicovolcanoconiosis longest word in a major dictionary @ 45
28-
private const uint SELECTION_HIGHLIGHT_MAX_CHARS = 45;
26+
private const uint SELECTION_HIGHLIGHT_MAX_CHARS = 255;
2927

3028
Scratch.Services.Interface plugins;
3129
public Object object { owned get; construct; }

po/POTFILES

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ src/FolderManager/Item.vala
1515
src/FolderManager/ProjectFolderItem.vala
1616
src/Services/Document.vala
1717
src/Services/FileHandler.vala
18+
src/Services/MonitoredRepository.vala
1819
src/Services/PluginManager.vala
1920
src/Services/Settings.vala
2021
src/Services/TemplateManager.vala

0 commit comments

Comments
 (0)