Skip to content

Commit

Permalink
fix: minor fix for SourceToolkit-LSP doc
Browse files Browse the repository at this point in the history
Signed-off-by: azerr <[email protected]>
  • Loading branch information
angelozerr committed Nov 30, 2024
1 parent 26defaf commit a7d451d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 15 deletions.
15 changes: 10 additions & 5 deletions docs/user-defined-ls/sourcekit-lsp.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,20 @@
To enable Swift language support in your IDE, you can integrate [SourceKit-LSP](https://github.com/swiftlang/sourcekit-lsp) by following these steps:

1. Install Swift. Please see the [Getting Started Guide on Swift.org](https://www.swift.org/getting-started/) for details on how to install Swift on your system.
This installation will install the [SourceKit-LSP](https://github.com/swiftlang/sourcekit-lsp) language server.
This installation will install the [SourceKit-LSP](https://github.com/swiftlang/sourcekit-lsp) language server.

2. **Open the New Language Server Dialog**. This can usually be found under the IDE settings related to Language Server Protocol (LSP).
For more information, refer to the [New Language Server Dialog documentation](../UserDefinedLanguageServer.md#new-language-server-dialog).
2. **Open the New Language Server Dialog**. This can usually be found under the IDE settings related to Language Server Protocol (LSP).
For more information, refer to the [New Language Server Dialog documentation](../UserDefinedLanguageServer.md#new-language-server-dialog).

3**Select SourceKit-LSP as the template** from the available options.
3. **Select SourceKit-LSP as the template** from the available options.
This will populate the command field with a default command `sourcekit-lsp`

![SourceKit-LSP template](../images/user-defined-ls/SourceKitLSPTemplate.png)

4. **Optional**: You may also customize the mappings section according to your preferences.

![SourceKit-LSP template mappings](../images/user-defined-ls/SourceKitLSPTemplateMappings.png)

5. **Click OK** to apply the changes. You should now have Swift language support enabled in your IDE.


![SourceKit-LSP in LSP Console](../images/user-defined-ls/SourceKitLSPInLSPConsole.png)
13 changes: 3 additions & 10 deletions src/main/resources/templates/sourcekit-lsp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,9 @@ To enable Swift language support in your IDE, you can integrate [SourceKit-LSP](
2. **Open the New Language Server Dialog**. This can usually be found under the IDE settings related to Language Server Protocol (LSP).
For more information, refer to the [New Language Server Dialog documentation](../UserDefinedLanguageServer.md#new-language-server-dialog).

3**Select SourceKit-LSP as the template** from the available options.
This will populate the command field with a default command `sourcekit-lsp`

![SourceKit-LSP template](../images/user-defined-ls/SourceKitLSPTemplate.png)
3. **Select SourceKit-LSP as the template** from the available options.
This will populate the command field with a default command `sourcekit-lsp`

4. **Optional**: You may also customize the mappings section according to your preferences.

![SourceKit-LSP template mappings](../images/user-defined-ls/SourceKitLSPTemplateMappings.png)

5. **Click OK** to apply the changes. You should now have Swift language support enabled in your IDE.

![SourceKit-LSP in LSP Console](../images/user-defined-ls/SourceKitLSPInLSPConsole.png)

5. **Click OK** to apply the changes. You should now have Swift language support enabled in your IDE.

0 comments on commit a7d451d

Please sign in to comment.