Uninstall unknown vscode extensions
This commit is contained in:
parent
31d50d26f2
commit
3e173a0fbf
1 changed files with 38 additions and 27 deletions
|
@ -41,12 +41,8 @@
|
||||||
become_user: "{{ user }}"
|
become_user: "{{ user }}"
|
||||||
register: vscode_extensions
|
register: vscode_extensions
|
||||||
|
|
||||||
- name: "Install VSCode extensions"
|
- set_fact:
|
||||||
shell: "code --install-extension {{ item }} --force"
|
requested_vscode_extensions:
|
||||||
become: true
|
|
||||||
become_user: "{{ user }}"
|
|
||||||
when: "item not in vscode_extensions.stdout_lines"
|
|
||||||
with_items:
|
|
||||||
- 'PKief.material-icon-theme'
|
- 'PKief.material-icon-theme'
|
||||||
- 'Zignd.html-css-class-completion'
|
- 'Zignd.html-css-class-completion'
|
||||||
- 'christian-kohler.npm-intellisense'
|
- 'christian-kohler.npm-intellisense'
|
||||||
|
@ -64,7 +60,7 @@
|
||||||
- 'formulahendry.auto-close-tag'
|
- 'formulahendry.auto-close-tag'
|
||||||
- 'James-Yu.latex-workshop'
|
- 'James-Yu.latex-workshop'
|
||||||
- 'streetsidesoftware.code-spell-checker'
|
- 'streetsidesoftware.code-spell-checker'
|
||||||
- 'editorconfig.editorconfig'
|
- 'EditorConfig.EditorConfig'
|
||||||
- 'vsciot-vscode.vscode-arduino'
|
- 'vsciot-vscode.vscode-arduino'
|
||||||
- 'vscoss.vscode-ansible'
|
- 'vscoss.vscode-ansible'
|
||||||
- 'rust-lang.rust'
|
- 'rust-lang.rust'
|
||||||
|
@ -73,3 +69,18 @@
|
||||||
- 'Tyriar.sort-lines'
|
- 'Tyriar.sort-lines'
|
||||||
- 'esbenp.prettier-vscode'
|
- 'esbenp.prettier-vscode'
|
||||||
- 'jspolancor.presentationmode'
|
- 'jspolancor.presentationmode'
|
||||||
|
- 'ms-vscode.cpptools'
|
||||||
|
|
||||||
|
- name: "Install VSCode extensions"
|
||||||
|
shell: "code --install-extension {{ item }} --force"
|
||||||
|
become: true
|
||||||
|
become_user: "{{ user }}"
|
||||||
|
when: "item not in vscode_extensions.stdout_lines"
|
||||||
|
with_items: "{{ requested_vscode_extensions }}"
|
||||||
|
|
||||||
|
- name: "Remove unversioned VSCode extensions"
|
||||||
|
shell: "code --uninstall-extension {{ item }}"
|
||||||
|
become: true
|
||||||
|
become_user: "{{ user }}"
|
||||||
|
when: "item not in requested_vscode_extensions"
|
||||||
|
with_items: "{{ vscode_extensions.stdout_lines }}"
|
||||||
|
|
Loading…
Reference in a new issue