diff --git a/docs/static/schemas/config.json b/docs/static/schemas/config.json index 3d8f848bb..73f6ddc3f 100644 --- a/docs/static/schemas/config.json +++ b/docs/static/schemas/config.json @@ -2299,6 +2299,56 @@ } } }, + "analytics": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": ["posthog", "logstash"], + "description": "The 3rd party analytics provider to use.", + "default": "posthog", + "markdownEnumDescriptions": [ + "### Posthog\nTo use Posthog, set up an account, obtain your client key, and enter it in the client key field.", + "### Logstash\nContinue's Logstash integration uses the TCP input at the specified URL" + ] + }, + "url": { + "type": "string", + "description": "The URL to which analytics will be sent" + }, + "clientKey": { + "type": "string", + "description": "The client key to use for analytics" + } + }, + "required": ["provider"], + "allOf": [ + { + "if": { + "properties": { + "provider": { + "enum": ["posthog"] + } + } + }, + "then": { + "required": ["clientKey"] + } + }, + { + "if": { + "properties": { + "provider": { + "enum": ["logstash"] + } + } + }, + "then": { + "required": ["url"] + } + } + ] + }, "experimental": { "type": "object", "title": "Experimental", diff --git a/extensions/intellij/src/main/resources/config_schema.json b/extensions/intellij/src/main/resources/config_schema.json index ba281395e..73f6ddc3f 100644 --- a/extensions/intellij/src/main/resources/config_schema.json +++ b/extensions/intellij/src/main/resources/config_schema.json @@ -1982,7 +1982,7 @@ }, "embeddingsProvider": { "title": "Embeddings Provider", - "markdownDescription": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/walkthroughs/codebase-embeddings#embeddings-providers).", + "markdownDescription": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).", "type": "object", "properties": { "provider": { @@ -2220,7 +2220,7 @@ "tabAutocompleteOptions": { "title": "TabAutocompleteOptions", "type": "object", - "markdownDescription": "These options let you customize your tab-autocomplete experience. Read about all options in [the docs](https://docs.continue.dev/walkthroughs/tab-autocomplete#configuration-options).", + "markdownDescription": "These options let you customize your tab-autocomplete experience. Read about all options in [the docs](https://docs.continue.dev/features/tab-autocomplete#configuration-options).", "properties": { "disable": { "type": "boolean", @@ -2299,6 +2299,56 @@ } } }, + "analytics": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": ["posthog", "logstash"], + "description": "The 3rd party analytics provider to use.", + "default": "posthog", + "markdownEnumDescriptions": [ + "### Posthog\nTo use Posthog, set up an account, obtain your client key, and enter it in the client key field.", + "### Logstash\nContinue's Logstash integration uses the TCP input at the specified URL" + ] + }, + "url": { + "type": "string", + "description": "The URL to which analytics will be sent" + }, + "clientKey": { + "type": "string", + "description": "The client key to use for analytics" + } + }, + "required": ["provider"], + "allOf": [ + { + "if": { + "properties": { + "provider": { + "enum": ["posthog"] + } + } + }, + "then": { + "required": ["clientKey"] + } + }, + { + "if": { + "properties": { + "provider": { + "enum": ["logstash"] + } + } + }, + "then": { + "required": ["url"] + } + } + ] + }, "experimental": { "type": "object", "title": "Experimental", diff --git a/extensions/vscode/config_schema.json b/extensions/vscode/config_schema.json index 3d8f848bb..73f6ddc3f 100644 --- a/extensions/vscode/config_schema.json +++ b/extensions/vscode/config_schema.json @@ -2299,6 +2299,56 @@ } } }, + "analytics": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": ["posthog", "logstash"], + "description": "The 3rd party analytics provider to use.", + "default": "posthog", + "markdownEnumDescriptions": [ + "### Posthog\nTo use Posthog, set up an account, obtain your client key, and enter it in the client key field.", + "### Logstash\nContinue's Logstash integration uses the TCP input at the specified URL" + ] + }, + "url": { + "type": "string", + "description": "The URL to which analytics will be sent" + }, + "clientKey": { + "type": "string", + "description": "The client key to use for analytics" + } + }, + "required": ["provider"], + "allOf": [ + { + "if": { + "properties": { + "provider": { + "enum": ["posthog"] + } + } + }, + "then": { + "required": ["clientKey"] + } + }, + { + "if": { + "properties": { + "provider": { + "enum": ["logstash"] + } + } + }, + "then": { + "required": ["url"] + } + } + ] + }, "experimental": { "type": "object", "title": "Experimental", diff --git a/extensions/vscode/continue_rc_schema.json b/extensions/vscode/continue_rc_schema.json index df79fbfde..894ebd0fd 100644 --- a/extensions/vscode/continue_rc_schema.json +++ b/extensions/vscode/continue_rc_schema.json @@ -2207,7 +2207,7 @@ }, "embeddingsProvider": { "title": "Embeddings Provider", - "markdownDescription": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/walkthroughs/codebase-embeddings#embeddings-providers).", + "markdownDescription": "The method that will be used to generate codebase embeddings. The default is transformers.js, which will run locally in the browser. Learn about the other options [here](https://docs.continue.dev/features/codebase-embeddings#embeddings-providers).", "type": "object", "properties": { "provider": { @@ -2493,7 +2493,7 @@ "tabAutocompleteOptions": { "title": "TabAutocompleteOptions", "type": "object", - "markdownDescription": "These options let you customize your tab-autocomplete experience. Read about all options in [the docs](https://docs.continue.dev/walkthroughs/tab-autocomplete#configuration-options).", + "markdownDescription": "These options let you customize your tab-autocomplete experience. Read about all options in [the docs](https://docs.continue.dev/features/tab-autocomplete#configuration-options).", "properties": { "disable": { "type": "boolean", @@ -2579,6 +2579,69 @@ } } }, + "analytics": { + "type": "object", + "properties": { + "provider": { + "type": "string", + "enum": [ + "posthog", + "logstash" + ], + "description": "The 3rd party analytics provider to use.", + "default": "posthog", + "markdownEnumDescriptions": [ + "### Posthog\nTo use Posthog, set up an account, obtain your client key, and enter it in the client key field.", + "### Logstash\nContinue's Logstash integration uses the TCP input at the specified URL" + ] + }, + "url": { + "type": "string", + "description": "The URL to which analytics will be sent" + }, + "clientKey": { + "type": "string", + "description": "The client key to use for analytics" + } + }, + "required": [ + "provider" + ], + "allOf": [ + { + "if": { + "properties": { + "provider": { + "enum": [ + "posthog" + ] + } + } + }, + "then": { + "required": [ + "clientKey" + ] + } + }, + { + "if": { + "properties": { + "provider": { + "enum": [ + "logstash" + ] + } + } + }, + "then": { + "required": [ + "url" + ] + } + } + ] + }, "experimental": { "type": "object", "title": "Experimental", diff --git a/extensions/vscode/package-lock.json b/extensions/vscode/package-lock.json index ae3c57627..843270492 100644 --- a/extensions/vscode/package-lock.json +++ b/extensions/vscode/package-lock.json @@ -161,6 +161,7 @@ "@types/request": "^2.48.12", "@types/uuid": "^9.0.7", "@types/win-ca": "^3.5.4", + "cross-env": "^7.0.3", "esbuild": "0.17.19", "eslint": "^8", "eslint-plugin-import": "^2.29.1", diff --git a/extensions/vscode/package.json b/extensions/vscode/package.json index 776c037c8..b528e58c6 100644 --- a/extensions/vscode/package.json +++ b/extensions/vscode/package.json @@ -1,7 +1,7 @@ { "name": "continue", "icon": "media/icon.png", - "version": "0.9.192", + "version": "0.9.193", "repository": { "type": "git", "url": "https://github.com/continuedev/continue" diff --git a/gui/package-lock.json b/gui/package-lock.json index 866d55389..a88602bb9 100644 --- a/gui/package-lock.json +++ b/gui/package-lock.json @@ -154,6 +154,7 @@ "@types/request": "^2.48.12", "@types/uuid": "^9.0.7", "@types/win-ca": "^3.5.4", + "cross-env": "^7.0.3", "esbuild": "0.17.19", "eslint": "^8", "eslint-plugin-import": "^2.29.1",