Skip to content

Commit fdef01b

Browse files
committed
improve CompletionItem descriptions
1 parent deaca49 commit fdef01b

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

debugProtocol.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2357,10 +2357,11 @@
23572357
},
23582358
"start": {
23592359
"type": "integer",
2360-
"description": "When a completion is selected it replaces 'length' characters starting at 'start' in the text passed to the CompletionsRequest.\nIf missing the frontend will try to determine these values heuristically."
2360+
"description": "If specified, this value determines the location (in the CompletionsRequest's 'text' attribute) where the completion text is added.\nIf missing the text is added at the location specified by the CompletionsRequest's 'column' attribute."
23612361
},
23622362
"length": {
2363-
"type": "integer"
2363+
"type": "integer",
2364+
"description": "If specified, this value determines how many characters are overwritten by the completion text.\nIf missing all text to the right of the CompletionsRequest's 'column' attribute is replaced."
23642365
}
23652366
},
23662367
"required": [ "label" ]

protocol/src/debugProtocol.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1216,10 +1216,13 @@ export module DebugProtocol {
12161216
text?: string;
12171217
/** The item's type. Typically the client uses this information to render the item in the UI with an icon. */
12181218
type?: CompletionItemType;
1219-
/** When a completion is selected it replaces 'length' characters starting at 'start' in the text passed to the CompletionsRequest.
1220-
If missing the frontend will try to determine these values heuristically.
1219+
/** If specified, this value determines the location (in the CompletionsRequest's 'text' attribute) where the completion text is added.
1220+
If missing the text is added at the location specified by the CompletionsRequest's 'column' attribute.
12211221
*/
12221222
start?: number;
1223+
/** If specified, this value determines how many characters are overwritten by the completion text.
1224+
If missing all text to the right of the CompletionsRequest's 'column' attribute is replaced.
1225+
*/
12231226
length?: number;
12241227
}
12251228

0 commit comments

Comments
 (0)