Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Polishing the custom configuration provider experience#2188

Merged
bobbrow merged 28 commits into
mastermicrosoft/vscode-cpptools:masterfrom
bobbrow/customConfigUImicrosoft/vscode-cpptools:bobbrow/customConfigUICopy head branch name to clipboard
Jun 26, 2018
Merged

Polishing the custom configuration provider experience#2188
bobbrow merged 28 commits into
mastermicrosoft/vscode-cpptools:masterfrom
bobbrow/customConfigUImicrosoft/vscode-cpptools:bobbrow/customConfigUICopy head branch name to clipboard

Conversation

@bobbrow

@bobbrow bobbrow commented Jun 26, 2018

Copy link
Copy Markdown
Member

No description provided.

});

test("Check provider", async () => {
// Open a c++ file to start the language server.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think c++ should be C++.

standard: "c++17"
};

// has to be 'any' instead of api.CustomConfigurationProvider because dispose is missing on the old interface version

@sean-mcmanus sean-mcmanus Jun 26, 2018

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like it should be formatted as a sentence (like the other sentence comments), e.g. // Has … .

if (version !== Version.v0 && !provider.dispose) {
missing.push("'dispose'");
}
console.error(`CustomConfigurationProvider was not registered. The following properties are missing from the implementation: ${missing.join(", ")}`);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should there be a period at the end of the error message?

constructor(provider: CustomConfigurationProvider, version: Version) {
this.provider = provider;
if (provider.extensionId && version === Version.v0) {
version = Version.v1; // provider implemented the new API but is interfacing with the extension using the old API version.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Capital "Provider". Also, what's up with multiple spaces before //? Can we stick to 1 space? I haven't seen multiple spaces before // used anywhere else.

Comment thread Extension/src/LanguageServer/client.ts Outdated
public onRegisterCustomConfigurationProvider(provider: CustomConfigurationProvider1): Thenable<void> {
return this.notifyWhenReady(() => {
if (!this.RootPath) {
return; // There is no folder open, therefore there is no c_cpp_properties.json to edit.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bobbrow bobbrow merged commit d403c8f into master Jun 26, 2018
@bobbrow bobbrow deleted the bobbrow/customConfigUI branch June 26, 2018 20:10
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.