Skip to content

Commit a2ffcfb

Browse files
committed
Swapped wrong definitions and corrected minor mistakes
- key.codecomplete.options, not key.options - Moved codecomplete definition to codecomplete.open and vice versa
1 parent 29bf6a5 commit a2ffcfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tools/SourceKit/docs/Protocol.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ provided.
4040

4141
| Request Name | Request Key | Description |
4242
| -------------:|:------------|:------------|
43-
| `codecomplete` | `codecomplete` | Given a file will open a code-completion session which can be filtered upon using `codecomplete.update`. Each session must be closed using `codecomplete.close`.|
44-
| `open` | `codecomplete.open` | Open a code-completion session for the given input file and offset, and return the initial list of completions. |
43+
| `codecomplete` | `codecomplete` | Open a code-completion session for the given input file and offset, and return the initial list of completions. |
44+
| `open` | `codecomplete.open` | Given a file will open a code-completion session which can be filtered using `codecomplete.update`. Each session must be closed using `codecomplete.close`. |
4545

4646
### Request
4747

@@ -66,7 +66,7 @@ provided.
6666
[opt] <key.sourcetext>: (string) // Source contents.
6767
[opt] <key.sourcefile>: (string) // Absolute path to the file.
6868
<key.offset>: (int64) // Byte offset of code-completion point inside the source contents.
69-
[opt] <key.options>: (dict) // An options dictionary containing keys.
69+
[opt] <key.codecomplete.options>: (dict) // An options dictionary containing keys.
7070
[opt] <key.compilerargs> [string*] // Array of zero or more strings for the compiler arguments,
7171
// e.g ["-sdk", "/path/to/sdk"]. If key.sourcefile is provided,
7272
// these must include the path to that file.

0 commit comments

Comments
 (0)