This is a helper package that automatically configures Apple's SourceKit language server for you.
To use this package, you must have:
$PATH
.This language server operates on views with base scopes:
source.c
(C files)source.c++
(C++ files)source.objc
(Objective-C files)source.objc++
(Objective-C++ files)source.swift
(Swift files)[!NOTE] The server is disabled globaly by default, you should either override its global setting to
"enabled": true,
or run in command paletteLSP: Enable language server in project
to enable it on per-project basis.
SourceKit will expect either a compile_commands.json
file at the root of your project, or a Package.swift
file if project built around the Swift Package Manager.
In case of compile_commands.json
, this file is usually generated by CMake with the command-line option -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
.
Configure SourceKit by running Preferences: LSP-SourceKit
from the command palette.