Skip to content

Commit 9f3de1b

Browse files
mark the tutorial language as a LSP extension
1 parent b4cf0da commit 9f3de1b

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

Contributor Documentation/LSP Extensions.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -622,3 +622,10 @@ export interface GetReferenceDocumentResult {
622622
content: string;
623623
}
624624
```
625+
626+
## Languages
627+
628+
Added a new language with the identifier `tutorial` to support the `*.tutorial` files that
629+
Swift DocC uses to define tutorials and tutorial overviews in its documentation catalogs.
630+
It is expected that editors send document events for `tutorial` and `markdown` files if
631+
they wish to request information about these files from SourceKit-LSP.

Sources/LanguageServerProtocol/SupportTypes/Language.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ public extension Language {
154154
static let shellScript = Language(rawValue: "shellscript") // Shell Script (Bash)
155155
static let sql = Language(rawValue: "sql")
156156
static let swift = Language(rawValue: "swift")
157-
static let tutorial = Language(rawValue: "tutorial")
157+
static let tutorial = Language(rawValue: "tutorial") // LSP Extension: Swift DocC Tutorial
158158
static let typeScript = Language(rawValue: "typescript")
159159
static let typeScriptReact = Language(rawValue: "typescriptreact") // TypeScript React
160160
static let tex = Language(rawValue: "tex")

0 commit comments

Comments
 (0)