File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff 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;
Original file line number Diff line number Diff line change 2020
2121with Ada.Containers.Hashed_Maps ;
2222with Ada.Containers.Hashed_Sets ;
23+ with Ada.Strings.Unbounded ;
2324with VSS.String_Vectors ;
2425
2526with 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
You can’t perform that action at this time.
0 commit comments