@@ -47,31 +47,31 @@ def completions(self, path, location=Location(1, 1), prefix="", on_completed=Non
4747 json_str = json_helpers .encode (req_dict )
4848 self .__comm .sendCmd (
4949 json_str ,
50- req_dict [ "seq" ] ,
51- lambda response_dict : None if on_completed is None else on_completed ( response_dict )
50+ lambda response_dict : None if on_completed is None else on_completed ( response_dict ) ,
51+ req_dict [ "seq" ]
5252 )
5353
5454 def async_completions (self , path , location = Location (1 , 1 ), prefix = "" , on_completed = None ):
5555 args = {"file" : path , "line" : location .line , "offset" : location .offset , "prefix" : prefix }
5656 req_dict = self .create_req_dict ("completions" , args )
5757 json_str = json_helpers .encode (req_dict )
58- self .__comm .sendCmdAsync (json_str , req_dict ["seq" ], on_completed )
58+ self .__comm .sendCmdAsync (json_str , on_completed , req_dict ["seq" ])
5959
6060 def signature_help (self , path , location = Location (1 , 1 ), prefix = "" , on_completed = None ):
6161 args = {"file" : path , "line" : location .line , "offset" : location .offset , "prefix" : prefix }
6262 req_dict = self .create_req_dict ("signatureHelp" , args )
6363 json_str = json_helpers .encode (req_dict )
6464 self .__comm .sendCmd (
6565 json_str ,
66- req_dict [ "seq" ] ,
67- lambda response_dict : None if on_completed is None else on_completed ( response_dict )
66+ lambda response_dict : None if on_completed is None else on_completed ( response_dict ) ,
67+ req_dict [ "seq" ]
6868 )
6969
7070 def async_signature_help (self , path , location = Location (1 , 1 ), prefix = "" , on_completed = None ):
7171 args = {"file" : path , "line" : location .line , "offset" : location .offset , "prefix" : prefix }
7272 req_dict = self .create_req_dict ("signatureHelp" , args )
7373 json_str = json_helpers .encode (req_dict )
74- self .__comm .sendCmdAsync (json_str , req_dict ["seq" ], on_completed )
74+ self .__comm .sendCmdAsync (json_str , on_completed , req_dict ["seq" ])
7575
7676 def definition (self , path , location = Location (1 , 1 )):
7777 args = {"file" : path , "line" : location .line , "offset" : location .offset }
@@ -130,7 +130,7 @@ def reload_async(self, path, alternate_path, on_completed):
130130 args = {"file" : path , "tmpfile" : alternate_path }
131131 req_dict = self .create_req_dict ("reload" , args )
132132 json_str = json_helpers .encode (req_dict )
133- self .__comm .sendCmdAsync (json_str , req_dict ["seq" ], on_completed )
133+ self .__comm .sendCmdAsync (json_str , on_completed , req_dict ["seq" ])
134134
135135 def rename (self , path , location = Location (1 , 1 )):
136136 args = {"file" : path , "line" : location .line , "offset" : location .offset }
@@ -160,14 +160,14 @@ def quick_info(self, path, location=Location(1, 1), on_completed=None):
160160 if not IS_ST2 :
161161 self .__comm .sendCmdAsync (
162162 json_str ,
163- req_dict [ "seq" ] ,
164- callback
163+ callback ,
164+ req_dict [ "seq" ]
165165 )
166166 else :
167167 self .__comm .sendCmd (
168168 json_str ,
169- req_dict [ "seq" ] ,
170- callback
169+ callback ,
170+ req_dict [ "seq" ]
171171 )
172172
173173 def get_event (self ):
0 commit comments