Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't choose file type for this plugin #17

Open
dotmitsu opened this issue Jan 26, 2022 · 3 comments
Open

Can't choose file type for this plugin #17

dotmitsu opened this issue Jan 26, 2022 · 3 comments

Comments

@dotmitsu
Copy link

Plugin doesn't have file type assosiation. Sometimes it assosiates with yml automaticaly, sometimes not. Create please file type assosiation for choosing in menu.

@MSDehghan
Copy link
Owner

Thank you for your feedback. Plugin has a simple heuristic to decide whether a file is ansible file or not. Can you please provide the file which was mistakenly identified as an ansible file?

@dotmitsu
Copy link
Author

dotmitsu commented Jan 26, 2022

I have file docker_run.yml

---

- name: Run or restart Docker Container {{ docker_container_name }}
  docker_container:
    name: "{{ docker_container_name }}"
    image: "{{ docker_image }}"
    pull: yes
    command: "{{ docker_run_command | default('') }}"
    state: started
    restart: yes
    restart_policy: always
    network_mode: host
    volumes: "{{ volumes }}"
    log_driver: syslog
    log_options:
      syslog-facility: local4
      tag: "{{ docker_log_tag }}"
    env:
      PORT: "{{ rosing_port | quote }}"
      SOCKET_BACKLOG: "{{ rosing_socket_backlog | default('24') | quote }}"
      WORKERS: "{{ rosing_workers | quote}}"
      THREADS: "{{ rosing_threads | quote }}"
      PUMA_CONTROL_URL: "{{ (rosing_control_url_var | default('')) | quote }}"
      PUMA_CONTROL_TOKEN: "{{ (rosing_control_token_var | default('')) | quote }}"
      RUBYOPT: "{{ (rosing_rubyopt | default('')) | quote }}"

For right assosiation I need open settings and edit fily types and add name pattern to yaml. It is uncomfortable. It would be comfortable to select the file type with the right mouse button chosing "Override file type". But I can't do this with this plugin.

@dotmitsu
Copy link
Author

dotmitsu commented Jan 28, 2022

And I have different yaml files in project. Some for ansible, some for our application, and I can't normaly choose which for ansible which for our app. Plugin automaticaly work with every yaml or yml file. I can't understand logic. Some files opened with plugin, some not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants