Skip to content

Commit

Permalink
Add filename to arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
aemoncannon committed Jul 11, 2012
1 parent 9b179f4 commit ce773ae
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ensime.py
Expand Up @@ -45,7 +45,7 @@ def inspect_type_at_point_on_complete_wrapper(self, on_complete, payload):
def get_completions(self, file_path, position):
if self.v.is_dirty():
size_and_diff = diff.diff_view_with_disk(self.v)
req = ensime_codec.encode_patch_source(size_and_diff)
req = ensime_codec.encode_patch_source(self.v.file_name(), size_and_diff)
self.env.controller.client.async_req(req)

req = ensime_codec.encode_completions(file_path, position)
Expand Down Expand Up @@ -527,9 +527,9 @@ class EnsimeCompletion(object): pass
def encode_symbol_at_point(self, file_path, position):
return [sym("swank:symbol-at-point"), str(file_path), int(position)]

def encode_patch_source(self, size_and_diff):
def encode_patch_source(self, file_path, size_and_diff):
(new_size, diff) = size_and_diff
return [sym("swank:patch-source"), new_size, diff]
return [sym("swank:patch-source"), file_path, new_size, diff]

def decode_symbol_at_point(self, data):
return self.decode_symbol(data)
Expand Down

0 comments on commit ce773ae

Please sign in to comment.