dotfiles/tasks/vscode.yml

62 lines
1.7 KiB
YAML
Raw Normal View History

2018-10-06 12:47:13 +01:00
- file:
path: '{{ home }}/.config/Code/User'
state: directory
owner: "{{ user }}"
mode: 0755
2018-09-10 09:20:53 +01:00
- copy:
src: ./files/vscode-settings.json
2018-09-17 17:22:15 +01:00
dest: "{{ home }}/.config/Code/User/settings.json"
2018-09-10 09:20:53 +01:00
mode: 0644
2018-09-17 17:22:15 +01:00
owner: "{{ user }}"
2018-09-10 09:20:53 +01:00
- copy:
src: ./files/vscode-keybindings.json
2018-09-17 17:22:15 +01:00
dest: "{{ home }}/.config/Code/User/keybindings.json"
2018-09-10 09:20:53 +01:00
mode: 0644
2018-09-17 17:22:15 +01:00
owner: "{{ user }}"
2018-09-11 09:12:11 +01:00
2018-09-14 09:01:11 +01:00
- name: "Get VSCode extensions"
shell: "code --list-extensions"
become: true
2018-09-17 17:22:15 +01:00
become_user: "{{ user }}"
2018-09-11 09:12:11 +01:00
register: vscode_extensions
- name: "Install VSCode extensions"
shell: "code --install-extension {{ item }}"
2018-09-14 09:01:11 +01:00
become: true
2018-09-17 17:22:15 +01:00
become_user: "{{ user }}"
2018-09-14 09:01:11 +01:00
when: "item not in vscode_extensions.stdout_lines"
2018-09-11 09:12:11 +01:00
with_items:
- 'PKief.material-icon-theme'
- 'PeterJausovec.vscode-docker'
- 'Zignd.html-css-class-completion'
- 'bitzl.vscode-puppet'
- 'bogdan-sinitsa.theme-dark-monokai'
- 'christian-kohler.npm-intellisense'
- 'dbaeumer.vscode-eslint'
- 'eamodio.gitlens'
- 'eg2.tslint'
- 'eg2.vscode-npm-script'
- 'formulahendry.code-runner'
- 'ionutvmi.path-autocomplete'
- 'magicstack.MagicPython'
- 'mrmlnc.vscode-less'
- 'mrmlnc.vscode-scss'
- 'ms-python.python'
- 'ms-vscode.sublime-keybindings'
- 'rokoroku.vscode-theme-darcula'
- 'steoates.autoimport'
- 'truman.autocomplate-shell'
- 'wholroyd.jinja'
- 'zolocode.editorzoom'
- 'formulahendry.auto-close-tag'
- 'James-Yu.latex-workshop'
- 'ban.spellright'
- 'editorconfig.editorconfig'
- 'batisteo.vscode-django'
- 'davidanson.vscode-markdownlint'
- 'vsciot-vscode.vscode-arduino'
- 'vscoss.vscode-ansible'
- 'rust-lang.rust'