From 6071a1ee3b6e25dc3e11e1e29c1eea05ebf1ac1e Mon Sep 17 00:00:00 2001 From: SteveLauC Date: Sat, 24 Feb 2024 13:45:53 +0800 Subject: [PATCH] chore: git ignore more (#715) --- .gitignore | 7 +++++ .vscode/launch.json | 38 -------------------------- .vscode/tasks.json | 14 ---------- .vscode/topgrade.code-snippets | 50 ---------------------------------- 4 files changed, 7 insertions(+), 102 deletions(-) delete mode 100644 .vscode/launch.json delete mode 100644 .vscode/tasks.json delete mode 100644 .vscode/topgrade.code-snippets diff --git a/.gitignore b/.gitignore index a0833927..92561f6c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,11 @@ +## Editor .vs/ +.vscode +.idea + +## Build /target /build + +## Generated by rustfmt **/*.rs.bk diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index c1bdffb4..00000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,38 +0,0 @@ -{ - // Use IntelliSense to learn about possible attributes. - // Hover to view descriptions of existing attributes. - // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 - "version": "0.2.0", - "configurations": [ - { - "type": "lldb", - "request": "launch", - "name": "Topgrade", - "console": "integratedTerminal", - "cargo": { - "args": [ - "build", - "--bin=topgrade-rs", - "--package=topgrade-rs" - ], - "filter": { - "name": "topgrade-rs", - "kind": "bin" - } - }, - "args": [ - "--only", - "${input:step}", - "-v" - ], - "cwd": "${workspaceFolder}" - }, - ], - "inputs": [ - { - "type": "promptString", - "id": "step", - "description": "step name", - } - ] -} diff --git a/.vscode/tasks.json b/.vscode/tasks.json deleted file mode 100644 index 1653d489..00000000 --- a/.vscode/tasks.json +++ /dev/null @@ -1,14 +0,0 @@ -{ - "version": "2.0.0", - "tasks": [ - { - "type": "cargo", - "command": "clippy", - "problemMatcher": [ - "$rustc" - ], - "group": "test", - "label": "rust: cargo clippy" - } - ] -} diff --git a/.vscode/topgrade.code-snippets b/.vscode/topgrade.code-snippets deleted file mode 100644 index c10c3d33..00000000 --- a/.vscode/topgrade.code-snippets +++ /dev/null @@ -1,50 +0,0 @@ -{ - // Place your topgrade workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and - // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope - // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is - // used to trigger the snippet and the body will be expanded and inserted. Possible variables are: - // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. - // Placeholders with the same ids are connected. - // Example: - // "Print to console": { - // "scope": "javascript,typescript", - // "prefix": "log", - // "body": [ - // "console.log('$1');", - // "$2" - // ], - // "description": "Log output to console" - // } - "Skip Step": { - "scope": "rust", - "prefix": "skipstep", - "body": [ - "return Err(SkipStep(format!(\"$1\")).into());" - ] - }, - "Step": { - "scope": "rust", - "prefix": "step", - "body": [ - "pub fn $1(ctx: &ExecutionContext) -> Result<()> {", - " $0", - " Ok(())", - "}" - ] - }, - "Require Binary": { - "scope": "rust", - "prefix": "req", - "description": "Require a binary to be installed", - "body": [ - "let ${1:binary} = require(\"${1:binary}\")?;" - ] - }, - "macos": { - "scope": "rust", - "prefix": "macos", - "body": [ - "#[cfg(target_os = \"macos\")]" - ] - } -}