Skip to content

Commit

Permalink
fix: html.customData not working
Browse files Browse the repository at this point in the history
Signed-off-by: Jun-Fei Cherng <[email protected]>
  • Loading branch information
jfcherng committed Oct 28, 2024
1 parent e3d338e commit 02f9864
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os

import sublime
from LSP.plugin import Session, filename_to_uri
from LSP.plugin import Session
from lsp_utils import ApiWrapperInterface, NpmClientHandler

from .data_types import CustomDataChangedNotification
Expand Down Expand Up @@ -54,7 +54,5 @@ def resolve_custom_data_paths(self, session: Session) -> None:
resolved_custom_data_paths: list[str] = []
for folder in session.get_workspace_folders():
# Converting to URI as server can't handle reading the content if it's a file path.
resolved_custom_data_paths.extend(
filename_to_uri(os.path.abspath(os.path.join(folder.path, p))) for p in custom_data_paths
)
resolved_custom_data_paths.extend(os.path.abspath(os.path.join(folder.path, p)) for p in custom_data_paths)
session.send_notification(CustomDataChangedNotification.create(resolved_custom_data_paths))

0 comments on commit 02f9864

Please sign in to comment.