Title: Improve UX if CustomConfigurationProvider is not ready yet · Issue #43 · microsoft/vscode-cpptools-api · GitHub
Open Graph Title: Improve UX if CustomConfigurationProvider is not ready yet · Issue #43 · microsoft/vscode-cpptools-api
X Title: Improve UX if CustomConfigurationProvider is not ready yet · Issue #43 · microsoft/vscode-cpptools-api
Description: Hi, Glad to discuss how could we improve PlatformIO's developer experience when using VSCode + "cpptools" extension. See scenarios below when is clear what to do for the end developer who faces the first time with VSCode/PlatformIO: Deve...
Open Graph Description: Hi, Glad to discuss how could we improve PlatformIO's developer experience when using VSCode + "cpptools" extension. See scenarios below when is clear what to do for the end developer who faces the...
X Description: Hi, Glad to discuss how could we improve PlatformIO's developer experience when using VSCode + "cpptools" extension. See scenarios below when is clear what to do for the end developer...
Opengraph URL: https://github.com/microsoft/vscode-cpptools-api/issues/43
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve UX if CustomConfigurationProvider is not ready yet","articleBody":"Hi,\r\n\r\nGlad to discuss how could we improve PlatformIO's developer experience when using VSCode + \"cpptools\" extension. See scenarios below when is clear what to do for the end developer who faces the first time with VSCode/PlatformIO:\r\n\r\n1. Developer installs [PlatformIO IDE for VSCode](https://marketplace.visualstudio.com/items?itemName=platformio.platformio-ide) which depends on the \"cpptools\"\r\n2. Developer opens PlatformIO project downloaded from Git/Internet. At this stage, project dependencies (toolchains, frameworks, libraries) are not installed/ready.\r\n3. PlatformIO resolves all dependencies automatically by pulling packages from the [PlatformIO Registry](https://registry.platformio.org/). It can take a few minutes depending on the project complexity.\r\n4. Developer tries to open any C/C++ files from the project **AND!!!** receives warnings about unresolved headers, broken syntax, etc. Of course, \"cpptools\" extension is right here because PlatformIO has not been provided configuration yet. It is still in progress, we download it...\r\n5. Developer STARTS filling `c_cpp_properties.json` because the \"cpptools\" extension forces him to do it. The developer does not understand what to do. No clue about toolchains, etc. Developer contacts PlatformIO forum or team and asks for help. Very often, developers even leave 1-star review as \"it does not work\".\r\n\r\nSo, how could we improve this API? The ideal scenario is to inform the \"cpptools\" that WE ARE ELIGIBLE to provide configuration but it can take us some time. See proposed workflow:\r\n\r\n1. PlatformIO extension starts and initiates `api = getCppToolsApi`\r\n2. At this moment, \"cpptools\" knows that there is someone responsible for the configuration and DOES NOT START its IntelliSense service waiting for the \"command\" when the provider is ready\r\n3. PlatformIO extension resolves all project dependencies, toolchains, and `api.notifyReady(provider)`.\r\n4. Starting from this moment \"cpptools\" can complain about unresolved includes and syntax errors. \r\n\r\nYour ideas?\r\n\r\nP.S: As a workaround, I see that we can make a face configuration provider and provider \"infinite sleep\" to the `provideConfigurations` and other methods. Nevertheless, it is not useful from a technical perspective.\r\n\r\n\r\n\r\n-----\r\n\r\nRelated issue: \r\n- https://github.com/platformio/platformio-vscode-ide/issues/3229\r\n- https://github.com/platformio/platformio-vscode-ide/issues/3232\r\n\r\n","author":{"url":"https://github.com/ivankravets","@type":"Person","name":"ivankravets"},"datePublished":"2022-07-01T11:19:12Z","url":"https://github.com/microsoft/vscode-cpptools-api/issues/43"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a132d4bf-21b0-3209-0b98-55388264b81d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AF82:1C6C3E:D48BAC:1195304:6B00F96B |
| html-safe-nonce | 451ef7d0e55218d9c7941259690cb78d8919776dc253aa0815686f5f89664bdb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRjgyOjFDNkMzRTpENDhCQUM6MTE5NTMwNDo2QjAwRjk2QiIsInZpc2l0b3JfaWQiOiIyNzQ0MDY5OTM1OTQ3OTA1Mzg4IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 87232d6200272d3361433fb156c84b6de037afc25fff40130b2a34fc1defc373 |
| hovercard-subject-tag | issue:1291277068 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/vscode-cpptools-api/43/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6c0a956c902784cd0ee9b74b47733d13abc01328a7fe2c67b92f4f564749e24d/microsoft/vscode-cpptools-api/issues/43 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6c0a956c902784cd0ee9b74b47733d13abc01328a7fe2c67b92f4f564749e24d/microsoft/vscode-cpptools-api/issues/43 |
| og:image:alt | Hi, Glad to discuss how could we improve PlatformIO's developer experience when using VSCode + "cpptools" extension. See scenarios below when is clear what to do for the end developer who faces the... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ivankravets |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/vscode-cpptools-api git https://github.com/microsoft/vscode-cpptools-api.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 133980178 |
| octolytics-dimension-repository_nwo | microsoft/vscode-cpptools-api |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 133980178 |
| octolytics-dimension-repository_network_root_nwo | microsoft/vscode-cpptools-api |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width