Uninstall unknown vscode extensions
This commit is contained in:
parent
31d50d26f2
commit
3e173a0fbf
1 changed files with 38 additions and 27 deletions
|
@ -41,35 +41,46 @@
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
register: vscode_extensions
|
register: vscode_extensions
|
||||||
|
|
||||||
|
- set_fact:
|
||||||
|
requested_vscode_extensions:
|
||||||
|
- 'PKief.material-icon-theme'
|
||||||
|
- 'Zignd.html-css-class-completion'
|
||||||
|
- 'christian-kohler.npm-intellisense'
|
||||||
|
- 'dbaeumer.vscode-eslint'
|
||||||
|
- 'eamodio.gitlens'
|
||||||
|
- 'ms-vscode.vscode-typescript-tslint-plugin'
|
||||||
|
- 'ionutvmi.path-autocomplete'
|
||||||
|
- 'mrmlnc.vscode-less'
|
||||||
|
- 'mrmlnc.vscode-scss'
|
||||||
|
- 'ms-python.python'
|
||||||
|
- 'ms-vscode.sublime-keybindings'
|
||||||
|
- 'rokoroku.vscode-theme-darcula'
|
||||||
|
- 'truman.autocomplate-shell'
|
||||||
|
- 'wholroyd.jinja'
|
||||||
|
- 'formulahendry.auto-close-tag'
|
||||||
|
- 'James-Yu.latex-workshop'
|
||||||
|
- 'streetsidesoftware.code-spell-checker'
|
||||||
|
- 'EditorConfig.EditorConfig'
|
||||||
|
- 'vsciot-vscode.vscode-arduino'
|
||||||
|
- 'vscoss.vscode-ansible'
|
||||||
|
- 'rust-lang.rust'
|
||||||
|
- 'pnp.polacode'
|
||||||
|
- 'mrmlnc.vscode-duplicate'
|
||||||
|
- 'Tyriar.sort-lines'
|
||||||
|
- 'esbenp.prettier-vscode'
|
||||||
|
- 'jspolancor.presentationmode'
|
||||||
|
- 'ms-vscode.cpptools'
|
||||||
|
|
||||||
- name: "Install VSCode extensions"
|
- name: "Install VSCode extensions"
|
||||||
shell: "code --install-extension {{ item }} --force"
|
shell: "code --install-extension {{ item }} --force"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
when: "item not in vscode_extensions.stdout_lines"
|
when: "item not in vscode_extensions.stdout_lines"
|
||||||
with_items:
|
with_items: "{{ requested_vscode_extensions }}"
|
||||||
- 'PKief.material-icon-theme'
|
|
||||||
- 'Zignd.html-css-class-completion'
|
- name: "Remove unversioned VSCode extensions"
|
||||||
- 'christian-kohler.npm-intellisense'
|
shell: "code --uninstall-extension {{ item }}"
|
||||||
- 'dbaeumer.vscode-eslint'
|
become: true
|
||||||
- 'eamodio.gitlens'
|
become_user: "{{ user }}"
|
||||||
- 'ms-vscode.vscode-typescript-tslint-plugin'
|
when: "item not in requested_vscode_extensions"
|
||||||
- 'ionutvmi.path-autocomplete'
|
with_items: "{{ vscode_extensions.stdout_lines }}"
|
||||||
- 'mrmlnc.vscode-less'
|
|
||||||
- 'mrmlnc.vscode-scss'
|
|
||||||
- 'ms-python.python'
|
|
||||||
- 'ms-vscode.sublime-keybindings'
|
|
||||||
- 'rokoroku.vscode-theme-darcula'
|
|
||||||
- 'truman.autocomplate-shell'
|
|
||||||
- 'wholroyd.jinja'
|
|
||||||
- 'formulahendry.auto-close-tag'
|
|
||||||
- 'James-Yu.latex-workshop'
|
|
||||||
- 'streetsidesoftware.code-spell-checker'
|
|
||||||
- 'editorconfig.editorconfig'
|
|
||||||
- 'vsciot-vscode.vscode-arduino'
|
|
||||||
- 'vscoss.vscode-ansible'
|
|
||||||
- 'rust-lang.rust'
|
|
||||||
- 'pnp.polacode'
|
|
||||||
- 'mrmlnc.vscode-duplicate'
|
|
||||||
- 'Tyriar.sort-lines'
|
|
||||||
- 'esbenp.prettier-vscode'
|
|
||||||
- 'jspolancor.presentationmode'
|
|
||||||
|
|
Loading…
Reference in a new issue