Skip to content

Instantly share code, notes, and snippets.

@henryju
Created December 11, 2023 10:05
Show Gist options
  • Save henryju/93bac3b4d6b881d4a3860257282909e8 to your computer and use it in GitHub Desktop.
Save henryju/93bac3b4d6b881d4a3860257282909e8 to your computer and use it in GitHub Desktop.
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://sonarsource.com/sonarlint/initialize-params.schema.json",
"title": "Initialize Parameters",
"description": "Parameter of the initialize request",
"type": "object",
"properties": {
"clientConstantInfo": {
"description": "Static information to describe the client. Dynamic information will be provided when needed by calling `getClientLiveInfo`",
"type": "object",
"properties": {
"name": {
"description": "Name of the client, that could be used outside the IDE, e.g. for the sonarlint/api/status endpoint or when opening the page to generate the user token",
"type": "string"
},
"userAgent": {
"description": "User agent used for all HTTP requests made by the backend",
"type": "string"
}
},
"required": ["name", "userAgent"]
},
"featureFlags": {
"description": "Optional features toggles of the backend. To ease transition or to accommodate different client needs.",
"type": "object",
"properties": {
"shouldManageSmartNotifications": {
"type": "boolean"
},
"taintVulnerabilitiesEnabled": {
"type": "boolean",
"deprecated": true
},
"shouldSynchronizeProjects": {
"type": "boolean"
},
"shouldManageLocalServer": {
"type": "boolean"
},
"enableSecurityHotspots": {
"type": "boolean"
},
"shouldManageServerSentEvents": {
"type": "boolean"
},
"shouldManageFullSynchronization": {
"type": "boolean"
}
}
}
},
"required": ["clientConstantInfo"]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment