A VSCode extension to help developers resolve so many merge conflicts interactively and systematically, to lighten this tedious work and avoid making mistakes.
SoManyConflict
in the VSCode extension marketplace..vsix
(see following), and run Extension: Install from VSIX...
in VSCode extension sidebar.somany
.xcode-select --install
yarn
or npm i
to download dependencies.F5
to run and debug extension.F1
or Cmd+Shift+P
and invoke command somany
.Trick: When debugging, install the extension
Auto Run Command
and configure it inCode-Preferences-Settings
, you can avoid manually invoke the command:
"auto-run-command.rules": [
{
"condition": "isRootFolder: XXX",
"command": "somanyconflicts.start",
"message": "Running So Many Conflicts"
}
],
Install windows-build-tools:
npm install --global windows-build-tools
Clone repo and open in VSCode.
Open the terminal, install Emscripten (the compiler toolchain to WebAssembly): https://emscripten.org/docs/getting_started/downloads.html#sdk-download-and-install
In the same terminal and under the project root, run yarn
or npm i
to download dependencies.
Press F5
to run and debug extension.
In the new window, press F1
or Ctrl+Shift+P
and invoke command somany
.
yarn
, stop it with Command+C
and remove "electron": "13.1.7"
from package.json
first, then run the following command to install modules:yarn
ELECTRON_MIRROR=https://npm.taobao.org/mirrors/electron/ yarn add -D electron@13.1.7
node_modules/tree-sitter/binding.gyp
: 'xcode_settings': {
- 'CLANG_CXX_LANGUAGE_STANDARD': 'c++11',
+ 'CLANG_CXX_LANGUAGE_STANDARD': 'c++14',
},
./node_modules/.bin/electron-rebuild
Note that, unfortunately, each time you run yarn, you need to rebuild treesitter as above :-(
Conflicts parsing part is borrowed from Conflict Squeezer, thanks for the nice work!