Skip to content

Commit 9ec33ff

Browse files
fix(aegis-server): get_compilation_data didn't normalize path like elsewhere
1 parent 56a4ea9 commit 9ec33ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aegis-server/aegis_server/server/features/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
def get_compilation_data(ctx: LanguageServerContext, text_doc: TextDocument):
50-
resource = ctx.path_to_resource.get(text_doc.path)
50+
resource = ctx.path_to_resource.get(os.path.normcase(os.path.normpath(text_doc.path)))
5151

5252
if resource and resource[0] in COMPILATION_RESULTS:
5353
return COMPILATION_RESULTS[resource[0]]

0 commit comments

Comments
 (0)