Skip to content

Commit 7b44d44

Browse files
Merge pull request #438 from KxSystems/v1.8.0-dev-to-main
V1.8.0 dev to main
2 parents 7a8a60c + 35092eb commit 7b44d44

File tree

115 files changed

+3438
-1388
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

115 files changed

+3438
-1388
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,23 @@
22

33
All notable changes to the **kdb VS Code extension** are documented in this file.
44

5+
# v1.8.0
6+
7+
### Enhancements
8+
9+
- Added the ability to add multiple labels to a single connection
10+
- Show KDB+ process explorer item content when clicked
11+
- Added the ability to export and import connections
12+
- All the files in the workspace are considered when using language server features
13+
- Show call hierarchy is implemented in language server
14+
- Query history shows an ellipsis of the query execution text to the available line length
15+
- Added limit option to datasource for 1.11 + versions of Insights Enterprise connections
16+
17+
### Fixes
18+
19+
- Fixed KDB results columns resizing back to default sizes every time a datasource was run
20+
- Fixed KDB results for large data sets
21+
522
# v1.7.0
623

724
### Enhancements

README.md

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,34 @@ When editing a **Insights** connection, you can edit the following properties:
282282

283283
![Edit Insights connection](https://github.com/KxSystems/kx-vscode/blob/main/img/edit-insights-conn-form.png?raw=true)
284284

285+
### Import/Export Connection Configuration
286+
287+
The **Import/Export Connection** config allows you to import and export connections in JSON format from the VSCode IDE without having to create them manually.
288+
289+
![Import Export](https://github.com/KxSystems/kx-vscode/blob/main/img/impex.png?raw=true)
290+
291+
To import a connection:
292+
293+
1. Open the Command Palette (Ctrl+Shift+P) and type the command to open the connection configuration for the installed database extension **OR** click the three dots (…) next to the Refresh button in the Connections window.
294+
2. Select **Import Connections**.
295+
3. Navigate to the location of the configuration file, such as a JSON file that contains the connection details, and select it.
296+
4. Review the imported connection for accuracy.
297+
5. Confirm the import.
298+
299+
To connect to the database, select the newly imported connection from the list of available connections and initiate the connection to the database. You can run a simple query or command to verify the connection is successful.
300+
301+
Note: If the imported connection has the same name as an existing connection, you will see a notification in the bottom right corner prompting you to either duplicate, overwrite, or cancel the import.
302+
303+
To export a connection:
304+
305+
1. Open the Command Palette (Ctrl+Shift+P) and type the command to manage connection configurations for the installed database extension **OR** click the three dots (…) next to the Refresh button in the Connections window.
306+
2. Select **Export Connections**.
307+
3. Choose the connection(s) you want to export.
308+
4. Specify the format and location for the exported configuration file. For example, JSON, YAML.
309+
5. Confirm the export action.
310+
311+
To verify the export is successful navigate to the saved location and open the configuration file to check its contents.
312+
285313
## Connection Labels
286314

287315
Connection Labels allow you to categorize and organize your connections by assigning them distinct names and colors, making it easier to manage and locate specific connections within the application.
@@ -427,13 +455,14 @@ To create a data source and run it against a specific connection:
427455
1. Ensure you have at least one folder open in VS Code.
428456
1. In the **DATASOURCES** view, click **+** and specify the parameters defined in the following table:
429457

430-
| Property | Description |
431-
| ----------------------- | ---------------------------------------------------------------- |
432-
| **Connection** | Select a Connection from the **Connection** dropdown. |
433-
| **Select API** | Choose **getData** from the **Select API** dropdown. |
434-
| **Table** | Choose the table you wish to query from the **Tables** dropdown. |
435-
| **Start Time/End Time** | Select the **Start Time** and **End Time** for the query. |
436-
| Additional Parameters | You can choose from the additional parameters as required. |
458+
| Property | Description |
459+
| ----------------------- | ------------------------------------------------------------------------------------------------------------------- |
460+
| **Connection** | Select a Connection from the **Connection** dropdown. |
461+
| **Select API** | Choose **getData** from the **Select API** dropdown. |
462+
| **Table** | Choose the table you wish to query from the **Tables** dropdown. |
463+
| **Start Time/End Time** | Select the **Start Time** and **End Time** for the query. |
464+
| **Row Limit** | Add a limit to the number of queries executed to reduce the number of Out of Memory (OOM) issues or failed queries. |
465+
| Additional Parameters | You can choose from the additional parameters as required. |
437466

438467
1. Click **Save** to store the settings you have chosen, for reuse later. When you save a data source; query parameters and the connection details are stored. The data source icon is green if it is associated with a connection and grey if there is no association.
439468

@@ -586,9 +615,20 @@ To update kdb VS Code settings, search for **kdb** from _Preferences_ > _Setting
586615
| **Hide subscription to newsletter after first install** | yes/no; default no |
587616
| **Insights Enterprise Connections for Explorer** | [edit JSON settings](#insights-enterprise-connections-for-explorer) |
588617
| **Linting** | Enable linting for q and quke files |
618+
| **Refactoring** | Choose refactoring scope |
589619
| **QHOME directory for q runtime** | Display location path of q installation |
590620
| **Servers** | [edit JSON settings](#servers) |
591621

622+
### Refactoring
623+
624+
By default, refactorings like renaming are applied to all files in the workspace. You can preview the changes before applying them and select specific files to apply the refactoring by pressing the **ctrl** or **command** key before executing the action.
625+
626+
![Preview](https://github.com/KxSystems/kx-vscode/blob/main/img/preview.png?raw=true)
627+
628+
If you only need to apply the refactorings to the currently opened files, you can select **Window** instead of **Workspace** for the refactoring option:
629+
630+
![Refactoring](https://github.com/KxSystems/kx-vscode/blob/main/img/refactoring.png?raw=true)
631+
592632
### kdb Insights Enterprise Connections for Explorer
593633

594634
```JSON

img/impex.png

44.6 KB
Loading

img/outline.png

16.8 KB
Loading

img/preview.png

57.4 KB
Loading

img/refactoring.png

30.6 KB
Loading

0 commit comments

Comments
 (0)