From c8968ca421d472f0e82186a4fb5d8ececbda56de Mon Sep 17 00:00:00 2001 From: Yongmin Hong Date: Thu, 20 Jun 2024 16:01:04 +0900 Subject: [PATCH] vscode: settings (not the `.vscode/`) Summary: There's `settings sync` native stuff but for visual reference. Also update `.gitattributes` and `.arclint` to ignore jsonc. Signed-off-by: Yongmin Hong Test Plan: Verify this is the same settings as vscode user settings. Reviewers: O1 revi & automations, revi Reviewed By: O1 revi & automations, revi Differential Revision: https://issuetracker.revi.xyz/D381 --- .arclint | 3 ++- .gitattributes | 10 +++++---- vscode.json | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+), 5 deletions(-) create mode 100644 vscode.json diff --git a/.arclint b/.arclint index fb592d0..258e152 100644 --- a/.arclint +++ b/.arclint @@ -20,7 +20,8 @@ "(^.arcunit$)", "(\\.json$)", "(\\.sublime-settings$)" - ] + ], + "exclude": ["(^.vscode/\\.json$)", "(^vscode.json$)"] }, "merge-conflict": { "type": "merge-conflict" diff --git a/.gitattributes b/.gitattributes index a4359ba..1dd1d43 100644 --- a/.gitattributes +++ b/.gitattributes @@ -23,7 +23,9 @@ # GitHub Linguist detection # https://github.com/github-linguist/linguist/blob/master/docs/overrides.md -.arclint linguist-language=json -.gitaliases linguist-language=gitconfig -.yamllint linguist-language=yaml -default.git* linguist-language=gitconfig +.vscode/*.json linguist-language=jsonc +.arclint linguist-language=json +.gitaliases linguist-language=gitconfig +.yamllint linguist-language=yaml +default.git* linguist-language=gitconfig +vscode.json linguist-language=jsonc diff --git a/vscode.json b/vscode.json new file mode 100644 index 0000000..c50d809 --- /dev/null +++ b/vscode.json @@ -0,0 +1,60 @@ +{ + "[javascript]": { + "editor.defaultFormatter": "vscode.typescript-language-features" + }, + "[json]": { + "editor.defaultFormatter": "vscode.json-language-features" + }, + "[jsonc]": { + "editor.defaultFormatter": "vscode.json-language-features" + }, + "[markdown]": { + "editor.defaultFormatter": "DavidAnson.vscode-markdownlint" + }, + "diffEditor.ignoreTrimWhitespace": false, + "discord.idleTimeout": 600, + "editor.fontFamily": "'0xProto', 'IBM Plex Mono', 'D2Coding', Consolas, 'Courier New', monospace", + "editor.tabSize": 2, + "editor.wordBreak": "keepAll", + "files.associations": { + ".arc(config|lint|rc|unit)": "json", + "*.hujson": "jsonc", + ".imgbotconfig": "json", + ".yamllint": "yaml" + }, + "files.autoSave": "afterDelay", + "git.allowForcePush": true, + "git.alwaysSignOff": true, + "git.autofetch": true, + "gitlens.autolinks": [ + { + "prefix": "D", + "alphanumeric": true, + "ignoreCase": false, + "url": "https://issuetrakcer.revi.xyz/D" + }, + { + "prefix": "T", + "url": "https://issuetrakcer.revi.xyz/T", + "alphanumeric": true + } + ], + "gitlens.currentLine.format": "${author, }${agoOrDate}${ • message|52?}${ • changesShort}", + "gitlens.defaultDateFormat": "YYYY-MM-DDTHH:mm:ss (ZZ)", + "gitlens.defaultDateShortFormat": "YY/MM/DD", + "gitlens.defaultTimeFormat": "HH:mm", + "gitlens.statusBar.format": "${author}, ${agoOrDate} (${changesShort})", + "github.copilot.editor.enableAutoCompletions": true, + "github.copilot.chat.localeOverride": "en", + "graphite.commandPath": "gt", + "json.schemas": [], + "markdownlint.config": { + "MD025": false + }, + "merge-conflict.autoNavigateNextConflict.enabled": true, + "npm-intellisense.scanDevDependencies": true, + "security.workspace.trust.enabled": false, + "telemetry.telemetryLevel": "error", + "update.mode": "manual", + "workbench.colorTheme": "Solarized Light" +}