OXYGENHUB
# 71d8bf9717d2 oxygen-vscode / package.json
3.8 KiB · JSON · last changed Activate on .oxy/format and on startup: a directory never matches workspaceContains, so 0.1.0 never activated 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",
71d8bf97 Andy McCall ↶ 5
  "version": "0.1.1",
bed495a9 Andy McCall ↶ 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": [
71d8bf97 Andy McCall ↶ 22
    "workspaceContains:.oxy/format",
23
    "workspaceContains:.oxy",
24
    "onStartupFinished"
bed495a9 Andy McCall ↶ 25
  ],
26
  "main": "./dist/extension.js",
27
  "contributes": {
28
    "commands": [
29
      { "command": "oxygen.refresh", "title": "Refresh", "category": "Oxygen", "icon": "$(refresh)" },
30
      { "command": "oxygen.commit", "title": "Commit", "category": "Oxygen", "icon": "$(check)" },
31
      { "command": "oxygen.openFile", "title": "Open File", "category": "Oxygen", "icon": "$(go-to-file)" },
32
      { "command": "oxygen.openChanges", "title": "Open Changes", "category": "Oxygen" },
33
      { "command": "oxygen.openBaseVersion", "title": "Open Base Version", "category": "Oxygen" },
34
      { "command": "oxygen.showOutput", "title": "Show Output", "category": "Oxygen" },
35
      { "command": "oxygen.showLog", "title": "Show Log", "category": "Oxygen" }
36
    ],
37
    "menus": {
38
      "scm/title": [
39
        { "command": "oxygen.commit", "group": "navigation@1", "when": "scmProvider == oxygen" },
40
        { "command": "oxygen.refresh", "group": "navigation@2", "when": "scmProvider == oxygen" },
41
        { "command": "oxygen.showLog", "group": "1_view", "when": "scmProvider == oxygen" },
42
        { "command": "oxygen.showOutput", "group": "1_view", "when": "scmProvider == oxygen" }
43
      ],
44
      "scm/resourceState/context": [
45
        { "command": "oxygen.openFile", "group": "inline", "when": "scmProvider == oxygen" },
46
        { "command": "oxygen.openChanges", "group": "navigation", "when": "scmProvider == oxygen" },
47
        { "command": "oxygen.openBaseVersion", "group": "navigation", "when": "scmProvider == oxygen" }
48
      ],
49
      "commandPalette": [
50
        { "command": "oxygen.openFile", "when": "false" },
51
        { "command": "oxygen.openChanges", "when": "false" },
52
        { "command": "oxygen.openBaseVersion", "when": "false" }
53
      ]
54
    },
55
    "configuration": {
56
      "title": "Oxygen",
57
      "properties": {
58
        "oxygen.path": {
59
          "type": "string",
60
          "default": "",
61
          "description": "Path to the oxy binary. Empty means oxy on PATH, then ~/.local/bin/oxy."
62
        },
63
        "oxygen.autoRefresh": {
64
          "type": "boolean",
65
          "default": true,
66
          "description": "Refresh the source control view when files in the workspace change."
67
        },
68
        "oxygen.decorations.enabled": {
69
          "type": "boolean",
70
          "default": true,
71
          "description": "Show status decorations in the explorer and on editor tabs."
72
        },
73
        "oxygen.statusBar.enabled": {
74
          "type": "boolean",
75
          "default": true,
76
          "description": "Show the bookmark, working copy and state in the status bar."
77
        }
78
      }
79
    }
80
  },
81
  "scripts": {
82
    "build": "esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/extension.js --sourcemap",
83
    "watch": "npm run build -- --watch",
84
    "typecheck": "tsc --noEmit -p .",
85
    "pretest": "esbuild src/oxy.ts --bundle --platform=node --format=esm --outfile=out/oxy.mjs",
86
    "test": "node --test \"test/**/*.test.mjs\"",
87
    "check": "npm run typecheck && npm run build && npm test",
88
    "package": "vsce package --no-dependencies"
89
  },
90
  "devDependencies": {
91
    "@types/node": "^24.0.0",
92
    "@types/vscode": "^1.137.0",
93
    "@vscode/vsce": "^4.0.0",
94
    "esbuild": "^0.28.0",
95
    "typescript": "^5.9.0"
96
  }
97
}