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

Native support for custom Makefile naming conventions #645

Open
apexDev37 opened this issue Sep 8, 2024 · 1 comment
Open

Native support for custom Makefile naming conventions #645

apexDev37 opened this issue Sep 8, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@apexDev37
Copy link

Description:

Currently, the extension only provides syntax highlighting and support for files named Makefile. When the Makefile has a different name, such as docker.Makefile or Makefile.test, these files are treated as plain text. Such naming conventions are commonly used in larger projects to separate concerns or context (ie. docker, test, etc.). It would be an enhancement to support these types of naming conventions out-of-the-box!

Issue

Steps to Reproduce

  1. Install the Makefile extension.
  2. Create a file named docker.Makefile or Makefile.test.
  3. Observe that the extension does not provide Makefile syntax highlighting or support for these files.

Example

makefile-example-01
makefile-example-02

Current Workaround

This can be resolved with the following manual hack added to settings.json. However, this begins to prove inefficient when working with large or several teams:

    "files.associations": {
        "compose.Makefile": "makefile",
    },

Enhancement / Feature Request

Ideally, the extension should offer syntax highlighting, linting, and other Makefile-related functionality for files that follow common alternative naming conventions. I propose the following enhancement:

💡 Allow the extension to recognize additional naming conventions, such as:

  • *.Makefile
  • Makefile.*
  • *.makefile

Additional Context:

Extension Version: 0.10.26
VS Code Version: 1.92.0-insider
Operating System: Ubuntu Focal LTS

@github-actions github-actions bot added the triage label Sep 8, 2024
@Yingzi1234 Yingzi1234 added enhancement New feature or request and removed triage labels Sep 11, 2024
@Yingzi1234
Copy link
Collaborator

@gcampbell-msft We are currently able to reproduce this problem and you can get the details below:
ENV:

  1. VSCode: 1.93.0
  2. Makefile: v0.11.8(pre-release)

image

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

No branches or pull requests

2 participants