Skip to content

Commit 1496b66

Browse files
author
mergerepo
committed
Merge remote branch 'origin/master' into edge
(no-precommit-check no-tn-check)
2 parents 75ac820 + 1212978 commit 1496b66

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

source/ada/lsp-ada_handlers.adb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3442,6 +3442,7 @@ package body LSP.Ada_Handlers is
34423442

34433443
-- Avoid project reloading if scenario/gpr are the same
34443444
if Self.Project_Tree = null
3445+
or else Self.Charset /= Charset
34453446
or else Self.Project_Tree.Root_Project.Project_Path /= GPR
34463447
or else Self.Scenario /= Variables
34473448
or else not Match (Self.Project_Environment.Build_Tree_Dir,
@@ -3624,8 +3625,9 @@ package body LSP.Ada_Handlers is
36243625
-- We're loading an actual project
36253626
Self.Project_Status := Status;
36263627

3627-
-- Store scenario variables
3628+
-- Store scenario variables and charset
36283629
Self.Scenario := Scenario;
3630+
Self.Charset := To_Unbounded_String (Charset);
36293631

36303632
-- Now load the new project
36313633
Errors.a_type := LSP.Messages.Warning;

source/ada/lsp-ada_handlers.ads

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
with Ada.Containers.Hashed_Maps;
2222
with Ada.Containers.Hashed_Sets;
23+
with Ada.Strings.Unbounded;
2324
with VSS.String_Vectors;
2425

2526
with GNATCOLL.VFS; use GNATCOLL.VFS;
@@ -281,6 +282,9 @@ private
281282
Scenario : LSP.Types.LSP_Any;
282283
-- Last used scenario variables
283284

285+
Charset : Ada.Strings.Unbounded.Unbounded_String;
286+
-- Character set from didChangeConfiguration
287+
284288
Project_Dirs_Loaded : File_Sets.Set;
285289
-- The directories to load in the "implicit project"
286290

0 commit comments

Comments
 (0)