Skip to content

Commit

Permalink
fix: clang format style
Browse files Browse the repository at this point in the history
  • Loading branch information
magic-akari committed Aug 26, 2023
1 parent 5d0b9b1 commit 8361195
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/format/clang-format.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@ export function formattingSubscription() {
const text = document.getText();

const IndentWidth = options.tabSize;
const TabWidth = options.tabSize;

const UseTab = options.insertSpaces ? "Never" : "ForIndentation";

const style = JSON.stringify({ BasedOnStyle: "Chromium", IndentWidth, UseTab });
const style = JSON.stringify({ BasedOnStyle: "Chromium", IndentWidth, TabWidth, UseTab });

const formatted = clang_format(text, assumeFilename, style);

Expand Down

0 comments on commit 8361195

Please sign in to comment.