diff --git a/README.md b/README.md index 401705b..e2abe6b 100644 --- a/README.md +++ b/README.md @@ -26,17 +26,6 @@ Currently, the extension supports the following features: - Inlay hints for assignment targets - Completions -> **Note:** -> -> Completions is an experimental feature and requires explicit opt-in to be enabled via the -> following setting in your `settings.json`: -> -> ```json -> { -> "ty.experimental.completions.enable": true -> } -> ``` - > **Note:** > > If you want to test the language server features like completions, go to type definition, etc., it's diff --git a/package.json b/package.json index 17191ea..f3d94bb 100644 --- a/package.json +++ b/package.json @@ -79,12 +79,6 @@ "scope": "window", "type": "boolean" }, - "ty.experimental.completions.enable": { - "default": false, - "markdownDescription": "Whether to enable completions.", - "scope": "window", - "type": "boolean" - }, "ty.importStrategy": { "default": "fromEnvironment", "markdownDescription": "Strategy for loading the `ty` executable. `fromEnvironment` picks up ty from the environment, falling back to the bundled version if needed. `useBundled` uses the version bundled with the extension.", diff --git a/src/common/settings.ts b/src/common/settings.ts index e69dfeb..774c755 100644 --- a/src/common/settings.ts +++ b/src/common/settings.ts @@ -12,12 +12,6 @@ type ImportStrategy = "fromEnvironment" | "useBundled"; type LogLevel = "error" | "warn" | "info" | "debug" | "trace"; -type Experimental = { - completions?: { - enable?: boolean; - }; -}; - type PythonSettings = { ty?: { disableLanguageServices?: boolean; @@ -32,7 +26,6 @@ export interface ISettings { importStrategy: ImportStrategy; logLevel?: LogLevel; logFile?: string; - experimental?: Experimental; python?: PythonSettings; } @@ -126,7 +119,6 @@ export async function getWorkspaceSettings( importStrategy: config.get("importStrategy") ?? "fromEnvironment", logLevel: config.get("logLevel"), logFile: config.get("logFile"), - experimental: config.get("experimental"), python: getPythonSettings(workspace), }; } @@ -151,7 +143,6 @@ export async function getGlobalSettings(namespace: string): Promise { importStrategy: getGlobalValue(config, "importStrategy", "fromEnvironment"), logLevel: getOptionalGlobalValue(config, "logLevel"), logFile: getOptionalGlobalValue(config, "logFile"), - experimental: getOptionalGlobalValue(config, "experimental"), python: getPythonSettings(), }; }