pentest-distro-builder/filesystem/root/.vscode/extensions/ms-vscode.cpptools-0.18.1/node_modules/vscode-cpptools
2018-10-17 15:35:13 -06:00
..
out Parrot preseed changes 2018-10-17 15:35:13 -06:00
api.ts Parrot preseed changes 2018-10-17 15:35:13 -06:00
LICENSE Parrot preseed changes 2018-10-17 15:35:13 -06:00
package.json Parrot preseed changes 2018-10-17 15:35:13 -06:00
README.md Parrot preseed changes 2018-10-17 15:35:13 -06:00
testApi.ts Parrot preseed changes 2018-10-17 15:35:13 -06:00
tsconfig.json Parrot preseed changes 2018-10-17 15:35:13 -06:00

Public API for the ms-vscode.cpptools VS Code extension

The purpose of this API is to allow for build system extensions to provide IntelliSense configurations for consumers of Microsoft's C/C++ extension for VS Code.

When your extension activates, you can use the following code to get access to the API:

Version >= 1.2.0

    import {CppToolsApi, Version, CustomConfigurationProvider, getCppToolsApi} from 'vscode-cpptools';

    let cpptools: CppToolsApi|undefined = await getCppToolsApi(Version.v1);
    if (cpptools) {
        // dispose the 'api' in your extension's deactivate() method, or whenever you want to deregister the provider.
        cpptools.registerCustomConfigurationProvider(provider);
    }

Version 0.1.0

    let cpptools: vscode.Extension<CppToolsApi> = vscode.extensions.getExtension("ms-vscode.cpptools");
    let api: CppToolsApi;

    if (!cpptools.isActive) { 
        api = await cpptools.activate();
    } else {
        api = cpptools.exports;
    }

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.microsoft.com.

When you submit a pull request, a CLA-bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., label, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.