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 <revi@omglol.email>

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
This commit is contained in:
revi 2024-06-20 16:01:04 +09:00
parent 2d59c7825c
commit c8968ca421
Signed by: revi
GPG key ID: 1EB4F6CEEA100E94
3 changed files with 68 additions and 5 deletions

View file

@ -20,7 +20,8 @@
"(^.arcunit$)", "(^.arcunit$)",
"(\\.json$)", "(\\.json$)",
"(\\.sublime-settings$)" "(\\.sublime-settings$)"
] ],
"exclude": ["(^.vscode/\\.json$)", "(^vscode.json$)"]
}, },
"merge-conflict": { "merge-conflict": {
"type": "merge-conflict" "type": "merge-conflict"

10
.gitattributes vendored
View file

@ -23,7 +23,9 @@
# GitHub Linguist detection # GitHub Linguist detection
# https://github.com/github-linguist/linguist/blob/master/docs/overrides.md # https://github.com/github-linguist/linguist/blob/master/docs/overrides.md
.arclint linguist-language=json .vscode/*.json linguist-language=jsonc
.gitaliases linguist-language=gitconfig .arclint linguist-language=json
.yamllint linguist-language=yaml .gitaliases linguist-language=gitconfig
default.git* linguist-language=gitconfig .yamllint linguist-language=yaml
default.git* linguist-language=gitconfig
vscode.json linguist-language=jsonc

60
vscode.json Normal file
View file

@ -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<num>"
},
{
"prefix": "T",
"url": "https://issuetrakcer.revi.xyz/T<num>",
"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"
}