{
  "name": "insta",
  "displayName": "insta snapshots",
  "description": "Syntax support for insta snapshots",
  "version": "1.0.6",
  "publisher": "mitsuhiko",
  "license": "Apache-2.0",
  "author": {
    "name": "mitsuhiko"
  },
  "engines": {
    "vscode": "^1.52.0"
  },
  "categories": [
    "Programming Languages"
  ],
  "repository": {
    "type": "git",
    "url": "https://github.com/mitsuhiko/insta.git"
  },
  "homepage": "https://github.com/mitsuhiko/insta",
  "icon": "images/icon.png",
  "activationEvents": [
    "workspaceContains:Cargo.toml",
    "onLanguage:rust",
    "onLanguage:insta-snapshots",
    "onView:pendingInstaSnapshots",
    "onCommand:mitsuhiko.insta.open-snapshot-diff",
    "onCommand:mitsuhiko.insta.accept-snapshot",
    "onCommand:mitsuhiko.insta.reject-snapshot",
    "onCommand:mitsuhiko.insta.switch-snapshot-view",
    "onCommand:mitsuhiko.insta.accept-all-snapshots",
    "onCommand:mitsuhiko.insta.reject-all-snapshots"
  ],
  "main": "./out/extension",
  "contributes": {
    "commands": [
      {
        "command": "mitsuhiko.insta.open-snapshot-diff",
        "title": "Compare Snapshots",
        "category": "Insta",
        "icon": "$(diff)"
      },
      {
        "command": "mitsuhiko.insta.accept-snapshot",
        "title": "Accept New Snapshot",
        "category": "Insta",
        "icon": "$(check)"
      },
      {
        "command": "mitsuhiko.insta.reject-snapshot",
        "title": "Reject New Snapshot",
        "category": "Insta",
        "icon": "$(discard)"
      },
      {
        "command": "mitsuhiko.insta.switch-snapshot-view",
        "title": "Switch Between Snapshots",
        "category": "Insta",
        "icon": "$(symbol-boolean)"
      },
      {
        "command": "mitsuhiko.insta.refresh-pending-snapshots",
        "title": "Refresh Pending Snapshots",
        "category": "Insta",
        "icon": "$(refresh)"
      },
      {
        "command": "mitsuhiko.insta.accept-all-snapshots",
        "title": "Accept All Snapshots",
        "category": "Insta",
        "icon": "$(check-all)"
      },
      {
        "command": "mitsuhiko.insta.reject-all-snapshots",
        "title": "Reject All Snapshots",
        "category": "Insta",
        "icon": "$(discard)"
      }
    ],
    "keybindings": [
      {
        "command": "mitsuhiko.insta.accept-snapshot",
        "when": "isInDiffEditor || editorIsOpen && resourceFilename =~ /\\.snap(\\.new)?$/",
        "key": "ctrl+i ctrl+a",
        "mac": "cmd+i cmd+a"
      },
      {
        "command": "mitsuhiko.insta.reject-snapshot",
        "when": "isInDiffEditor || editorIsOpen && resourceFilename =~ /\\.snap(\\.new)?$/",
        "key": "ctrl+i ctrl+r",
        "mac": "cmd+i cmd+r"
      },
      {
        "command": "mitsuhiko.insta.switch-snapshot-view",
        "when": "!isInDiffEditor && editorIsOpen && resourceFilename =~ /\\.snap(\\.new)?$/",
        "key": "ctrl+i ctrl+o",
        "mac": "cmd+i cmd+o"
      },
      {
        "command": "mitsuhiko.insta.open-snapshot-diff",
        "when": "!isInDiffEditor && editorIsOpen && resourceFilename =~ /\\.snap(\\.new)?$/",
        "key": "ctrl+i ctrl+d",
        "mac": "cmd+i cmd+d"
      }
    ],
    "menus": {
      "editor/title": [
        {
          "command": "mitsuhiko.insta.accept-snapshot",
          "group": "navigation@-1.4",
          "when": "isInDiffEditor || editorIsOpen && resourceFilename =~ /\\.snap(\\.new)?$/"
        },
        {
          "command": "mitsuhiko.insta.reject-snapshot",
          "group": "navigation@-1.3",
          "when": "isInDiffEditor || editorIsOpen && resourceFilename =~ /\\.snap(\\.new)?$/"
        },
        {
          "command": "mitsuhiko.insta.switch-snapshot-view",
          "group": "navigation@-1.2",
          "when": "!isInDiffEditor && editorIsOpen && resourceFilename =~ /\\.snap(\\.new)?$/"
        },
        {
          "command": "mitsuhiko.insta.open-snapshot-diff",
          "group": "navigation@-1.1",
          "when": "!isInDiffEditor && editorIsOpen && resourceFilename =~ /\\.snap(\\.new)?$/"
        }
      ],
      "explorer/context": [
        {
          "command": "mitsuhiko.insta.open-snapshot-diff",
          "group": "3_compare",
          "when": "resourceFilename =~ /\\.snap\\.new$/"
        }
      ],
      "view/title": [
        {
          "command": "mitsuhiko.insta.accept-all-snapshots",
          "when": "view == pendingInstaSnapshots",
          "group": "navigation"
        },
        {
          "command": "mitsuhiko.insta.reject-all-snapshots",
          "when": "view == pendingInstaSnapshots",
          "group": "navigation"
        },
        {
          "command": "mitsuhiko.insta.refresh-pending-snapshots",
          "when": "view == pendingInstaSnapshots",
          "group": "navigation"
        }
      ],
      "view/item/context": [
        {
          "command": "mitsuhiko.insta.open-snapshot-diff",
          "when": "view == pendingInstaSnapshots",
          "group": "inline"
        }
      ]
    },
    "views": {
      "explorer": [
        {
          "id": "pendingInstaSnapshots",
          "name": "Pending Insta Snapshots",
          "when": "inInstaSnapshotsProject",
          "contextualTitle": "Pending Insta Snapshots"
        }
      ]
    },
    "languages": [
      {
        "id": "insta-snapshots",
        "aliases": [
          "Insta Snapshots",
          "insta-snapshots"
        ],
        "extensions": [
          ".snap.new",
          ".snap"
        ],
        "configuration": "./language-configuration.json"
      }
    ],
    "grammars": [
      {
        "language": "insta-snapshots",
        "scopeName": "source.insta-snapshots",
        "path": "./syntaxes/insta-snapshots.tmLanguage.json"
      }
    ]
  },
  "devDependencies": {
    "@types/node": "^14.14.19",
    "typescript": "^4.1.3",
    "vscode": "^1.1.37"
  },
  "scripts": {
    "vscode:prepublish": "npm run compile",
    "compile": "tsc -p ./",
    "watch": "tsc -watch -p ./",
    "postinstall": "node ./node_modules/vscode/bin/install"
  }
}