Skip to content

False error #1538

@sylveon

Description

@sylveon

The following code produces an IntelliSense error in VSCode with all the C++ settings at their defaults:

#include <windows.h>
#include <tchar.h>

int main()
{
    TCHAR path[MAX_PATH];
    return _tcslen(path);
}

Yet, when built with MSVC/Visual Studio,no error is shown by IntelliSense

I'm running Windows 10 build 17093, VSCode 1.19.3, addon version 1.13.1.
Visual Studio is at version 15.5.5

(Looks like it's thinking that I'm trying to use std::experimental::filesystem::v1::path instead of the locally declared path array)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Language ServicebugfixedCheck the Milestone for the release in which the fix is or will be available.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions