Skip to content

Update of sorting, reformatting and missing things#69

Open
ElektroStudios wants to merge 6 commits intoformulahendry:masterfrom
ElektroStudios:master
Open

Update of sorting, reformatting and missing things#69
ElektroStudios wants to merge 6 commits intoformulahendry:masterfrom
ElektroStudios:master

Conversation

@ElektroStudios
Copy link
Copy Markdown

FIELDS/PROPERTIES

  • description:

    • Language names were alphabetically sorted.
  • version:

    • Changed to "0.6.8"
  • keywords:

    • Language names were alphabetically sorted.
  • code-runner.executorMap:

    • Language names were alphabetically sorted.
    • Added missing supported languages (Elixir, VB.NET)
    • Language names simplified and reformatted.
      • Some comments for the author about the major changes I did:
    • Command syntaxes/paths simplified.
    • Added commands for C# and VB.NET. compilation
    • Changed node.exe in JavaScript for Cscript.exe (a.k.a Windows Script Host). I just think it is better to set by default a native installed executable of the Windows O.S.
  • code-runner.executorMapByFileExtension:

    • File extensions were alphabetically sorted.
    • Added lots of missing file extensions with their corresponding commands.
  • code-runner.customCommand

    • Changed the default command "Echo Hello" for "Echo Hello World!" which is a more familiar thing in the programming world .
  • code-runner.languageIdToFileExtensionMap

    • Added somre mappings.

SETTINGS

  • code-runner.saveFileBeforeRun
    • Changed from "false" to "true", as the behavior of an IDE. Really has no sense to run/compile a file with unsaved changes, it was redundant.

COMMANDS

  • "code-runner.run" has been renamed to "code-runner.runCode"

  • "code-runner.runByLanguage" has been renamed to "code-runner.runCodeByLanguage"

Then commands were sorted alphabetically in package.json, codeManager.json and extension.json files (in arrays, and function names/blocks).

## FIELDS/PROPERTIES

 - description:
    - Language names were alphabetically sorted.

 - version: 
   - Changed to "0.6.8"

 - keywords: 
    - Language names were alphabetically sorted.

 - code-runner.executorMap:
    - Language names were alphabetically sorted.
    - Added missing supported languages (Elixir, VB.NET)
    - Language names simplified and reformatted. 
         - Some comments for the author about the major changes I did: 
            - "JS" was the name that for legally issues Microsoft's choosed for their JavaScript for Windows version, which is exactlly the same as the "common" JavaScript, but the name "JS" only reffers to the Microsoft JavaScript version, and that was very confussing.
                - All the other major name changes I've explained the reasons in the request I did: formulahendry#64
    - Command syntaxes/paths simplified.
    - Added commands for C# and VB.NET. compilation
    - Changed node.exe in JavaScript for Cscript.exe (a.k.a Windows Script Host). I just think it is better to set by default a native installed executable of the Windows O.S.

 - code-runner.executorMapByFileExtension:
    - File extensions were alphabetically sorted.
    - Added lots of missing file extensions with their corresponding commands.

- code-runner.customCommand
    - Changed the default command "Echo Hello" for "Echo Hello World!" which is a more familiar thing in the programming world .

- code-runner.languageIdToFileExtensionMap
    - Added somre mappings.

## SETTINGS

 - code-runner.saveFileBeforeRun
    - Changed from "false" to "true", as the behavior of an IDE. Really has no sense to run/compile a file with unsaved changes, it was redundant.

## COMMANDS
 - "code-runner.run" has been renamed to "code-runner.runCode"

 - "code-runner.runByLanguage" has been renamed to "code-runner.runCodeByLanguage"

Then commands were sorted alphabetically in package.json, codeManager.json and extension.json files (in arrays, and function names/blocks).
Comment thread package.json
"code-runner.executorMap": {
"type": "object",
"default": {
"AppleScript": "osascript.exe",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do not change the id list, they come from the Language Identifiers

Comment thread package.json
"code-runner.executorMap": {
"type": "object",
"default": {
"AppleScript": "osascript.exe",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are supporting Windows as well as Linux and macOS. So we could not use *.exe

Comment thread package.json
"code-runner.executorMapByFileExtension": {
"type": "object",
"default": {
".bat": "CMD.exe /C",
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to add executor for each file extension. It is what Language Identifiers need to do.

Comment thread package.json
"code-runner.languageIdToFileExtensionMap": {
"type": "object",
"default": {
"Batch File": [".bat", ".cmd"],
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here. Please use Language Identifiers

Copy link
Copy Markdown
Owner

@formulahendry formulahendry left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest you go through all the code logic and make sure there would not be any regression. 😃

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.

2 participants