@halcyontech/vscode-ibmi-types 2.17.2 → 2.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api/Tools.d.ts CHANGED
@@ -51,7 +51,7 @@ export declare namespace Tools {
51
51
  function fixSQL(statement: string, removeComments?: boolean): string;
52
52
  function fileToPath(file: EditorPath): string;
53
53
  function fixWindowsPath(path: string): string;
54
- function assumeType(str: string): string | number;
54
+ function assumeType(str: string, col?: string): string | number;
55
55
  /**
56
56
  * Converts a timestamp from the attr command (in the form `Thu Dec 21 21:47:02 2023`) into a Date object
57
57
  * @param timestamp an attr timestamp string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halcyontech/vscode-ibmi-types",
3
- "version": "2.17.2",
3
+ "version": "2.18.0",
4
4
  "description": "Types for vscode-ibmi",
5
5
  "typings": "./typings.d.ts",
6
6
  "scripts": {
package/ui/Tools.d.ts CHANGED
@@ -23,6 +23,7 @@ export declare namespace VscodeTools {
23
23
  */
24
24
  function findUriTabs(uriToFind: vscode.Uri | string): vscode.Tab[];
25
25
  function generateTooltipHtmlTable(header: string, rows: Record<string, any>): string;
26
+ function escapeHtml(html: string): string;
26
27
  /**
27
28
  * Runs a function while a context value is set to true.
28
29
  *
package/ui/actions.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import vscode, { WorkspaceFolder } from 'vscode';
2
+ import IBMi from '../api/IBMi';
2
3
  import Instance from '../Instance';
3
4
  import { Action, DeploymentMethod } from '../typings';
4
5
  import { BrowserItem } from './types';
@@ -14,7 +15,7 @@ export declare type ActionTarget = {
14
15
  output: string[];
15
16
  };
16
17
  export declare function registerActionTools(context: vscode.ExtensionContext): void;
17
- export declare function uriToActionTarget(uri: vscode.Uri, workspaceFolder?: WorkspaceFolder): ActionTarget;
18
+ export declare function uriToActionTarget(uri: vscode.Uri, workspaceFolder?: WorkspaceFolder, ibmi?: IBMi): ActionTarget;
18
19
  export declare function runAction(instance: Instance, uris: vscode.Uri | vscode.Uri[], customAction?: Action, method?: DeploymentMethod, browserItems?: BrowserItem[], workspaceFolder?: WorkspaceFolder): Promise<boolean>;
19
20
  export declare type AvailableAction = {
20
21
  label: string;