Skip to content

pinecoders/Pine-Script-v5-VS-Code

 
 

Repository files navigation

Pine Script v5 Language Server for VS Code

Version Issues Downloads Stars Contributors Licance

Disclaimer: Pine Script™ is a trademark of TradingView. This project is not affiliated with, endorsed by, or connected to TradingView.

The Pine Script v5 Language Server Extension is a powerful addition to your VS Code setup, designed specifically to enhance the development experience for Pine Script v5. It brings a suite of advanced features to your fingertips, including robust syntax highlighting and intelligent code completion, which greatly facilitate the coding process. While TradingView offers an excellent domain-specific text editor, it lacks the level of customization that some users may desire. The advent of AI technology presents an opportunity to harness these tools to accelerate the production speed. This potential was one of my motivations for developing this extension. Furthermore, VS Code is on the cusp of releasing API features that will allow the creation of custom copilot agents, a capability already available in the insiders edition, which could provide additional impetus for using this extension. My aspiration is that the Pine Script community finds great value and utility in this tool, as its development has been a significant endeavor.


Features

Hover Over Tooltips
Get instant syntax descriptions and documentation by hovering over elements in your code.

HoverOverGif

Library Completions
Autocomplete import statements with relevant library suggestions.

LibCompletions

Quick Library Source Code Refrence Simply hover over the import statement to view the source code in a hover over pop-up.

LibHover

Function Signatures && Code Completions*
View function parameter information as you type. Intelligent suggestions for built-ins and parameters..

Signatures_and_Completions

Theme Options
Theme Options, One of them matching the TV Editor.

Themes

Built-in Access
Open and edit Built-in Pine Script scripts with ease.

BuiltInGif

Templates
Use templates for indicators, libraries, and strategies to kick-start your projects.

TemplatesGif

Docstrings
Generate comprehensive docstrings for your functions and methods.

DocstringGif

Type Generation
Automatically generate and insert types for untyped variables in your scripts.

TypifyGif


Installation

Via Visual Studio Code

  • Open VS Code and navigate to the Extensions view by clicking on the square iconin the sidebar or pressing Ctrl+Shift+X.
  • Search for Pinescript v5 Language Server in the Extensions view search bar.
  • Click on the Install button.

Via Command Line

You can also install the extension directly from the command line:

code --install-extension frizLabz.pinescript

Reporting Bugs

If you encounter any bugs or issues while using this extension, please report them to help improve the tool. You can do so by:

  • Opening an issue on the GitHub repository.
  • Providing detailed information about the bug and steps to reproduce it.

Your feedback is valuable and contributes to the continuous development and enhancement of the extension.

Version Control

This project uses Git for version control. Each update is carefully documented through commits and tags to ensure you can track changes, updates, and fixes throughout the development process.

To-Do List

  • Automated Testing: Implement automated tests to ensure stability and reliability of the extension.
  • Test Environment Troubleshooting: Resolve issues preventing tests from running successfully in the VS Code environment.
  • Continuous Integration: Set up CI/CD pipelines to automate the build and deployment process.

Keep Documentation Up-to-Date

  • Review Existing Pine Script Documentation

    • Ensure all existing information is current with the latest version of Pine Script.
    • Check that all of the Pine Script syntax are documented.
  • Document New Features

    • Add documentation for any new features introduced in recent updates.
    • Provide examples on how to use new features effectively.

Fix Minor Bugs and Typos

  • Identify Bugs in Documentation

    • Look for inconsistencies or errors in the documentation that could mislead users.
    • Collect feedback from the community on parts of the documentation that may be confusing or incorrect.
  • Correct Typos and Grammatical Errors

    • Proofread text to find and fix typographical errors.
    • Ensure that the language used is clear and easy to understand.

Future Goals

  • TradingView Script Syncing: Explore secure methods for synchronizing scripts with TradingView. Although a direct approach using the sessionId was identified, it was not pursued due to respect for TradingView's policies and potential security concerns. Future plans include developing a solution that could involve a Chrome extension facilitating script operations without exposing sensitive session information. This would require users to be logged into their local Chrome browser. Contributions, especially from those with experience in Chrome extension development, are welcome and encouraged.

Contributing

Contributions are what make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  • Fork the Project
  • Create your Feature Branch (git checkout -b feature/AmazingFeature)
  • Commit your Changes (git commit -m 'Add some AmazingFeature')
  • Push to the Branch (git push origin feature/AmazingFeature)
  • Open a Pull Request

Repo TeleGram:

Telegram Logo


Started By:
FFriZz at frizLabz
TV Account page - FFriZz

Skilled in Full Stack Development and Node.js, and an expert in Pine Script.

For inquires: frizlabz@gmail.com

Buy me a coffee to support my work!

Buy Me a Coffee

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.3%
  • JavaScript 0.7%