Skip to content

Conversation

Mr-Bossman
Copy link

No description provided.

Run formater on extension.ts

Signed-off-by: Jesse Taube <[email protected]>
Add the ability to use
${workspaceRoot}
${workspaceFolder}
${cwd}
${env.VAR}
in the .clang-format path

Signed-off-by: Jesse Taube <[email protected]>
Fix most of the variables should be const.
Remove unused variables.
Move many declarations to the top of the function.

Signed-off-by: Jesse Taube <[email protected]>
`vscode.workspace.getConfiguration('clang-format')` is called in
almost every function often multiple times. This commit adds
`const config = ...` at the top of each function to reduce repetition.

Signed-off-by: Jesse Taube <[email protected]>
If vscode has no workspace the extension will fail.
Check if the styles are valid before using them.

Signed-off-by: Jesse Taube <[email protected]>
Some users may want to pass additional arguments to clang-format. This
commit adds a setting to allow users to do so.

Signed-off-by: Jesse Taube <[email protected]>
@xavgru12
Copy link

Hey, can you tell me how to install this branch of the plugin inside vscode?

@Mr-Bossman
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants