Skip to content

Commit 5c982be

Browse files
committed
[release] v3.2.0-beta-1
- Reworked hover functions. Now displays descriptions and arguments list. - Snippets for built-in functions and variables updated. - Grammars bug fixed. - Type `polyline` added.
1 parent 6e119c4 commit 5c982be

14 files changed

+16826
-25201
lines changed

CHANGELOG.md

Lines changed: 59 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,149 @@
11
# Change Log
22

3+
#### **3.2.0**
4+
5+
*08.10.2023 **Update***
6+
- Reworked hover functions. Now displays descriptions and arguments list.
7+
- Snippets for built-in functions and variables updated.
8+
- Grammars bug fixed.
9+
- Type `polyline` added.
10+
11+
---
12+
313
#### **3.1.5**
414

5-
*21.09.2023 **Update***
6-
- Semantic token updated for matching scope naming general practices
15+
*21.09.2023 **Update***
16+
- Semantic token updated for matching scope naming general practices.
717

818
---
919

1020
#### **3.1.4**
1121

12-
*20.09.2023 **Update***
13-
- Readme updated
14-
- Minor fixed
22+
*20.09.2023 **Update***
23+
- Readme updated.
24+
- Minor fixed.
1525

1626
---
1727

1828
#### **3.1.3**
1929

20-
*19.09.2023 **Update***
21-
- Grammars and snippets for built-in variables, functions and constants updated to Pinescript release September 2023
22-
- Minor bug fixed
30+
*19.09.2023 **Update***
31+
- Grammars and snippets for built-in variables, functions and constants updated to Pinescript release September 2023.
32+
- Minor bug fixed.
2333

2434
---
2535

2636
#### **3.1.2**
2737

28-
*11.09.2023 **Update***
29-
- Grammars for user-defined types and functions fixed
38+
*11.09.2023 **Update***
39+
- Grammars for user-defined types and functions fixed.
3040

3141
---
3242

3343
#### **3.1.0**
3444

35-
*08.09.2023 **Update***
36-
- Grammars for built-in method fixed
37-
- Grammars for type casing fixed
45+
*08.09.2023 **Update***
46+
- Grammars for built-in method fixed.
47+
- Grammars for type casing fixed.
3848

3949
---
4050

4151
#### **3.0.9**
4252

43-
*04.09.2023 **Update***
44-
- Snippets for built-in variables, functions and constants updated to Pinescript release August 2023
45-
- Grammars for `map.new()` fixed
53+
*04.09.2023 **Update***
54+
- Snippets for built-in variables, functions and constants updated to Pinescript release August 2023.
55+
- Grammars for `map.new()` fixed.
4656

4757
---
4858

4959
#### **3.0.8**
5060

51-
*03.09.2023 **Update***
52-
- Grammars for array of `user-defined types` updated
61+
*03.09.2023 **Update***
62+
- Grammars for array of `user-defined types` updated.
5363

5464
---
5565

5666
#### **3.0.7**
5767

58-
*02.09.2023 **Update***
59-
- Grammars for built-in variables updated
60-
- Type `chart.point` and `map` added
61-
- `log` functions added
62-
- Minor syntax fixed
68+
*02.09.2023 **Update***
69+
- Grammars for built-in variables updated.
70+
- Type `chart.point` and `map` added.
71+
- `log` functions added.
72+
- Minor syntax fixed.
6373

6474
---
6575

6676
#### **3.0.6**
6777

68-
*09.07.2023 **Update***
69-
- Grammars for built-in array & matrix methods syntax highlights fixed
78+
*09.07.2023 **Update***
79+
- Grammars for built-in array & matrix methods syntax highlights fixed.
7080

7181
---
7282

7383
#### **3.0.5**
7484

75-
*08.07.2023 **Update***
76-
- Grammars for `methods` syntax highlights fixed
85+
*08.07.2023 **Update***
86+
- Grammars for `methods` syntax highlights fixed.
7787

7888
---
7989

8090
#### **3.0.4**
8191

82-
*06.07.2023 **Update***
83-
- Grammars of Placeholder for `String` fixed
92+
*06.07.2023 **Update***
93+
- Grammars of Placeholder for `String` fixed.
8494

8595
---
8696

8797
#### **3.0.2**
8898

89-
*27.06.2023 **Update***
90-
- Grammars updated for multi-line functions
91-
- Grammars updated for string placeholders
99+
*27.06.2023 **Update***
100+
- Grammars updated for multi-line functions.
101+
- Grammars updated for string placeholders.
92102

93103
---
94104

95105
#### **3.0.1**
96106

97-
*25.06.2023 **Update***
98-
- Reworked grammars and textmate scopes
99-
- Added auto-indentation
107+
*25.06.2023 **Update***
108+
- Reworked grammars and textmate scopes.
109+
- Added auto-indentation.
100110

101111
---
102112

103113
#### **2.0.1**
104114

105-
*16.06.2023 **Update***
106-
- Added grammars for user-defined types
107-
- Added built-in functions for `str` and `table`
108-
- Correct grammars for `matrix` and `array`
115+
*16.06.2023 **Update***
116+
- Added grammars for user-defined types.
117+
- Added built-in functions for `str` and `table`.
118+
- Correct grammars for `matrix` and `array`.
109119

110120
---
111121

112122
#### **2.0.0**
113123

114-
*12.06.2023 **Update***
115-
- Added built-in functions for `matrix`
116-
- Added built-in properties for `chart` and `label`
117-
- Correct grammars for several constants
124+
*12.06.2023 **Update***
125+
- Added built-in functions for `matrix`.
126+
- Added built-in properties for `chart` and `label`.
127+
- Correct grammars for several constants.
118128

119129
---
120130

121131
#### **1.0.1**
122132

123-
*25.11.2021 **Update***
124-
- Hover Reference provider
125-
- Deleted domain snippets `info`
133+
*25.11.2021 **Update***
134+
- Hover Reference provider
135+
- Deleted domain snippets `info`
126136
- Corrected few snippets
127137
- Added snippets under `f` domain
128138

129139
**Hovers Not Working**
130-
* After udating if the hovers don't work
140+
* After udating if the hovers don't work
131141
* 1. Unistall the extension
132-
* 2. Open .vscode file from explorer or finder, or execute `open .vscode` in the terminal
142+
* 2. Open .vscode file from explorer or finder, or execute `open .vscode` in the terminal
133143
* 3. Delete `salbert11.pinescript-helper` extension folder
134144
* 4. Reinstall the extension
135145

136146
---
137147

138148
#### **1.0.0**
139-
- Extension Release
149+
- Extension Release

README.md

Lines changed: 36 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ PineScript Helper provides language support for PineScript, the scripting langua
99
### What is PineScript?
1010
PineScript is a domain-specific scripting language developed by TradingView. It is primarily used to create custom technical indicators, strategies, and alerts within the TradingView platform. PineScript is specifically designed for financial market analysis and allows traders to create their own indicators and strategies to automate trading decisions.
1111

12+
---
13+
1214
## Features
1315
- **Syntax Highlighting** : The extension provides syntax highlighting for PineScript V5, making your code more readable and easier to navigate.
1416

@@ -34,16 +36,29 @@ PineScript Helper extension is best suited for use with [**PineScript Color Them
3436

3537
*Note: If you prefer a different theme, you are free to use any other themes of your choice. PineScript Helper is compatible with most themes.*
3638

39+
---
40+
3741
## Installation
38-
### Method 1: Install from VSIX
42+
### Method 1: Install from VS Code Command Palette
43+
44+
Launch VS Code Command Palette (Ctrl+P), paste the following command, and press enter.
45+
```
46+
ext install salbert11.pinescript-helper
47+
```
48+
49+
---
50+
51+
### Method 2: Install from VSIX
3952
1. Download the latest release of the extension from the [GitHub releases page](https://github.com/salbert11/pinescript/releases).
4053
2. Launch Visual Studio Code.
4154
3. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
4255
4. Click on the "..." (More Actions) icon in the top-right corner of the Extensions view and select "Install from VSIX..."
4356
5. In the file dialog, select the downloaded VSIX file (`pinescript-helper.vsix`) and click "Open."
4457
6. Once installed, the PineScript Helper extension will be enabled automatically.
4558

46-
### Method 2: Clone and Compile in Visual Studio Code
59+
---
60+
61+
### Method 3: Clone and Compile in Visual Studio Code
4762
1. Clone the PineScript Helper repository to your local machine using the following command:
4863

4964
```bash
@@ -67,6 +82,8 @@ PineScript Helper extension is best suited for use with [**PineScript Color Them
6782
```
6883
7. Once installed, the PineScript Helper extension will be enabled automatically.
6984

85+
---
86+
7087
## Supported File Extensions
7188

7289
The PineScript Helper extension supports the following file extensions:
@@ -81,27 +98,40 @@ The PineScript Helper extension supports the following file extensions:
8198
| `.trading` |
8299
| `.tradingview` |
83100

101+
---
102+
84103
## Usage
85104
1. Open a `.pine` or `.pinescript` file in Visual Studio Code.
86105
2. The PineScript Helper extension will automatically detect the file type and apply syntax highlighting accordingly.
87106
3. Use the available snippets to quickly insert commonly used PineScript code blocks.
88107
4. Hover over variables, functions, or keywords to view relevant reference manual information.
89108

109+
---
110+
90111
## Release Notes
91-
#### **3.1.5**
112+
#### **3.2.0**
92113

93-
*21.09.2023 **Update***
94-
- Semantic token updated for matching scope naming general practices
114+
*08.10.2023 **Update***
115+
- Reworked hover functions. Now displays descriptions and arguments list.
116+
- Snippets for built-in functions and variables updated.
117+
- Grammars bug fixed.
118+
- Type `polyline` added.
119+
120+
---
95121

96122
## Contribution
97123
Contributions are welcome! Please feel free to submit a [pull request](https://github.com/salbert11/pinescript/pulls) in the GitHub repository.
98124

125+
---
126+
99127
## Feedback and Support
100128
If you encounter any issues, have suggestions, or need support, please feel free to [open an issue](https://github.com/salbert11/pinescript/issues) in the GitHub repository.
101129

130+
---
131+
102132
## License
103133
This extension is released under the [MIT License](./LICENSE.md).
104134

105135
---
106136

107-
*Version 3.1.5*
137+
*Version 3.2.0*

SNIPPET-LIST.md

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
*Version 3.1.3*
1+
*Version 3.2.0*
22
# Snippet's Prefix's
33

44
- [Snippet's Prefix's](#snippets-prefixs)
@@ -40,9 +40,9 @@
4040
|`close` |
4141
|`dayofmonth` |
4242
|`dayofweek` |
43-
|`dividends.future_amount` _**new!**_ |
44-
|`dividends.future_ex_date` _**new!**_ |
45-
|`dividends.future_pay_date` _**new!**_ |
43+
|`dividends.future_amount` |
44+
|`dividends.future_ex_date` |
45+
|`dividends.future_pay_date` |
4646
|`earnings.future_eps` |
4747
|`earnings.future_period_end_time` |
4848
|`earnings.future_revenue` |
@@ -63,6 +63,7 @@
6363
|`na` |
6464
|`ohlc4` |
6565
|`open` |
66+
|`polyline.all` _**new!**_ |
6667
|`second` |
6768
|`session.isfirstbar` |
6869
|`session.isfirstbar_regular` |
@@ -165,6 +166,7 @@
165166
|`array.indexof` |
166167
|`array.insert` |
167168
|`array.join` |
169+
|`array.last` |
168170
|`array.lastindexof` |
169171
|`array.max` |
170172
|`array.median` |
@@ -180,6 +182,7 @@
180182
|`array.new_linefill` |
181183
|`array.new_string` |
182184
|`array.new_table` |
185+
|`array.new` |
183186
|`array.percentile_linear_interpolation` |
184187
|`array.percentile_nearest_rank` |
185188
|`array.percentrank` |
@@ -192,6 +195,7 @@
192195
|`array.shift` |
193196
|`array.size` |
194197
|`array.slice` |
198+
|`array.some` |
195199
|`array.sort` |
196200
|`array.sort_indices` |
197201
|`array.standardize` |
@@ -284,7 +288,7 @@
284288
|`chart.point.copy` |
285289
|`chart.point.from_index` |
286290
|`chart.point.from_time` |
287-
|`chart.point.new` _**new!**_ |
291+
|`chart.point.new` |
288292
|`chart.point.now` |
289293
|`color.b` |
290294
|`color.from_gradient` |
@@ -422,6 +426,8 @@
422426
|`plotchar` |
423427
|`plotshape.block` |
424428
|`plotshape` |
429+
|`polyline.delete` _**new!**_ |
430+
|`polyline.new` _**new!**_ |
425431
|`request.currency_rate` |
426432
|`request.dividends` |
427433
|`request.earnings` |
@@ -471,6 +477,7 @@
471477
|`strategy.closedtrades.size` |
472478
|`strategy.convert_to_account` |
473479
|`strategy.convert_to_symbol` |
480+
|`strategy.default_entry_qty` |
474481
|`strategy.entry` |
475482
|`strategy.entry.block` |
476483
|`strategy.exit` |
@@ -578,7 +585,7 @@
578585
|`table.set_frame_width` |
579586
|`table.set_position` |
580587
|`ticker.heikinashi` |
581-
|`ticker.inherit` _**new!**_ |
588+
|`ticker.inherit` |
582589
|`ticker.kagi` |
583590
|`ticker.linebreak` |
584591
|`ticker.modify` |
@@ -589,7 +596,7 @@
589596
|`time` |
590597
|`time_close` |
591598
|`timeframe.change` |
592-
|`timeframe.from_seconds` _**new!**_ |
599+
|`timeframe.from_seconds` |
593600
|`timeframe.in_seconds` |
594601
|`timestamp` |
595602
|`timestamp.int` |

0 commit comments

Comments
 (0)