Commit c9bb42ef authored by Patrick Griffis's avatar Patrick Griffis Committed by Christian Hergert
Browse files

gjs_symbols: Escape file paths passed to js

parent 5b26eb17
......@@ -264,7 +264,7 @@ class GjsSymbolProvider(Ide.Object, Ide.SymbolResolver):
def _get_launcher(context, file_):
file_path = file_.get_path()
script = JS_SCRIPT % file_path
script = JS_SCRIPT % file_path.replace('\\', '\\\\').replace("'", "\\'")
unsaved_file = Ide.UnsavedFiles.from_context(context).get_unsaved_file(file_)
if context.has_project():
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment