question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

File extensions settings precedence

See original GitHub issue

In my settings:

"code-runner.executorMapByFileExtension": {
    "*.js": "node",
    ".es": "npm run babel-node",
    ".ts": "npm run ts-node"
  },

  // Set the executor of each language.
  "code-runner.executorMap": {
    "sup": "npm run sup",
    "sup-babel": "npm run sup-babel",
    "javascript": "node",
    "php": "php",
    "python": "python",
    "perl": "perl",
    "ruby": "ruby",
    "go": "go run",
    "lua": "lua",
    "groovy": "groovy",
    "powershell": "powershell -ExecutionPolicy ByPass -File",
    "bat": "",
    "shellscript": "bash",
    "fsharp": "fsi",
    "csharp": "scriptcs",
    "vbscript": "cscript //Nologo"
  },

When I run a .es file, it runs node instead of npm run babel-node. Note: no difference if setting “*.es” or “.es”

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:16 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
formulahendrycommented, Aug 29, 2016

Submit an issue to VS Code

1reaction
formulahendrycommented, Aug 29, 2016

Oh! Not sure whether it is VS Code bug to read config. It falls back to read javascript entry in default config. For quick turnaround, you coulde add "javascript": null in code-runner.executorMap instead of removing it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Configuration file precedence (GNU Astronomy Utilities)
4.2.2 Configuration file precedence ... The option values in all the programs of Gnuastro will be filled in the following order. If an...
Read more >
User and Workspace Settings - Visual Studio Code
In general, VS Code extensions store their settings in your user or workspaces settings files and they are available through the Settings editor...
Read more >
Configuration file precedence - Splunk Documentation
Configuration file precedence · It merges the settings from all copies of the file, using a location-based prioritization scheme. · When different copies...
Read more >
Order of Precedence when Configuring ASP.NET Core
Lets take a look at details for each of the configuration sources. 1. appsettings.json File. The default location for your configuration ...
Read more >
Configuration File - Prettier
This means you can configure Prettier via (in order of precedence): ... different configuration for certain file extensions, folders and specific files.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found