git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Zejun Zhao <jelly.zhao.42@gmail.com>
To: git@vger.kernel.org
Cc: johannes.schindelin@gmx.de, Zejun Zhao <jelly.zhao.42@gmail.com>
Subject: [PATCH] contrib/vscode: respect configurable options of IntelliSense
Date: Tue,  4 Feb 2025 12:57:21 +0000	[thread overview]
Message-ID: <20250204125721.11357-1-jelly.zhao.42@gmail.com> (raw)

The initialization script of VSCode development environment uses removed configurable options of IntelliSense, e.g. C_Cpp.intelliSenseEngineFallback and therefore triggers some warnings.

Fix this by strictly respecting the latest configuration manual of VSCode IntelliSense.

Signed-off-by: Zejun Zhao <jelly.zhao.42@gmail.com>
---
 contrib/vscode/init.sh | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/contrib/vscode/init.sh b/contrib/vscode/init.sh
index f2d61bb0e6..17f5b6161e 100755
--- a/contrib/vscode/init.sh
+++ b/contrib/vscode/init.sh
@@ -15,8 +15,7 @@ die "Could not create .vscode/"
 
 cat >.vscode/settings.json.new <<\EOF ||
 {
-    "C_Cpp.intelliSenseEngine": "Default",
-    "C_Cpp.intelliSenseEngineFallback": "Disabled",
+    "C_Cpp.intelliSenseEngine": "default",
     "[git-commit]": {
         "editor.wordWrap": "wordWrapColumn",
         "editor.wordWrapColumn": 72
@@ -203,8 +202,8 @@ cat >.vscode/settings.json.new <<\EOF ||
         "\\Wchar *\\*\\W*utfs\\W",
         "cURL's",
         "nedmalloc'ed",
-        "ntifs\\.h",
-    ],
+        "ntifs\\.h"
+    ]
 }
 EOF
 die "Could not write settings.json"

base-commit: f93ff170b93a1782659637824b25923245ac9dd1
-- 
2.43.0


             reply	other threads:[~2025-02-04 12:57 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-04 12:57 Zejun Zhao [this message]
2025-02-05  7:08 ` [PATCH] contrib/vscode: respect configurable options of IntelliSense Patrick Steinhardt
2025-03-16  2:37 ` Johannes Schindelin
2025-03-17 22:17   ` Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20250204125721.11357-1-jelly.zhao.42@gmail.com \
    --to=jelly.zhao.42@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=johannes.schindelin@gmx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).