Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
74 changes: 0 additions & 74 deletions Contributor Documentation/LSP Extensions.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,80 +81,6 @@ Added case
identifier = 'identifier'
```

## `WorkspaceFolder`

Added field:

```ts
/**
* Build settings that should be used for this workspace.
*
* For arguments that have a single value (like the build configuration), this takes precedence over the global
* options set when launching sourcekit-lsp. For all other options, the values specified in the workspace-specific
* build setup are appended to the global options.
*/
var buildSetup?: WorkspaceBuildSetup
```

with

```ts
/**
* The configuration to build a workspace in.
*/
export enum BuildConfiguration {
case debug = 'debug'
case release = 'release'
}

/**
* The type of workspace; default workspace type selection logic can be overridden.
*/
export enum WorkspaceType {
buildServer = 'buildServer'
compilationDatabase = 'compilationDatabase'
swiftPM = 'swiftPM'
}

/// Build settings that should be used for a workspace.
interface WorkspaceBuildSetup {
/**
* The configuration that the workspace should be built in.
*/
buildConfiguration?: BuildConfiguration;

/**
* The default workspace type to use for this workspace.
*/
defaultWorkspaceType?: WorkspaceType;

/**
* The build directory for the workspace.
*/
scratchPath?: DocumentURI;

/**
* Arguments to be passed to any C compiler invocations.
*/
cFlags?: string[];

/**
* Arguments to be passed to any C++ compiler invocations.
*/
cxxFlags?: string[];

/**
* Arguments to be passed to any linker invocations.
*/
linkerFlags?: string[];

/**
* Arguments to be passed to any Swift compiler invocations.
*/
swiftFlags?: string[];
}
```

## `textDocument/completion`

Added field:
Expand Down