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 @@ -3427,6 +3427,7 @@ package body LSP.Ada_Handlers is
34273427
34283428 -- Avoid project reloading if scenario/gpr are the same
34293429 if Self.Project_Tree = null
3430+ or else Self.Charset /= Charset
34303431 or else Self.Project_Tree.Root_Project.Project_Path /= GPR
34313432 or else Self.Scenario /= Variables
34323433 or else not Match (Self.Project_Environment.Build_Tree_Dir,
@@ -3609,8 +3610,9 @@ package body LSP.Ada_Handlers is
36093610 -- We're loading an actual project
36103611 Self.Project_Status := Status;
36113612
3612- -- Store scenario variables
3613+ -- Store scenario variables and charset
36133614 Self.Scenario := Scenario;
3615+ Self.Charset := To_Unbounded_String (Charset);
36143616
36153617 -- Now load the new project
36163618 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;
@@ -276,6 +277,9 @@ private
276277 Scenario : LSP.Types.LSP_Any;
277278 -- Last used scenario variables
278279
280+ Charset : Ada.Strings.Unbounded.Unbounded_String;
281+ -- Character set from didChangeConfiguration
282+
279283 Project_Dirs_Loaded : File_Sets.Set;
280284 -- The directories to load in the "implicit project"
281285
You can’t perform that action at this time.
0 commit comments