Skip to content

Commit 3bcfc3b

Browse files
author
Simon Barinka
committed
[SourceKit] Update docs
1 parent ae57085 commit 3bcfc3b

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

tools/SourceKit/docs/Protocol.md

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,14 @@ that have already been returned.
163163
```
164164
{
165165
<key.request>: (UID) <source.request.indexsource>
166-
[opt] <key.sourcetext>: (string) // Source contents.
167-
[opt] <key.sourcefile>: (string) // Absolute path to the file.
168-
[opt] <key.compilerargs> [string*] // Array of zero or more strings for the compiler arguments
169-
// e.g ["-sdk", "/path/to/sdk"]. If key.sourcefile is provided,
170-
// these must include the path to that file.
171-
[opt] <key.hash>: (string) // Known hash for the indexed file, used to determine whether
172-
// the file has changed since the last time it was indexed.
166+
[opt] <key.sourcetext>: (string) // Source contents.
167+
[opt] <key.sourcefile>: (string) // Absolute path to the file.
168+
[opt] <key.compilerargs> [string*] // Array of zero or more strings for the compiler arguments
169+
// e.g ["-sdk", "/path/to/sdk"]. If key.sourcefile is provided,
170+
// these must include the path to that file.
171+
[opt] <key.hash>: (string) // Known hash for the indexed file, used to determine whether
172+
// the file has changed since the last time it was indexed.
173+
[opt] <key.should_index_locals>: (bool) // If True, the returned index includes both local and global symbols. If False, only global symbols are included. Defaults to False.
173174
}
174175
```
175176

0 commit comments

Comments
 (0)