Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gnome-builder
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
2
Issues
2
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Günther Wagner
gnome-builder
Commits
6fdbbd5f
Commit
6fdbbd5f
authored
Jun 01, 2020
by
Günther Wagner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
LSP: signaling initialized state
parent
d30aa2b0
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
src/libide/lsp/ide-lsp-client.c
src/libide/lsp/ide-lsp-client.c
+14
-0
src/libide/lsp/ide-lsp-client.h
src/libide/lsp/ide-lsp-client.h
+1
-0
No files found.
src/libide/lsp/ide-lsp-client.c
View file @
6fdbbd5f
...
...
@@ -83,6 +83,7 @@ enum {
};
enum
{
INITIALIZED
,
LOAD_CONFIGURATION
,
NOTIFICATION
,
PUBLISHED_DIAGNOSTICS
,
...
...
@@ -1139,6 +1140,17 @@ ide_lsp_client_class_init (IdeLspClientClass *klass)
g_object_class_install_properties
(
object_class
,
N_PROPS
,
properties
);
signals
[
INITIALIZED
]
=
g_signal_new
(
"initialized"
,
G_TYPE_FROM_CLASS
(
klass
),
G_SIGNAL_RUN_LAST
,
G_STRUCT_OFFSET
(
IdeLspClientClass
,
initialized
),
NULL
,
NULL
,
NULL
,
G_TYPE_NONE
,
0
);
/**
* IdeLspClient::load-configuration:
* @self: a #IdeLspClient
...
...
@@ -1284,6 +1296,8 @@ ide_lsp_client_initialized_cb (GObject *object,
project
=
ide_project_from_context
(
context
);
dzl_signal_group_set_target
(
priv
->
project_signals
,
project
);
g_signal_emit
(
self
,
signals
[
INITIALIZED
],
0
);
IDE_EXIT
;
}
...
...
src/libide/lsp/ide-lsp-client.h
View file @
6fdbbd5f
...
...
@@ -53,6 +53,7 @@ struct _IdeLspClientClass
GFile
*
file
,
IdeDiagnostics
*
diagnostics
);
GVariant
*
(
*
load_configuration
)
(
IdeLspClient
*
self
);
void
(
*
initialized
)
(
IdeLspClient
*
self
);
/*< private >*/
gpointer
_reserved
[
15
];
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment