| b69ab31 | | | 1 | { |
| b69ab31 | | | 2 | "name": "grove-scm", |
| d8281c0 | | | 3 | "displayName": "Grove SCM", |
| b69ab31 | | | 4 | "description": "Grove: Source Control powered by Sapling", |
| b69ab31 | | | 5 | "version": "0.1.0", |
| d8281c0 | | | 6 | "publisher": "LetterpressLabs", |
| b69ab31 | | | 7 | "license": "MIT", |
| b69ab31 | | | 8 | "engines": { |
| b69ab31 | | | 9 | "vscode": "^1.63.0" |
| b69ab31 | | | 10 | }, |
| b69ab31 | | | 11 | "categories": [ |
| b69ab31 | | | 12 | "SCM Providers" |
| b69ab31 | | | 13 | ], |
| b69ab31 | | | 14 | "activationEvents": [ |
| b69ab31 | | | 15 | "onStartupFinished", |
| b69ab31 | | | 16 | "onCommand:sapling.open-isl", |
| b69ab31 | | | 17 | "onWebviewPanel:sapling.isl", |
| b69ab31 | | | 18 | "onView:sapling.isl" |
| b69ab31 | | | 19 | ], |
| b69ab31 | | | 20 | "extensionKind": [ |
| b69ab31 | | | 21 | "workspace" |
| b69ab31 | | | 22 | ], |
| b69ab31 | | | 23 | "galleryBanner": { |
| b69ab31 | | | 24 | "color": "#2e8555", |
| b69ab31 | | | 25 | "theme": "dark" |
| b69ab31 | | | 26 | }, |
| b69ab31 | | | 27 | "main": "./dist/extension.js", |
| b69ab31 | | | 28 | "icon": "resources/extensionIcon.png", |
| b69ab31 | | | 29 | "homepage": "https://grove.host/", |
| b69ab31 | | | 30 | "bugs": { |
| b69ab31 | | | 31 | "url": "https://grove.host/" |
| b69ab31 | | | 32 | }, |
| b69ab31 | | | 33 | "repository": { |
| b69ab31 | | | 34 | "type": "git", |
| b69ab31 | | | 35 | "url": "https://grove.host/" |
| b69ab31 | | | 36 | }, |
| b69ab31 | | | 37 | "contributes": { |
| 1d6bd07 | | | 38 | "configurationDefaults": { |
| 1d6bd07 | | | 39 | "files.exclude": { |
| 1d6bd07 | | | 40 | "**/.sl": true |
| 1d6bd07 | | | 41 | } |
| 1d6bd07 | | | 42 | }, |
| b69ab31 | | | 43 | "configuration": { |
| c3ed59a | | | 44 | "title": "Grove", |
| b69ab31 | | | 45 | "properties": { |
| b69ab31 | | | 46 | "sapling.commandPath": { |
| b69ab31 | | | 47 | "type": "string", |
| b69ab31 | | | 48 | "default": "", |
| b69ab31 | | | 49 | "description": "%settings.commandPath.description%" |
| b69ab31 | | | 50 | }, |
| b69ab31 | | | 51 | "sapling.showInlineBlame": { |
| b69ab31 | | | 52 | "type": "boolean", |
| b69ab31 | | | 53 | "description": "%settings.showInlineBlame.description%", |
| b69ab31 | | | 54 | "default": true |
| b69ab31 | | | 55 | }, |
| b69ab31 | | | 56 | "sapling.showDiffComments": { |
| b69ab31 | | | 57 | "type": "boolean", |
| b69ab31 | | | 58 | "description": "%settings.showDiffComments.description%", |
| b69ab31 | | | 59 | "default": true |
| b69ab31 | | | 60 | }, |
| b69ab31 | | | 61 | "sapling.inlineCommentDiffViewMode": { |
| b69ab31 | | | 62 | "type": "string", |
| b69ab31 | | | 63 | "enum": [ |
| b69ab31 | | | 64 | "Unified", |
| b69ab31 | | | 65 | "Split" |
| b69ab31 | | | 66 | ], |
| b69ab31 | | | 67 | "description": "%settings.diffViewMode.description%", |
| b69ab31 | | | 68 | "default": "Unified" |
| b69ab31 | | | 69 | }, |
| b69ab31 | | | 70 | "sapling.markConflictingFilesResolvedOnSave": { |
| b69ab31 | | | 71 | "type": "boolean", |
| b69ab31 | | | 72 | "description": "%settings.markConflictingFilesResolvedOnSave.description%", |
| b69ab31 | | | 73 | "default": true |
| b69ab31 | | | 74 | }, |
| b69ab31 | | | 75 | "sapling.comparisonPanelMode": { |
| b69ab31 | | | 76 | "type": "string", |
| b69ab31 | | | 77 | "enum": [ |
| b69ab31 | | | 78 | "Auto", |
| b69ab31 | | | 79 | "Always Separate Panel" |
| b69ab31 | | | 80 | ], |
| b69ab31 | | | 81 | "enumDescriptions": [ |
| b69ab31 | | | 82 | "%settings.comparisonPanelMode.enumDescriptions.auto%", |
| b69ab31 | | | 83 | "%settings.comparisonPanelMode.enumDescriptions.always-separate-panel%" |
| b69ab31 | | | 84 | ], |
| b69ab31 | | | 85 | "description": "%settings.comparisonPanelMode.description%", |
| b69ab31 | | | 86 | "default": "Auto" |
| b69ab31 | | | 87 | }, |
| b69ab31 | | | 88 | "sapling.isl.openBeside": { |
| b69ab31 | | | 89 | "type": "boolean", |
| b69ab31 | | | 90 | "default": false, |
| b69ab31 | | | 91 | "description": "%settings.isl.openBeside.description%" |
| b69ab31 | | | 92 | }, |
| b69ab31 | | | 93 | "sapling.isl.showInSidebar": { |
| b69ab31 | | | 94 | "type": "boolean", |
| b69ab31 | | | 95 | "default": false, |
| b69ab31 | | | 96 | "description": "%settings.isl.showInSidebar.description%" |
| b69ab31 | | | 97 | } |
| b69ab31 | | | 98 | } |
| b69ab31 | | | 99 | }, |
| c3ed59a | | | 100 | "icons": { |
| c3ed59a | | | 101 | "grove-icon": { |
| c3ed59a | | | 102 | "description": "Grove icon", |
| c3ed59a | | | 103 | "default": { |
| c3ed59a | | | 104 | "fontPath": "resources/grove-icons.woff", |
| c3ed59a | | | 105 | "fontCharacter": "\\F101" |
| b69ab31 | | | 106 | } |
| c3ed59a | | | 107 | } |
| b69ab31 | | | 108 | }, |
| b69ab31 | | | 109 | "views": { |
| b69ab31 | | | 110 | "scm": [ |
| b69ab31 | | | 111 | { |
| b69ab31 | | | 112 | "type": "webview", |
| b69ab31 | | | 113 | "id": "sapling.comments", |
| b69ab31 | | | 114 | "name": "Code Review Comments", |
| b69ab31 | | | 115 | "when": "isl.inlineCommentSidePanelEnabled" |
| b69ab31 | | | 116 | } |
| b69ab31 | | | 117 | ] |
| b69ab31 | | | 118 | }, |
| b69ab31 | | | 119 | "commands": [ |
| b69ab31 | | | 120 | { |
| b69ab31 | | | 121 | "command": "sapling.revert-file", |
| b69ab31 | | | 122 | "title": "%sapling.revert-file-command%", |
| b69ab31 | | | 123 | "category": "%sapling.command-category%", |
| b69ab31 | | | 124 | "icon": "$(discard)" |
| b69ab31 | | | 125 | }, |
| b69ab31 | | | 126 | { |
| b69ab31 | | | 127 | "command": "sapling.open-isl", |
| b69ab31 | | | 128 | "title": "%sapling.open-isl-command%", |
| b69ab31 | | | 129 | "category": "%sapling.command-category%", |
| b69ab31 | | | 130 | "icon": "resources/Sapling_favicon-light-green-transparent.svg" |
| b69ab31 | | | 131 | }, |
| c3ed59a | | | 132 | { |
| c3ed59a | | | 133 | "command": "sapling.open-isl-tab", |
| c3ed59a | | | 134 | "title": "Open Interactive Smartlog in Tab", |
| c3ed59a | | | 135 | "category": "%sapling.command-category%", |
| c3ed59a | | | 136 | "icon": "$(link-external)" |
| c3ed59a | | | 137 | }, |
| b69ab31 | | | 138 | { |
| b69ab31 | | | 139 | "command": "sapling.open-file-diff-uncommitted", |
| b69ab31 | | | 140 | "title": "%sapling.open-diff-uncommitted-command%", |
| b69ab31 | | | 141 | "category": "%sapling.command-category%", |
| b69ab31 | | | 142 | "icon": "$(git-pull-request-go-to-changes)" |
| b69ab31 | | | 143 | }, |
| b69ab31 | | | 144 | { |
| b69ab31 | | | 145 | "command": "sapling.open-file-diff-head", |
| b69ab31 | | | 146 | "title": "%sapling.open-diff-head-command%", |
| b69ab31 | | | 147 | "category": "%sapling.command-category%" |
| b69ab31 | | | 148 | }, |
| b69ab31 | | | 149 | { |
| b69ab31 | | | 150 | "command": "sapling.open-file-diff-stack", |
| b69ab31 | | | 151 | "title": "%sapling.open-diff-stack-command%", |
| b69ab31 | | | 152 | "category": "%sapling.command-category%" |
| b69ab31 | | | 153 | }, |
| b69ab31 | | | 154 | { |
| b69ab31 | | | 155 | "command": "sapling.open-comparison-view-uncommitted", |
| b69ab31 | | | 156 | "title": "%sapling.open-comparison-view-uncommitted-command%", |
| b69ab31 | | | 157 | "category": "%sapling.command-category%" |
| b69ab31 | | | 158 | }, |
| b69ab31 | | | 159 | { |
| b69ab31 | | | 160 | "command": "sapling.open-comparison-view-head", |
| b69ab31 | | | 161 | "title": "%sapling.open-comparison-view-head-command%", |
| b69ab31 | | | 162 | "category": "%sapling.command-category%" |
| b69ab31 | | | 163 | }, |
| b69ab31 | | | 164 | { |
| b69ab31 | | | 165 | "command": "sapling.open-comparison-view-stack", |
| b69ab31 | | | 166 | "title": "%sapling.open-comparison-view-stack-command%", |
| b69ab31 | | | 167 | "category": "%sapling.command-category%" |
| b69ab31 | | | 168 | }, |
| b69ab31 | | | 169 | { |
| b69ab31 | | | 170 | "command": "sapling.open-comparison-view", |
| b69ab31 | | | 171 | "title": "%sapling.open-comparison-view-command%", |
| b69ab31 | | | 172 | "when": false |
| b69ab31 | | | 173 | }, |
| b69ab31 | | | 174 | { |
| b69ab31 | | | 175 | "command": "sapling.isl.focus", |
| b69ab31 | | | 176 | "title": "Focus Sapling ISL Sidebar" |
| b69ab31 | | | 177 | }, |
| b69ab31 | | | 178 | { |
| b69ab31 | | | 179 | "command": "sapling.open-remote-file-link", |
| b69ab31 | | | 180 | "title": "Open in Code Review", |
| b69ab31 | | | 181 | "enablement": "sapling:hasRemoteLinkRepo" |
| b69ab31 | | | 182 | }, |
| b69ab31 | | | 183 | { |
| b69ab31 | | | 184 | "command": "sapling.copy-remote-file-link", |
| b69ab31 | | | 185 | "title": "Copy Code Review Link", |
| b69ab31 | | | 186 | "enablement": "sapling:hasRemoteLinkRepo" |
| b69ab31 | | | 187 | }, |
| b69ab31 | | | 188 | { |
| b69ab31 | | | 189 | "command": "sapling.open-comments", |
| b69ab31 | | | 190 | "title": "%sapling.open-comments-command%", |
| b69ab31 | | | 191 | "enablement": "isl.inlineCommentSidePanelEnabled" |
| b69ab31 | | | 192 | }, |
| b69ab31 | | | 193 | { |
| b69ab31 | | | 194 | "command": "sapling.toggle-inline-comments", |
| b69ab31 | | | 195 | "title": "%sapling.toggle-inline-comments-command%", |
| b69ab31 | | | 196 | "enablement": "isl.inlineCommentSidePanelEnabled" |
| b69ab31 | | | 197 | }, |
| b69ab31 | | | 198 | { |
| b69ab31 | | | 199 | "command": "sapling.debug.interpret-file-as-comments", |
| b69ab31 | | | 200 | "title": "Debug: Load file as inline comments JSON", |
| b69ab31 | | | 201 | "enablement": "sapling.isDev" |
| 1d6bd07 | | | 202 | }, |
| 1d6bd07 | | | 203 | { |
| 1d6bd07 | | | 204 | "command": "grove.init", |
| 1d6bd07 | | | 205 | "title": "Initialize Grove Repository", |
| 1d6bd07 | | | 206 | "category": "Grove" |
| b69ab31 | | | 207 | } |
| b69ab31 | | | 208 | ], |
| b69ab31 | | | 209 | "keybindings": [ |
| b69ab31 | | | 210 | { |
| b69ab31 | | | 211 | "command": "sapling.open-comparison-view-uncommitted", |
| b69ab31 | | | 212 | "key": "ctrl-'", |
| b69ab31 | | | 213 | "mac": "cmd-'", |
| b69ab31 | | | 214 | "when": "activeWebviewPanelId != 'sapling.isl'" |
| b69ab31 | | | 215 | }, |
| b69ab31 | | | 216 | { |
| b69ab31 | | | 217 | "command": "sapling.open-comparison-view-head", |
| b69ab31 | | | 218 | "key": "ctrl-shift-'", |
| b69ab31 | | | 219 | "mac": "cmd-shift-'", |
| b69ab31 | | | 220 | "when": "activeWebviewPanelId != 'sapling.isl'" |
| b69ab31 | | | 221 | }, |
| b69ab31 | | | 222 | { |
| b69ab31 | | | 223 | "command": "sapling.open-comments", |
| b69ab31 | | | 224 | "key": "alt-shift-g", |
| b69ab31 | | | 225 | "mac": "alt-shift-g", |
| b69ab31 | | | 226 | "when": "isl.inlineCommentSidePanelEnabled && activeWebviewPanelId != 'sapling.comments'" |
| b69ab31 | | | 227 | }, |
| b69ab31 | | | 228 | { |
| b69ab31 | | | 229 | "command": "sapling.toggle-inline-comments", |
| b69ab31 | | | 230 | "key": "alt-shift-t", |
| b69ab31 | | | 231 | "mac": "alt-shift-t", |
| b69ab31 | | | 232 | "when": "isl.inlineCommentSidePanelEnabled" |
| b69ab31 | | | 233 | } |
| b69ab31 | | | 234 | ], |
| b69ab31 | | | 235 | "menus": { |
| b69ab31 | | | 236 | "editor/context": [ |
| b69ab31 | | | 237 | { |
| b69ab31 | | | 238 | "command": "sapling.open-remote-file-link", |
| b69ab31 | | | 239 | "when": "sapling:hasRemoteLinkRepo" |
| b69ab31 | | | 240 | }, |
| b69ab31 | | | 241 | { |
| b69ab31 | | | 242 | "command": "sapling.copy-remote-file-link", |
| b69ab31 | | | 243 | "when": "sapling:hasRemoteLinkRepo" |
| b69ab31 | | | 244 | } |
| b69ab31 | | | 245 | ], |
| b69ab31 | | | 246 | "explorer/context": [ |
| b69ab31 | | | 247 | { |
| b69ab31 | | | 248 | "command": "sapling.open-remote-file-link", |
| b69ab31 | | | 249 | "when": "sapling:hasRemoteLinkRepo && isFileSystemResource && resourceScheme =~ /^(?!output$|vscode-(?!remote|vfs$)).*$/" |
| b69ab31 | | | 250 | }, |
| b69ab31 | | | 251 | { |
| b69ab31 | | | 252 | "command": "sapling.copy-remote-file-link", |
| b69ab31 | | | 253 | "when": "sapling:hasRemoteLinkRepo && isFileSystemResource && resourceScheme =~ /^(?!output$|vscode-(?!remote|vfs$)).*$/" |
| b69ab31 | | | 254 | } |
| b69ab31 | | | 255 | ], |
| b69ab31 | | | 256 | "commandPalette": [ |
| b69ab31 | | | 257 | { |
| b69ab31 | | | 258 | "command": "sapling.isl.focus", |
| b69ab31 | | | 259 | "when": "config.sapling.isl.showInSidebar" |
| b69ab31 | | | 260 | } |
| b69ab31 | | | 261 | ], |
| b69ab31 | | | 262 | "scm/resourceState/context": [ |
| b69ab31 | | | 263 | { |
| b69ab31 | | | 264 | "command": "sapling.open-file-diff-uncommitted", |
| b69ab31 | | | 265 | "group": "inline", |
| b69ab31 | | | 266 | "when": "scmProvider == sapling && scmResourceGroup == changes" |
| b69ab31 | | | 267 | }, |
| b69ab31 | | | 268 | { |
| b69ab31 | | | 269 | "command": "sapling.revert-file", |
| b69ab31 | | | 270 | "group": "inline", |
| b69ab31 | | | 271 | "when": "scmProvider == sapling && scmResourceGroup == changes" |
| b69ab31 | | | 272 | } |
| b69ab31 | | | 273 | ], |
| b69ab31 | | | 274 | "scm/title": [ |
| b69ab31 | | | 275 | { |
| b69ab31 | | | 276 | "command": "sapling.open-isl", |
| b69ab31 | | | 277 | "group": "navigation", |
| b69ab31 | | | 278 | "when": "scmProvider == sapling" |
| b69ab31 | | | 279 | } |
| b69ab31 | | | 280 | ] |
| 1d6bd07 | | | 281 | }, |
| 1d6bd07 | | | 282 | "viewsWelcome": [ |
| 1d6bd07 | | | 283 | { |
| 1d6bd07 | | | 284 | "view": "workbench.explorer.emptyView", |
| 1d6bd07 | | | 285 | "contents": "You can initialize a Grove repository in the current folder.\n[Initialize Grove Repository](command:grove.init)" |
| 1d6bd07 | | | 286 | }, |
| 1d6bd07 | | | 287 | { |
| 1d6bd07 | | | 288 | "view": "scm", |
| 1d6bd07 | | | 289 | "contents": "No Grove repository found.\n[Initialize Grove Repository](command:grove.init)\n[Open Folder](command:vscode.openFolder)", |
| 1d6bd07 | | | 290 | "when": "!scmProvider" |
| 1d6bd07 | | | 291 | } |
| 1d6bd07 | | | 292 | ] |
| b69ab31 | | | 293 | }, |
| b69ab31 | | | 294 | "scripts": { |
| b69ab31 | | | 295 | "eslint": "eslint extension webview --ext .ts --ext .tsx", |
| b69ab31 | | | 296 | "test": "jest", |
| b69ab31 | | | 297 | "watch-extension": "rollup --config rollup.extension.config.mjs --watch", |
| b69ab31 | | | 298 | "watch-webview": "vite", |
| b69ab31 | | | 299 | "build-extension": "rollup --config rollup.extension.config.mjs --environment NODE_ENV:production", |
| b69ab31 | | | 300 | "build-webview": "vite build", |
| b69ab31 | | | 301 | "vscode:prepublish": "node ./buildForPublish.js" |
| b69ab31 | | | 302 | }, |
| b69ab31 | | | 303 | "optionalDependencies": { |
| b69ab31 | | | 304 | "vsce": "^2.15.0" |
| b69ab31 | | | 305 | }, |
| b69ab31 | | | 306 | "devDependencies": { |
| b69ab31 | | | 307 | "@rollup/plugin-alias": "^5.1.1", |
| b69ab31 | | | 308 | "@rollup/plugin-commonjs": "^25.0.8", |
| b69ab31 | | | 309 | "@rollup/plugin-json": "^6.1.0", |
| b69ab31 | | | 310 | "@rollup/plugin-node-resolve": "^15.3.1", |
| b69ab31 | | | 311 | "@rollup/plugin-replace": "^5.0.5", |
| b69ab31 | | | 312 | "@rollup/plugin-terser": "^0.4.4", |
| b69ab31 | | | 313 | "@stylexjs/stylex": "^0.9.3", |
| b69ab31 | | | 314 | "@types/jest": "29.5.12", |
| b69ab31 | | | 315 | "@types/node": "^16.11.7", |
| b69ab31 | | | 316 | "@types/react-dom": "^18.3.0", |
| b69ab31 | | | 317 | "@types/vscode": "^1.34.0", |
| b69ab31 | | | 318 | "@vitejs/plugin-react": "^4.3.4", |
| b69ab31 | | | 319 | "cross-env": "7.0.3", |
| b69ab31 | | | 320 | "isl": "0.1.0", |
| b69ab31 | | | 321 | "jest": "29.7.0", |
| b69ab31 | | | 322 | "jotai": "^2.6.2", |
| b69ab31 | | | 323 | "mini-css-extract-plugin": "^2.6.1", |
| b69ab31 | | | 324 | "react": "^18.3.1", |
| b69ab31 | | | 325 | "react-dom": "^18.3.1", |
| b69ab31 | | | 326 | "rollup": "^4.57.1", |
| b69ab31 | | | 327 | "rollup-plugin-esbuild": "^6.2.1", |
| b69ab31 | | | 328 | "ts-jest": "29", |
| b69ab31 | | | 329 | "tsx": "^4.16.2", |
| b69ab31 | | | 330 | "typescript": "5.5.4", |
| b69ab31 | | | 331 | "vite": "5.4.12", |
| b69ab31 | | | 332 | "vite-plugin-stylex": "^0.10.1", |
| b69ab31 | | | 333 | "vite-tsconfig-paths": "^4.3.2", |
| b69ab31 | | | 334 | "vscode-uri": "^3.0.6" |
| b69ab31 | | | 335 | } |
| b69ab31 | | | 336 | } |