Skip to content

Commit

Permalink
Update types.py
Browse files Browse the repository at this point in the history
  • Loading branch information
95833 authored Dec 23, 2024
1 parent fc1e0d2 commit e77be17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/core/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -854,13 +854,13 @@ def map_uri_on_payload(self, payload: Any, is_from_client_to_server: bool) -> An
for i, v in enumerate(payload):
payload[i] = self.map_uri_on_payload(v, is_from_client_to_server)

if isinstance(payload, str) and payload.startswith("file://"):
if isinstance(payload, str) and payload.startswith("file://"):
for path_map in self.path_maps:
path, mapped = path_map.map_from_local_to_remote(payload) if is_from_client_to_server else \
path_map.map_from_remote_to_local(payload)
if mapped:
payload = path

return payload

def match_view(self, view: sublime.View, scheme: str) -> bool:
Expand Down

0 comments on commit e77be17

Please sign in to comment.