Skip to content
This repository has been archived by the owner on Jul 15, 2023. It is now read-only.

Latest commit

 

History

History
17 lines (11 loc) · 1.12 KB

contributing.md

File metadata and controls

17 lines (11 loc) · 1.12 KB

VSCode JSHint

Build Status

Extension to integrate JSHint into VS Code.

Development setup

  • Clone the repository
  • run npm install at the root to install all dependencies
  • open VS Code on the root
  • use npm run compile to compile the client and server

An overview of writing VSCode extensions is available here.

This extension uses a Language Server to run jshint, so the extension is divided into client and server parts that will be run in separate processes by VSCode. The client handles the activation and setup of the extension. The server has the bulk of the code and handles running jshint on files to validate them.

To debug the extension, use the Launch Extension configuration from the debug view. Once this is running and the extension has been activated by opening a js file, the server can be debugged with the Attach to Server configuration.