We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 913aefc + f14209a commit ab51614Copy full SHA for ab51614
typescript/libs/popup_manager.py
@@ -286,7 +286,7 @@ def load_html_template(html_file_name):
286
html_path = os.path.join(PLUGIN_DIR, html_file_name)
287
288
# Needs to be in format such as: 'Packages/TypeScript/signature_popup.html'
289
- rel_path = html_path[len(sublime.packages_path()) - len('Packages'):]
+ rel_path = os.path.relpath(html_path, os.path.normpath(os.path.join(sublime.packages_path(), '..')))
290
rel_path = rel_path.replace('\\', '/') # Yes, even on Windows
291
292
log.info('Loaded html template from {0}'.format(rel_path))
0 commit comments