James Westman
684ed7dc02
Fix crash on incomplete Adw.AlertDialog response
2025-07-05 10:54:56 -05:00
James Westman
6bef9a39dd
signal: Add object signature on hover
2025-07-05 10:54:56 -05:00
James Westman
8c19561636
completions: Add Adw.Breakpoint
2025-07-05 10:54:56 -05:00
James Westman
610d9c85a5
completions: Simplify token matching code
2025-07-05 10:54:56 -05:00
James Westman
c7a61d2227
completions: Don't suggest "null" where not allowed
2025-07-05 10:54:56 -05:00
James Westman
119f00f92c
completions: Object names in signal handlers
2025-07-05 10:54:56 -05:00
James Westman
307e11741b
completions: Fix completions in identifiers
2025-07-05 10:54:56 -05:00
James Westman
ccbd0fe78d
completions: Add types in typeof<> and as<>
2025-07-05 10:54:55 -05:00
James Westman
55a0473061
completions: Add GtkScale mark positions
2025-07-05 10:54:55 -05:00
James Westman
21e0adda3e
parser: Tweak parsing during error conditions
...
When an explicit parsing error is encountered and a CompileError raised,
apply the changes to the context state. This way, the rule that catches
the exception (e.g. Statement or Until) knows where the error occurred.
Also, changed "Expected" errors to be reported at the end of the
previous non-whitespace token.
2025-07-05 10:54:55 -05:00
James Westman
bb67e68da5
completions: Fix generated signal handler name
...
A syntax error in the snippet caused the generated signal handler name
not to be used.
2025-07-05 10:54:55 -05:00
James Westman
df7e0b667e
completions: Add completions for response IDs
2025-07-05 10:54:55 -05:00
James Westman
24abba1866
values: Don't allow assigning true/false to object
...
Fix a bug in the type checking code where it would not produce an error
if you assigned "true" or "false" to an object property.
2025-07-05 10:54:55 -05:00
James Westman
2be5793f22
gtk_a11y: Add new state and property
2025-07-05 10:54:55 -05:00
James Westman
f6cfed2748
completions: Improve accessibility properties
2025-07-05 10:54:55 -05:00
James Westman
fd75135a04
completions: Sort completion items
2025-07-05 10:54:54 -05:00
James Westman
986a3376f8
completions: Add object value completions
...
For object properties, add completions for named objects in the
blueprint and for matching classes in imported namespaces. Also add null
and bind.
2025-07-05 10:54:54 -05:00
James Westman
6453621208
completions: Add completer for import statements
2025-07-05 10:54:54 -05:00
James Westman
4babd89b05
completions: Add translation-domain completer
2025-07-05 10:54:54 -05:00
James Westman
71d4a29740
completions: Complete available namespaces
...
Add completions for namespaces in the typelib path that can be imported.
Accepting the completion automatically adds an import statement.
2025-07-05 10:54:54 -05:00
James Westman
08aea0f219
lsp: Fix completions when editing existing item
...
Many completion snippets insert more than just the name. For example,
the object completer inserts the braces and places your cursor inside
them automatically, to save some typing. However, if you're changing the
class of an existing object, this isn't what you want. Changed so that
if the next token is '{', only the name is inserted.
Made similar changes to the property and signal completers.
2025-07-05 10:54:54 -05:00
Alice Mikhaylenko
60e704ee9a
main: Skip unchanged blp files in batch-compile
...
Don't invalidate everything every time, otherwise we rebuild everything
even when no file has changed at all. With e.g. Vala this means more or
less rebuilding the entire project with no incremental builds.
2025-07-05 10:10:33 -05:00
Jordan Petridis
0dc27cd01d
ci: Use the same build job for creating the dist tarball as well
...
We don't need two jobs and its fine to always run meson dist
2025-07-02 14:37:00 +03:00
James Westman
07c9c9df9c
Release v0.18.0
2025-07-01 21:12:35 -05:00
James Westman
ee089aa7f9
ci: Configure tarball releases
2025-07-01 21:07:54 -05:00
James Westman
6e010148b2
Remove donate link from README
2025-06-14 15:11:39 -05:00
Matthijs Velsink
5a951696a7
docs: Small improvements for extensions
...
- Add Gtk.Scale mark example
- Add ExtScaleMarks to the index
- Keep the index alphabetically sorted
- Use the same order in the text
2025-06-14 11:44:06 -05:00
James Westman
71dcc02198
Allow inline menus
...
Newer versions of GTK allow menus to be specified inline in properties.
2025-06-14 10:33:03 -05:00
James Westman
4d42bd68c1
Post-release version bump
2025-06-14 10:19:25 -05:00
James Westman
5c7fb03da7
Fix incorrect error with Adw.AlertDialog responses
2025-05-07 17:08:26 -05:00
James Westman
2e42dc6848
decompiler: Fix bug in signals with template object
...
If a signal handler had the template as its object, the decompiler would
output the class name instead of the 'template' keyword.
2025-05-03 07:46:34 -05:00
James Westman
a12d3f5c81
decompile: Fix bug in lookup tags
...
A lookup tag with no type attribute would crash the decompiler, even if
that was valid. This wasn't caught by the tests since blueprint never
generates such XML.
Also fixed a bug in the tests that caused decompiler-only tests not to
run.
2025-04-25 20:13:01 -05:00
James Westman
a83c7e936d
black: Update formatting
2025-04-25 18:32:33 -05:00
James Westman
3816f4fe8d
Add .doap file
2025-04-25 18:29:55 -05:00
James Westman
e9d61cb6f9
Update URLs after move to GNOME namespace on GitLab
2025-04-25 18:29:55 -05:00
James Westman
6a77bfee0a
tests: Fix typing
2025-04-19 13:27:20 -05:00
James Westman
f50b898e4c
adw_breakpoint: Fix crash in language server
...
Fix a crash that happened when an AdwBreakpointSetter rule was
incomplete, such as when you're still typing it. Fixes #189 .
2025-04-01 19:27:59 -05:00
Tom Greig
cc09f3d3bb
Add tests for nested templates
...
Basically just a copy of the list_factory test, but with an extra copy
of the list factory inside it.
2025-03-30 10:27:11 +01:00
Tom Greig
f93d5d2acd
Handle nested CDATA from nested templates
...
When putting CDATA into the output, any instances of ']]>' in the text
are replaced with ']]]]><![CDATA[>'. This allows nested templates, e.g.
from list views inside list views to work properly.
2025-03-28 20:53:03 +00:00
Sertonix
394014429e
Sort keys in collect-sections.py
...
This makes sure that the reference_docs.json file
is build reproducible.
Ref https://reproducible-builds.org/
2025-03-24 22:58:43 +00:00
Chris Mayo
a4e0c3701b
docs: Update overview example using format and compile
2025-03-21 01:01:24 +00:00
kotontrion
c1fbcef6d0
Merge branch blueprint-compiler:main into main
2025-03-02 15:26:42 +00:00
James Westman
404ae76787
Update MAINTENANCE.md
2025-01-17 17:25:21 -06:00
James Westman
04ef0944db
Release v0.16.0
2025-01-17 17:04:52 -06:00
James Westman
aa13c8f5af
Warn about single-quoted translated strings
...
gettext only recognizes double quoted strings
2025-01-05 14:27:59 -06:00
Alexey Yerin
29e4a56bfc
Formatter: Remove trailing whitespace from comments
...
Fixes #153
2025-01-04 17:17:53 +00:00
James Westman
8c6f8760f7
language: Add expression literals
...
Add expression literals, so you can set properties of type
Gtk.Expression.
2025-01-04 17:09:57 +00:00
Alexey Yerin
b9f58aeab5
Formatter: Add trailing commas in lists
2025-01-04 16:29:15 +00:00
James Westman
55e5095fba
values: Don't allow translated strings in arrays
...
Gtk.Builder has no way to translate individual strings in a string
array, so don't allow it in the syntax.
2025-01-03 18:56:24 -06:00
Alexey Yerin
f3faf4b993
LSP: Handle shutdown commands
...
This fixes the issue with terminal-based editor Helix which asks
language servers to shut down when trying to close the editor. Since
blueprint-compiler's server implementation didn't handle this request,
Helix ended up waiting for a response until timing out after a few
seconds and forcefully terminating the language server process.
Besides fixing Helix, this patch should also make user-initiated server
restarts more robust.
2025-01-03 22:49:36 +03:00