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

[languages] contribution point languages provide the ability to extends #197881

Open
yiliang114 opened this issue Nov 10, 2023 · 2 comments
Open
Assignees
Labels
feature-request Request for new features or functionality languages-basic Basic language support issues
Milestone

Comments

@yiliang114
Copy link
Contributor

Type: Feature Request

Sometimes we want to redefine a language to match specific file suffixes. But I also want to directly reuse the grammar and lexical files of some existing language.

For example, I want to recognize all files ending in .sh as a new language and call it shellscript1, but I am not prepared to provide grammar files and lexical files for shellscript1 language, because in fact its configuration is exactly the same asshellscript, I just want to have a new language, which may not be the category of aliases.

The contribution point is roughly configured like this

      {
        "id": "shellscript1",
        "extend": "shellscript",
        "aliases": [
          "shell"
        ],
        "extensions": [
          ".sh"
        ]
      }

VS Code version: Code 1.84.1 (Universal) (2b35e1e, 2023-11-06T12:37:18.666Z)
OS version: Darwin x64 21.3.0
Modes:

@vscodenpa
Copy link

Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.84.2. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

@vscodenpa vscodenpa added the stale Issues that have not been triaged in an appropriate amount of time label Nov 17, 2023
@chrmarti chrmarti removed triage-needed stale Issues that have not been triaged in an appropriate amount of time labels Nov 21, 2023
@chrmarti chrmarti assigned aeschli and unassigned chrmarti and justschen Nov 21, 2023
@FlorentP42
Copy link

Gathering interest for Shell Script auto-indent: #199003

@aeschli aeschli changed the title contribution point languages provide the ability to extends [languages] contribution point languages provide the ability to extends Dec 6, 2023
@aeschli aeschli added languages-basic Basic language support issues feature-request Request for new features or functionality labels Dec 6, 2023
@aeschli aeschli added this to the Backlog milestone Dec 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality languages-basic Basic language support issues
Projects
None yet
Development

No branches or pull requests

6 participants