@halcyontech/vscode-ibmi-types 2.6.1 → 2.6.3

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.
@@ -1,6 +1,7 @@
1
1
  import * as vscode from 'vscode';
2
2
  import { DeploymentMethod } from '../typings';
3
3
  export declare type SourceDateMode = "edit" | "diff";
4
+ export declare type DefaultOpenMode = "browse" | "edit";
4
5
  export declare function onCodeForIBMiConfigurationChange<T>(props: string | string[], todo: (value: vscode.ConfigurationChangeEvent) => void): vscode.Disposable;
5
6
  export declare namespace GlobalConfiguration {
6
7
  function get<T>(key: string): T | undefined;
@@ -37,6 +38,7 @@ export declare namespace ConnectionConfiguration {
37
38
  readOnlyMode: boolean;
38
39
  quickConnect: boolean;
39
40
  defaultDeploymentMethod: DeploymentMethod | '';
41
+ protectedPaths: string[];
40
42
  [name: string]: any;
41
43
  }
42
44
  interface ObjectFilters {
@@ -113,5 +113,7 @@ export default class IBMiContent {
113
113
  name: string;
114
114
  type: string;
115
115
  }, ...authorities: Authority[]): Promise<boolean>;
116
+ testStreamFile(path: string, right: "r" | "w" | "x"): Promise<boolean>;
117
+ isProtectedPath(path: string): boolean;
116
118
  }
117
119
  export {};
package/api/Storage.d.ts CHANGED
@@ -78,5 +78,8 @@ export declare class ConnectionStorage extends Storage {
78
78
  getDebugCommands(): DebugCommands;
79
79
  setDebugCommands(existingCommands: DebugCommands): Promise<void>;
80
80
  getWorkspaceDeployPath(workspaceFolder: vscode.WorkspaceFolder): string;
81
+ getRecentlyOpenedFiles(): string[];
82
+ setRecentlyOpenedFiles(recentlyOpenedFiles: string[]): Promise<void>;
83
+ clearRecentlyOpenedFiles(): Promise<void>;
81
84
  }
82
85
  export {};
package/api/Tools.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import vscode from "vscode";
2
+ import { IBMiMessages } from '../typings';
2
3
  import { API } from "./import/git";
3
4
  export declare namespace Tools {
4
5
  class SqlError extends Error {
@@ -41,4 +42,5 @@ export declare namespace Tools {
41
42
  function md5Hash(file: vscode.Uri): string;
42
43
  function capitalize(text: string): string;
43
44
  function sanitizeLibraryNames(libraries: string[]): string[];
45
+ function parseMessages(output: string): IBMiMessages;
44
46
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halcyontech/vscode-ibmi-types",
3
- "version": "2.6.1",
3
+ "version": "2.6.3",
4
4
  "description": "Types for vscode-ibmi",
5
5
  "typings": "./typings.d.ts",
6
6
  "scripts": {
package/typings.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import { Ignore } from 'ignore';
3
- import { ProviderResult, TreeItem, TreeItemCollapsibleState, WorkspaceFolder } from "vscode";
3
+ import { ProviderResult, Range, TreeItem, TreeItemCollapsibleState, WorkspaceFolder } from "vscode";
4
4
  import { ConnectionConfiguration } from './api/Configuration';
5
5
  import { CustomUI } from "./api/CustomUI";
6
6
  import Instance from "./api/Instance";
@@ -162,3 +162,15 @@ export interface SourcePhysicalFileItem extends FilteredItem, WithPath {
162
162
  export interface MemberItem extends FilteredItem, WithPath {
163
163
  member: IBMiMember;
164
164
  }
165
+ export declare type IBMiMessage = {
166
+ id: string;
167
+ text: string;
168
+ };
169
+ export declare type IBMiMessages = {
170
+ messages: IBMiMessage[];
171
+ findId(id: string): IBMiMessage | undefined;
172
+ };
173
+ export declare const IFS_BROWSER_MIMETYPE = "application/vnd.code.tree.ifsbrowser";
174
+ export declare type OpenEditableOptions = QsysFsOptions & {
175
+ position?: Range;
176
+ };