@@ -52,7 +52,6 @@ export class ExtHostLanguageFeatureCommands {
5252 returns : 'A promise that resolves to an array of SymbolInformation-instances.'
5353 }
5454 } ) ;
55-
5655 this . _register ( 'vscode.executeDefinitionProvider' , this . _executeDefinitionProvider , {
5756 description : 'Execute all definition provider.' ,
5857 signature : {
@@ -63,7 +62,6 @@ export class ExtHostLanguageFeatureCommands {
6362 returns : 'A promise that resolves to an array of Location-instances.'
6463 }
6564 } ) ;
66-
6765 this . _register ( 'vscode.executeHoverProvider' , this . _executeHoverProvider , {
6866 description : 'Execute all definition provider.' ,
6967 signature : {
@@ -74,7 +72,6 @@ export class ExtHostLanguageFeatureCommands {
7472 returns : 'A promise that resolves to an array of Hover-instances.'
7573 }
7674 } ) ;
77-
7875 this . _register ( 'vscode.executeDocumentHighlights' , this . _executeDocumentHighlights , {
7976 description : 'Execute document highlight provider.' ,
8077 signature : {
@@ -85,17 +82,108 @@ export class ExtHostLanguageFeatureCommands {
8582 returns : 'A promise that resolves to an array of DocumentHighlight-instances.'
8683 }
8784 } ) ;
88-
89- this . _register ( 'vscode.executeReferenceProvider' , this . _executeReferenceProvider ) ;
90- this . _register ( 'vscode.executeDocumentRenameProvider' , this . _executeDocumentRenameProvider ) ;
91- this . _register ( 'vscode.executeSignatureHelpProvider' , this . _executeSignatureHelpProvider ) ;
92- this . _register ( 'vscode.executeDocumentSymbolProvider' , this . _executeDocumentSymbolProvider ) ;
93- this . _register ( 'vscode.executeCompletionItemProvider' , this . _executeCompletionItemProvider ) ;
94- this . _register ( 'vscode.executeCodeActionProvider' , this . _executeCodeActionProvider ) ;
95- this . _register ( 'vscode.executeCodeLensProvider' , this . _executeCodeLensProvider ) ;
96- this . _register ( 'vscode.executeFormatDocumentProvider' , this . _executeFormatDocumentProvider ) ;
97- this . _register ( 'vscode.executeFormatRangeProvider' , this . _executeFormatRangeProvider ) ;
98- this . _register ( 'vscode.executeFormatOnTypeProvider' , this . _executeFormatOnTypeProvider ) ;
85+ this . _register ( 'vscode.executeReferenceProvider' , this . _executeReferenceProvider , {
86+ description : 'Execute reference provider.' ,
87+ signature : {
88+ args : [
89+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI } ,
90+ { name : 'position' , description : 'Position in a text document' , constraint : types . Position }
91+ ] ,
92+ returns : 'A promise that resolves to an array of Location-instances.'
93+ }
94+ } ) ;
95+ this . _register ( 'vscode.executeDocumentRenameProvider' , this . _executeDocumentRenameProvider , {
96+ description : 'Execute rename provider.' ,
97+ signature : {
98+ args : [
99+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI } ,
100+ { name : 'position' , description : 'Position in a text document' , constraint : types . Position } ,
101+ { name : 'newName' , description : 'The new symbol name' , constraint : String }
102+ ] ,
103+ returns : 'A promise that resolves to a WorkspaceEdit.'
104+ }
105+ } ) ;
106+ this . _register ( 'vscode.executeSignatureHelpProvider' , this . _executeSignatureHelpProvider , {
107+ description : 'Execute signature help provider.' ,
108+ signature : {
109+ args : [
110+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI } ,
111+ { name : 'position' , description : 'Position in a text document' , constraint : types . Position }
112+ ] ,
113+ returns : 'A promise that resolves to SignatureHelp.'
114+ }
115+ } ) ;
116+ this . _register ( 'vscode.executeDocumentSymbolProvider' , this . _executeDocumentSymbolProvider , {
117+ description : 'Execute document symbol provider.' ,
118+ signature : {
119+ args : [
120+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI }
121+ ] ,
122+ returns : 'A promise that resolves to an array of SymbolInformation-instances.'
123+ }
124+ } ) ;
125+ this . _register ( 'vscode.executeCompletionItemProvider' , this . _executeCompletionItemProvider , {
126+ description : 'Execute completion item provider.' ,
127+ signature : {
128+ args : [
129+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI } ,
130+ { name : 'position' , description : 'Position in a text document' , constraint : types . Position }
131+ ] ,
132+ returns : 'A promise that resolves to an array of CompletionItem-instances.'
133+ }
134+ } ) ;
135+ this . _register ( 'vscode.executeCodeActionProvider' , this . _executeCodeActionProvider , {
136+ description : 'Execute code action provider.' ,
137+ signature : {
138+ args : [
139+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI } ,
140+ { name : 'range' , description : 'Range in a text document' , constraint : types . Range }
141+ ] ,
142+ returns : 'A promise that resolves to an array of CompletionItem-instances.'
143+ }
144+ } ) ;
145+ this . _register ( 'vscode.executeCodeLensProvider' , this . _executeCodeLensProvider , {
146+ description : 'Execute completion item provider.' ,
147+ signature : {
148+ args : [
149+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI }
150+ ] ,
151+ returns : 'A promise that resolves to an array of Commands.'
152+ }
153+ } ) ;
154+ this . _register ( 'vscode.executeFormatDocumentProvider' , this . _executeFormatDocumentProvider , {
155+ description : 'Execute document format provider.' ,
156+ signature : {
157+ args : [
158+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI } ,
159+ { name : 'options' , description : 'Formatting options' }
160+ ] ,
161+ returns : 'A promise that resolves to an array of TextEdits.'
162+ }
163+ } ) ;
164+ this . _register ( 'vscode.executeFormatRangeProvider' , this . _executeFormatRangeProvider , {
165+ description : 'Execute range format provider.' ,
166+ signature : {
167+ args : [
168+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI } ,
169+ { name : 'range' , description : 'Range in a text document' , constraint : types . Range } ,
170+ { name : 'options' , description : 'Formatting options' }
171+ ] ,
172+ returns : 'A promise that resolves to an array of TextEdits.'
173+ }
174+ } ) ;
175+ this . _register ( 'vscode.executeFormatOnTypeProvider' , this . _executeFormatOnTypeProvider , {
176+ description : 'Execute document format provider.' ,
177+ signature : {
178+ args : [
179+ { name : 'uri' , description : 'Uri of a text document' , constraint : URI } ,
180+ { name : 'position' , description : 'Position in a text document' , constraint : types . Position } ,
181+ { name : 'ch' , description : 'Character that got typed' , constraint : String } ,
182+ { name : 'options' , description : 'Formatting options' }
183+ ] ,
184+ returns : 'A promise that resolves to an array of TextEdits.'
185+ }
186+ } ) ;
99187 }
100188
101189 // --- command impl
0 commit comments