# [PATCH] contrib/vscode: respect configurable options of IntelliSense

4 messages from 2025-02-04 to 2025-03-17. Participants: Zejun Zhao, Patrick Steinhardt, Johannes Schindelin, Junio C Hamano.
Thread: https://gitlist.dev/t/62899

## Zejun Zhao, 2025-02-04 12:57

Subject: [PATCH] contrib/vscode: respect configurable options of IntelliSense
Message-ID: <20250204125721.11357-1-jelly.zhao.42@gmail.com>
URL: https://gitlist.dev/e/20250204125721.11357-1-jelly.zhao.42%40gmail.com

```
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


```

## Patrick Steinhardt, 2025-02-05 07:08

Subject: Re: [PATCH] contrib/vscode: respect configurable options of IntelliSense
Message-ID: <Z6MOdywCXc48qARV@pks.im>
URL: https://gitlist.dev/e/Z6MOdywCXc48qARV%40pks.im
In-Reply-To: <20250204125721.11357-1-jelly.zhao.42@gmail.com>

```
On Tue, Feb 04, 2025 at 12:57:21PM +0000, Zejun Zhao wrote:
> 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.

Formatting of the commit message is off, as we wrap lines at 72
characters. I cannot really say much about the patch itself. One thing
that might help reviewers who aren't familiar with VSCode would be a
link to for example release notes that announce the dremoval of the
option you're removing.

A bit off-topic: did you by any chance try out our Meson build system?
VSCode has a plugin for Meson that you can install, and then you can
import the Git project into VSCode directly without using
"contrib/vscode".

Patrick

```

## Johannes Schindelin, 2025-03-16 02:37

Subject: Re: [PATCH] contrib/vscode: respect configurable options of IntelliSense
Message-ID: <fdd8e2c6-9adc-4e53-d65c-ba75da0758f9@gmx.de>
URL: https://gitlist.dev/e/fdd8e2c6-9adc-4e53-d65c-ba75da0758f9%40gmx.de
In-Reply-To: <20250204125721.11357-1-jelly.zhao.42@gmail.com>

```
Hi Zejun,

On Tue, 4 Feb 2025, Zejun Zhao wrote:

> 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",

This looks good to me!

Thank you,
Johannes

>      "[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
>
>
>

```

## Junio C Hamano, 2025-03-17 22:17

Subject: Re: [PATCH] contrib/vscode: respect configurable options of IntelliSense
Message-ID: <xmqqy0x3715k.fsf@gitster.g>
URL: https://gitlist.dev/e/xmqqy0x3715k.fsf%40gitster.g
In-Reply-To: <fdd8e2c6-9adc-4e53-d65c-ba75da0758f9@gmx.de>

```
Johannes Schindelin <Johannes.Schindelin@gmx.de> writes:

> Hi Zejun,
>
> On Tue, 4 Feb 2025, Zejun Zhao wrote:
>
>> 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.

Overly long lines.  Please wrap lines in your proposed log message
at around 70 cols or so.

It explains why removing "fallback" is the right thing to do, but
it also wants to explain why we favor "default" over "Default" (and
if there is no good reason, that change should be reverted).

>> Signed-off-by: Zejun Zhao <jelly.zhao.42@gmail.com>
>> ---

Other than that, thanks for writing, and thanks for reviewing.

>>  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",
>
> This looks good to me!
>
> Thank you,
> Johannes

>
>>      "[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
>>
>>
>>

```
