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

Enable environment variables with clang_format_path.#2380

Merged
sean-mcmanus merged 5 commits into
mastermicrosoft/vscode-cpptools:masterfrom
seanmcm/fixClangFormatEnvmicrosoft/vscode-cpptools:seanmcm/fixClangFormatEnvCopy head branch name to clipboard
Aug 15, 2018
Merged

Enable environment variables with clang_format_path.#2380
sean-mcmanus merged 5 commits into
mastermicrosoft/vscode-cpptools:masterfrom
seanmcm/fixClangFormatEnvmicrosoft/vscode-cpptools:seanmcm/fixClangFormatEnvCopy head branch name to clipboard

Conversation

@sean-mcmanus

@sean-mcmanus sean-mcmanus commented Aug 9, 2018

Copy link
Copy Markdown
Contributor

For #2344 .

Comment thread Extension/package.json Outdated
],
"default": null,
"description": "The full path of the clang-format executable.",
"description": "The full path of the clang-format executable. Changing this setting requires a Reload Window if it contains environment variables.",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

did it not work to intercept the didChangeConfigurations message in protocallFilter.ts?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I didn't investigate that. I can.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

It doesn't appear possible to "replace" a setting in that filter, but I can change it to ignore that particular setting change and send our own message with the correct setting.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, I think that would be better. Thanks!

}
if (changedSettings["clang_format_path"]) {
let settings: CppSettings = new CppSettings(this.RootUri);
this.languageClient.sendNotification(UpdateClangFormatPathNotification, util.resolveVariables(settings.clangFormatPath, null));

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can you just use changedSettings["clang_format_path"] without creating a new CppSettings object?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, the value is "...".

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

😆 ok

@sean-mcmanus sean-mcmanus merged commit 770013d into master Aug 15, 2018
@sean-mcmanus sean-mcmanus deleted the seanmcm/fixClangFormatEnv branch August 16, 2018 16:13
@github-actions github-actions Bot locked and limited conversation to collaborators Oct 14, 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.