Results 1 to 3 of 3
Like Tree3Likes
  • 3 Post By jonwise80
  1.    #1  
    VSCode is a nice environment for developing HTML and Javascript, which fits pretty well with webOS.
    You can make it a little nicer by adding a Task to your project. This lets you "palm-run" from within the IDE, while capturing the debug output into the environment.

    On Windows, add or modify the project's tasks.json like so:

    Code:
    {
        // See https://go.microsoft.com/fwlink/?LinkId=733558
        // for the documentation about the tasks.json format
        "version": "2.0.0",
        "tasks": [
            {
                "label": "palm-run",
                "type": "shell",
                "command": "palm-run %cd%",
                "problemMatcher": [],
                "group": {
                    "kind": "build",
                    "isDefault": true
                }
            }
        ]
    }
    Then you can choose the task "palm-run" from the Terminal menu, or press the keyboard shortcut (Ctrl+Shift+B on Windows) to build, deploy, run and debug your webOS app!

    I did try making a full VisualStudio extension, but it was more trouble than it was worth. Here's what it looks like in the IDE:
    vscode-task.PNG
  2.    #2  
    Related to this, there are a number of scripts I've started building out for my own project that would be helpful if they were generated for you, so I'm going to start a side project to begin replacing the old Eclipse plug-in with VisualStudio Code Extensions. This project will grow over time, but I'll keep it on GitHub here:

    https://github.com/codepoet80/webos-vscode-extensions
  3.    #3  
    Quote Originally Posted by jonwise80 View Post
    so I'm going to start a side project to begin replacing the old Eclipse plug-in with VisualStudio Code Extensions
    An install and update script for OSX are done, and in need of testers!
    It functions to patch an existing webOS SDK install, to VSCode Extensions to palm-generate.

    Once patched, any new webOS project generated by the SDK will include scripts, config and folders to support Running and Building from menus or keyboard shortcuts in the IDE. To install it, open a Terminal window, clone the project and execute ./Install-OSX.sh as shown in the attached screen shot:

    Code:
    git clone https://github.com/codepoet80/webos-vscode-extensions.git
    cd webos-vscode-extensions
    ./Install-OSX.sh
    Screen Shot 2018-10-21 at 8.37.38 AM.png

Similar Threads

  1. Fumbling my way through webOS Development from scratch in 2018
    By jonwise80 in forum webOS Development
    Replies: 18
    Last Post: 10/29/2018, 02:20 PM
  2. LG WebOS 4.0 is rolling out for 2018 models.
    By akitayo in forum LG webOS TV
    Replies: 2
    Last Post: 10/14/2018, 03:35 AM
  3. Mojo Maps for Google - new for 2018
    By George Mari in forum webOS Apps & Games
    Replies: 0
    Last Post: 10/12/2018, 09:18 PM
  4. Best Carrier for Pre 2 in 2018
    By cheque_some in forum North American Carriers (GSM)
    Replies: 3
    Last Post: 09/04/2018, 04:44 AM
  5. 2018 Pre 2 back up & set up
    By Preemptive in forum Palm Pre 2
    Replies: 4
    Last Post: 08/23/2018, 11:53 AM

Posting Permissions