Skip to content

Commit

Permalink
feat: diff orphaned objects and so on (#4)
Browse files Browse the repository at this point in the history
* feat: diff orphaned objects

- support diff between orphaned object, such as object only in A or B.
  - will be useful to compare when object is same but in different name
- activate with context menu

* test: adding initial test code

* chore: update icon images
  • Loading branch information
sunggun-yu authored Dec 22, 2023
1 parent 8162ad1 commit d3a4655
Show file tree
Hide file tree
Showing 10 changed files with 267 additions and 220 deletions.
5 changes: 5 additions & 0 deletions .vscode-test.mjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
import { defineConfig } from '@vscode/test-cli';

export default defineConfig({
label: 'unitTests',
files: 'out/test/**/*.test.js',
mocha: {
ui: 'tdd',
timeout: 20000
},
});
1 change: 1 addition & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ vsc-extension-quickstart.md
**/.vscode-test.*
.history/**
docs/**
.github/**
157 changes: 1 addition & 156 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 15 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,11 @@
"dark": "resources/dark/eye.svg"
}
},
{
"command": "kubemani-diff.diffSelectedItems",
"title": "Compare Selected Items",
"category": "KubeMani Diff"
},
{
"command": "kubemani-diff.openFileA",
"title": "Open File A",
Expand Down Expand Up @@ -111,6 +116,10 @@
"command": "kubemani-diff.diffSelectedItem",
"when": "false"
},
{
"command": "kubemani-diff.diffSelectedItems",
"when": "false"
},
{
"command": "kubemani-diff.selectFiles",
"when": "false"
Expand All @@ -136,7 +145,7 @@
"view/item/context": [
{
"command": "kubemani-diff.diffSelectedItem",
"when": "view == kubemani-tree-view && viewItem == kube-item",
"when": "view == kubemani-tree-view && (viewItem == kube-item || viewItem == kube-item-AB)",
"group": "inline"
},
{
Expand All @@ -148,12 +157,17 @@
"command": "kubemani-diff.openFileB",
"when": "view == kubemani-file-view && viewItem == B",
"group": "inline"
},
{
"command": "kubemani-diff.diffSelectedItems",
"when": "view == kubemani-tree-view && listDoubleSelection && viewItem == kube-item"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile",
"build": "vsce package",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
Expand Down
Binary file modified resources/app-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d3a4655

Please sign in to comment.