From 80909f7698edd972e7bb7e3b255c9a12d78cd9a6 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 6 Mar 2020 18:38:56 +0100 Subject: [PATCH] Don't creat public APIs with typos --- crates/ra_ide/src/completion/presentation.rs | 2 +- crates/ra_ide_db/src/feature_flags.rs | 2 +- editors/code/package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crates/ra_ide/src/completion/presentation.rs b/crates/ra_ide/src/completion/presentation.rs index d6196a5ced..aada4d025d 100644 --- a/crates/ra_ide/src/completion/presentation.rs +++ b/crates/ra_ide/src/completion/presentation.rs @@ -225,7 +225,7 @@ impl Completions { let snippet = if ctx .db .feature_flags - .get("completion.insertion.add-argument-sippets") + .get("completion.insertion.add-argument-snippets") { let to_skip = if has_self_param { 1 } else { 0 }; let function_params_snippet = join( diff --git a/crates/ra_ide_db/src/feature_flags.rs b/crates/ra_ide_db/src/feature_flags.rs index 74a3a1cd99..9684150727 100644 --- a/crates/ra_ide_db/src/feature_flags.rs +++ b/crates/ra_ide_db/src/feature_flags.rs @@ -54,7 +54,7 @@ impl Default for FeatureFlags { FeatureFlags::new(&[ ("lsp.diagnostics", true), ("completion.insertion.add-call-parenthesis", true), - ("completion.insertion.add-argument-sippets", true), + ("completion.insertion.add-argument-snippets", true), ("completion.enable-postfix", true), ("call-info.full", true), ("notifications.workspace-loaded", true), diff --git a/editors/code/package.json b/editors/code/package.json index f1ed51d1bf..3a1e6cf231 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -197,7 +197,7 @@ "type": "boolean", "description": "Whether to add parenthesis when completing functions" }, - "completion.insertion.add-argument-sippets": { + "completion.insertion.add-argument-snippets": { "type": "boolean", "description": "Whether to add argument snippets when completing functions" },