OXYGENHUB
# 810a1c538e78 oxygen-vscode / package.json
4.2 KiB · JSON · last changed Diagnostics: log from activation, report when no repository is found, Initialize Repository command and Source Control welcome 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",
810a1c53 Andy McCall ↶ 5
  "version": "0.1.2",
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" },
810a1c53 Andy McCall ↶ 35
      { "command": "oxygen.showLog", "title": "Show Log", "category": "Oxygen" },
36
      { "command": "oxygen.init", "title": "Initialize Repository", "category": "Oxygen" }
37
    ],
38
    "viewsWelcome": [
39
      {
40
        "view": "scm",
41
        "contents": "Oxygen is installed but found no oxy repository in the open folders.\n[Initialize Oxygen Repository](command:oxygen.init)\n[Show Oxygen Output](command:oxygen.showOutput)",
42
        "when": "workbenchState != empty && !oxygen.hasRepository"
43
      }
bed495a9 Andy McCall ↶ 44
    ],
45
    "menus": {
46
      "scm/title": [
47
        { "command": "oxygen.commit", "group": "navigation@1", "when": "scmProvider == oxygen" },
48
        { "command": "oxygen.refresh", "group": "navigation@2", "when": "scmProvider == oxygen" },
49
        { "command": "oxygen.showLog", "group": "1_view", "when": "scmProvider == oxygen" },
50
        { "command": "oxygen.showOutput", "group": "1_view", "when": "scmProvider == oxygen" }
51
      ],
52
      "scm/resourceState/context": [
53
        { "command": "oxygen.openFile", "group": "inline", "when": "scmProvider == oxygen" },
54
        { "command": "oxygen.openChanges", "group": "navigation", "when": "scmProvider == oxygen" },
55
        { "command": "oxygen.openBaseVersion", "group": "navigation", "when": "scmProvider == oxygen" }
56
      ],
57
      "commandPalette": [
58
        { "command": "oxygen.openFile", "when": "false" },
59
        { "command": "oxygen.openChanges", "when": "false" },
60
        { "command": "oxygen.openBaseVersion", "when": "false" }
61
      ]
62
    },
63
    "configuration": {
64
      "title": "Oxygen",
65
      "properties": {
66
        "oxygen.path": {
67
          "type": "string",
68
          "default": "",
69
          "description": "Path to the oxy binary. Empty means oxy on PATH, then ~/.local/bin/oxy."
70
        },
71
        "oxygen.autoRefresh": {
72
          "type": "boolean",
73
          "default": true,
74
          "description": "Refresh the source control view when files in the workspace change."
75
        },
76
        "oxygen.decorations.enabled": {
77
          "type": "boolean",
78
          "default": true,
79
          "description": "Show status decorations in the explorer and on editor tabs."
80
        },
81
        "oxygen.statusBar.enabled": {
82
          "type": "boolean",
83
          "default": true,
84
          "description": "Show the bookmark, working copy and state in the status bar."
85
        }
86
      }
87
    }
88
  },
89
  "scripts": {
90
    "build": "esbuild src/extension.ts --bundle --platform=node --format=cjs --external:vscode --outfile=dist/extension.js --sourcemap",
91
    "watch": "npm run build -- --watch",
92
    "typecheck": "tsc --noEmit -p .",
93
    "pretest": "esbuild src/oxy.ts --bundle --platform=node --format=esm --outfile=out/oxy.mjs",
94
    "test": "node --test \"test/**/*.test.mjs\"",
95
    "check": "npm run typecheck && npm run build && npm test",
96
    "package": "vsce package --no-dependencies"
97
  },
98
  "devDependencies": {
99
    "@types/node": "^24.0.0",
100
    "@types/vscode": "^1.137.0",
101
    "@vscode/vsce": "^4.0.0",
102
    "esbuild": "^0.28.0",
103
    "typescript": "^5.9.0"
104
  }
105
}