Skip to content

Conversation

ninjaguardian
Copy link

By default, the run button will not show for files that have no executor (i.e, files that say Code language not supported or defined).

Changes to settings

  • (NEW) code-runner.onlyShowRunIconIfExecutorExists

    • Default: true
    • The arrow in the title bar will only be shown if the file can be executed.
  • code-runner.showRunIconInEditorTitleMenu

    • If set to false, it will override code-runner.onlyShowRunIconIfExecutorExists.

Changes to code

  • (NEW) fileHasExecutor()

    • Public method
    • Returns a boolean saying if the current file has an executor.
  • (NEW) updateContext

    • Handles all the logic.

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

Successfully merging this pull request may close these issues.

1 participant