OXYGENHUB
# 9020cf612749 oxygen-vscode / package.json
3.7 KiB · JSON · last changed Milestone 0.1: source control view, diffs over the oxy: scheme, quick diff, decorations, status bar, commit, quick-pick log; process wrapper with a Node test; packaging 1 month ago source blame history raw
bed495a9 Andy McCall ↶ 1
{
2
  "name": "oxygen-vscode",
3
  "displayName": "Oxygen",
4
  "description": "Oxygen version control: source control view, diffs, decorations, bookmarks and history for oxy repositories",
5
  "version": "0.1.0",
6
  "publisher": "oxygen",
7
  "license": "MIT OR Apache-2.0",
8
  "icon": "assets/images/oxygen.png",
9
  "engines": {
10
    "vscode": "^1.137.0"
11
  },
12
  "categories": [
13
    "SCM Providers"
14
  ],
15
  "keywords": [
16
    "oxygen",
17
    "oxy",
18
    "scm",
19
    "version control"
20
  ],
21
  "activationEvents": [
22
    "workspaceContains:.oxy"
23
  ],
24
  "main": "./dist/extension.js",
25
  "contributes": {
26
    "commands": [
27
      { "command": "oxygen.refresh", "title": "Refresh", "category": "Oxygen", "icon": "$(refresh)" },
28
      { "command": "oxygen.commit", "title": "Commit", "category": "Oxygen", "icon": "$(check)" },
29
      { "command": "oxygen.openFile", "title": "Open File", "category": "Oxygen", "icon": "$(go-to-file)" },
30
      { "command": "oxygen.openChanges", "title": "Open Changes", "category": "Oxygen" },
31
      { "command": "oxygen.openBaseVersion", "title": "Open Base Version", "category": "Oxygen" },
32
      { "command": "oxygen.showOutput", "title": "Show Output", "category": "Oxygen" },
33
      { "command": "oxygen.showLog", "title": "Show Log", "category": "Oxygen" }
34
    ],
35
    "menus": {
36
      "scm/title": [
37
        { "command": "oxygen.commit", "group": "navigation@1", "when": "scmProvider == oxygen" },
38
        { "command": "oxygen.refresh", "group": "navigation@2", "when": "scmProvider == oxygen" },
39
        { "command": "oxygen.showLog", "group": "1_view", "when": "scmProvider == oxygen" },
40
        { "command": "oxygen.showOutput", "group": "1_view", "when": "scmProvider == oxygen" }
41
      ],
42
      "scm/resourceState/context": [
43
        { "command": "oxygen.openFile", "group": "inline", "when": "scmProvider == oxygen" },
44
        { "command": "oxygen.openChanges", "group": "navigation", "when": "scmProvider == oxygen" },
45
        { "command": "oxygen.openBaseVersion", "group": "navigation", "when": "scmProvider == oxygen" }
46
      ],
47
      "commandPalette": [
48
        { "command": "oxygen.openFile", "when": "false" },
49
        { "command": "oxygen.openChanges", "when": "false" },
50
        { "command": "oxygen.openBaseVersion", "when": "false" }
51
      ]
52
    },
53
    "configuration": {
54
      "title": "Oxygen",
55
      "properties": {
56
        "oxygen.path": {
57
          "type": "string",
58
          "default": "",
59
          "description": "Path to the oxy binary. Empty means oxy on PATH, then ~/.local/bin/oxy."
60
        },
61
        "oxygen.autoRefresh": {
62
          "type": "boolean",
63
          "default": true,
64
          "description": "Refresh the source control view when files in the workspace change."
65
        },
66
        "oxygen.decorations.enabled": {
67
          "type": "boolean",
68
          "default": true,
69
          "description": "Show status decorations in the explorer and on editor tabs."
70
        },
71
        "oxygen.statusBar.enabled": {
72
          "type": "boolean",
73
          "default": true,
74
          "description": "Show the bookmark, working copy and state in the status bar."
75
        }
76
      }
77
    }
78
  },
79
  "scripts": {
80
    "build": "esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/extension.js --sourcemap",
81
    "watch": "npm run build -- --watch",
82
    "typecheck": "tsc --noEmit -p .",
83
    "pretest": "esbuild src/oxy.ts --bundle --platform=node --format=esm --outfile=out/oxy.mjs",
84
    "test": "node --test \"test/**/*.test.mjs\"",
85
    "check": "npm run typecheck && npm run build && npm test",
86
    "package": "vsce package --no-dependencies"
87
  },
88
  "devDependencies": {
89
    "@types/node": "^24.0.0",
90
    "@types/vscode": "^1.137.0",
91
    "@vscode/vsce": "^4.0.0",
92
    "esbuild": "^0.28.0",
93
    "typescript": "^5.9.0"
94
  }
95
}