Skip to content
Commits on Source (21)
============
Version 42.0
============
Changes since 42.rc1
• Template updates for C++ and Vala
• Only enable Vala search provider if Vala is supported language
by the projects build system to avoid spawning LSP.
• Build system changes to default plugins
• Translation updates
==============
Version 42.rc1
==============
......
......@@ -90,6 +90,7 @@
<translation type="gettext">gnome-builder</translation>
<releases>
<release version="42.0" date="2022-03-18"/>
<release version="42.rc1" date="2022-03-07"/>
<release version="42.beta1" date="2022-02-22"/>
<release version="42.alpha1" date="2022-01-06"/>
......
......@@ -60,7 +60,7 @@ author = 'Christian Hergert, et al.'
# The short X.Y version.
version = '42'
# The full version, including alpha/beta/rc tags.
release = '42.rc1'
release = '42.0'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.
......
project('gnome-builder', 'c',
license: 'GPL3+',
version: '42.rc1',
version: '42.0',
meson_version: '>= 0.59.1',
default_options: [ 'c_std=gnu11',
'cpp_std=gnu++2a',
......
......@@ -52,7 +52,7 @@ option('plugin_gnome_code_assistance', type: 'boolean')
option('plugin_go_langserv', type: 'boolean')
option('plugin_gradle', type: 'boolean')
option('plugin_grep', type: 'boolean')
option('plugin_gvls', type: 'boolean')
option('plugin_gvls', type: 'boolean', value: false)
option('plugin_html_completion', type: 'boolean')
option('plugin_html_preview', type: 'boolean')
option('plugin_intelephense', type: 'boolean')
......
......@@ -47,8 +47,8 @@ msgid ""
"as GTK+, GLib, and GNOME APIs with features that any developer will "
"appreciate, like syntax highlighting and snippets."
msgstr ""
"El Constructor és un entorn de desenvolupament integrat activament "
"desenvolupat per a GNOME. Combina el suport integrat per a tecnologies GNOME"
"El Constructor és un entorn de desenvolupament integrat per a GNOME "
"desenvolupat activament. Combina el suport integrat per a tecnologies GNOME"
" essencials, com ara GTK+, GLib i les API del GNOME amb característiques que"
" qualsevol desenvolupador apreciarà, com el ressaltat de sintaxi i els "
"fragments."
......@@ -67,7 +67,7 @@ msgstr "Característiques:"
#: data/appdata/org.gnome.Builder.appdata.xml.in:24
msgid "Built in syntax highlighting for many languages"
msgstr "Construït amb ressaltat de sintaxi per a molts llenguatges"
msgstr "Incorpora ressaltat de sintaxi per a molts llenguatges"
#: data/appdata/org.gnome.Builder.appdata.xml.in:25
msgid "Side-by-side code editors"
......
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
......@@ -444,7 +444,7 @@
<object class="GtkShortcutsShortcut">
<property name="visible">true</property>
<property name="accelerator">&lt;shift&gt;&lt;alt&gt;f</property>
<property name="title" translatable="yes" context="shortcut window">(LSP only) Format selected code or whole document</property>
<property name="title" translatable="yes" comments="Translators: LSP stands for Language Server Protocol" context="shortcut window">(LSP only) Format selected code or whole document</property>
</object>
</child>
</object>
......
......@@ -412,11 +412,13 @@ ide_lsp_completion_provider_activate_proposal (IdeCompletionProvider *provider,
const GdkEventKey *key)
{
g_autoptr(IdeSnippet) snippet = NULL;
IdeSnippetChunk *chunk;
GtkTextBuffer *buffer;
GtkTextView *view;
GtkTextIter begin, end;
g_autoptr(GPtrArray) additional_text_edits;
IdeBufferManager *buffer_manager;
const gchar *text = NULL;
g_assert (IDE_IS_COMPLETION_PROVIDER (provider));
g_assert (IDE_IS_COMPLETION_CONTEXT (completion_context));
......@@ -429,10 +431,15 @@ ide_lsp_completion_provider_activate_proposal (IdeCompletionProvider *provider,
view = ide_completion_context_get_view (completion_context);
snippet = ide_lsp_completion_item_get_snippet (IDE_LSP_COMPLETION_ITEM (proposal));
if ((chunk = ide_snippet_get_nth_chunk (snippet, 0)))
text = ide_snippet_chunk_get_text (chunk);
gtk_text_buffer_begin_user_action (buffer);
if (ide_completion_context_get_bounds (completion_context, &begin, &end))
gtk_text_buffer_delete (buffer, &begin, &end);
{
gtk_text_buffer_delete (buffer, &begin, &end);
ide_completion_remove_common_prefix (ide_completion_context_get_completion (completion_context), &begin, text);
}
ide_source_view_push_snippet (IDE_SOURCE_VIEW (view), snippet, &begin);
gtk_text_buffer_end_user_action (buffer);
......
......@@ -6,6 +6,7 @@ Module=blueprint_plugin
Name=Blueprint Language Server Plugin
X-Builder-ABI=@PACKAGE_ABI@
X-Code-Action-Languages=blueprint
X-Diagnostic-Provider-Languages=blueprint
X-Completion-Provider-Languages=blueprint
X-Diagnostic-Provider-Languages-Priority=100
X-Diagnostic-Provider-Languages=blueprint
X-Hover-Provider-Languages=blueprint
......@@ -3,6 +3,7 @@
<gresource prefix="/plugins/make_plugin">
<file compressed="true">resources/Makefile</file>
<file compressed="true">resources/main.c</file>
<file compressed="true">resources/main.cpp</file>
<file compressed="true">resources/.gitignore</file>
</gresource>
</gresources>
......@@ -288,12 +288,20 @@ class MakeTemplateBase(Ide.TemplateBase, Ide.ProjectTemplate):
'exec_name': name,
}
files = {
'resources/.gitignore': '.gitignore',
'resources/Makefile': 'Makefile',
'resources/main.c': '%(exec_name)s.c',
}
self.prepare_files(files)
if self.language == 'c':
files = {
'resources/.gitignore': '.gitignore',
'resources/Makefile': 'Makefile',
'resources/main.c': '%(exec_name)s.c',
}
self.prepare_files(files)
elif self.language == 'c++':
files = {
'resources/.gitignore': '.gitignore',
'resources/Makefile': 'Makefile',
'resources/main.cpp': '%(exec_name)s.cpp',
}
self.prepare_files(files)
modes = {}
......
all: {{exec_name}}
{{if language == "c"}}
WARNINGS = -Wall
DEBUG = -ggdb -fno-omit-frame-pointer
OPTIMIZE = -O2
{{else if language == "c++"}}
WARNINGS = -Wall -Weffc++ -Wextra -Wsign-conversion -pedantic-errors
DEBUG = -ggdb -fno-omit-frame-pointer
OPTIMIZE = -O2
STANDARD = -std=c++2a
{{end}}
{{if language == "c"}}
{{exec_name}}: Makefile {{exec_name}}.c
$(CC) -o $@ $(WARNINGS) $(DEBUG) $(OPTIMIZE) {{exec_name}}.c
{{else if language == "c++"}}
{{exec_name}}: Makefile {{exec_name}}.cpp
$(CXX) -o $@ $(WARNINGS) $(DEBUG) $(OPTIMIZE) $(STANDARD) {{exec_name}}.cpp
{{end}}
clean:
rm -f {{exec_name}}
......@@ -20,4 +33,3 @@ install:
run:
./{{exec_name}}
{{include "license.cpp"}}
#include <iostream>
#include <cstdlib>
int
main ()
{
std::cout << "Hello, World!\n";
return EXIT_SUCCESS;
}