@vscode/sync-api-client
Advanced tools
Comparing version 0.8.1 to 0.9.0
@@ -34,5 +34,2 @@ import { URI } from 'vscode-uri'; | ||
} | ||
export interface Window { | ||
activeTextDocument: vscode.TextDocument | undefined; | ||
} | ||
export interface Workspace { | ||
@@ -46,3 +43,3 @@ workspaceFolders: vscode.WorkspaceFolder[]; | ||
} | ||
export declare type FileDescriptorDescription = { | ||
export type FileDescriptorDescription = { | ||
kind: 'fileSystem'; | ||
@@ -67,4 +64,15 @@ uri: URI; | ||
} | ||
export declare type ApiClientConnection = ClientConnection<Requests, ApiClientConnection.ReadyParams>; | ||
export declare class ApiClient { | ||
export type ApiClientConnection = ClientConnection<Requests, ApiClientConnection.ReadyParams>; | ||
export interface ApiShape { | ||
readonly timer: Timer; | ||
readonly process: Process; | ||
readonly byteSource: ByteSource; | ||
readonly byteSink: ByteSink; | ||
readonly console: Console; | ||
readonly tty: TTY; | ||
readonly vscode: { | ||
readonly workspace: Workspace; | ||
}; | ||
} | ||
export declare class ApiClient implements ApiShape { | ||
private readonly connection; | ||
@@ -71,0 +79,0 @@ private readonly encoder; |
@@ -224,2 +224,1 @@ "use strict"; | ||
exports.ApiClient = ApiClient; | ||
//# sourceMappingURL=apiClient.js.map |
@@ -24,2 +24,1 @@ "use strict"; | ||
__exportStar(require("./vscode"), exports); | ||
//# sourceMappingURL=main.js.map |
@@ -41,11 +41,2 @@ "use strict"; | ||
/** | ||
* Creates a new filesystem error. | ||
* | ||
* @param messageOrUri Message or uri. | ||
*/ | ||
constructor(code, messageOrUri) { | ||
super(typeof messageOrUri === 'string' ? messageOrUri : messageOrUri !== undefined ? messageOrUri.toString() : 'Unknown error'); | ||
this.code = code; | ||
} | ||
/** | ||
* Create an error to signal that a file or folder wasn't found. | ||
@@ -94,4 +85,12 @@ * @param messageOrUri Message or uri. | ||
} | ||
/** | ||
* Creates a new filesystem error. | ||
* | ||
* @param messageOrUri Message or uri. | ||
*/ | ||
constructor(code, messageOrUri) { | ||
super(typeof messageOrUri === 'string' ? messageOrUri : messageOrUri !== undefined ? messageOrUri.toString() : 'Unknown error'); | ||
this.code = code; | ||
} | ||
} | ||
exports.FileSystemError = FileSystemError; | ||
//# sourceMappingURL=vscode.js.map |
{ | ||
"name": "@vscode/sync-api-client", | ||
"version": "0.8.1", | ||
"version": "0.9.0", | ||
"description": "A client that calls VS Code API from a non extension host worker in sync fashion.", | ||
@@ -26,4 +26,4 @@ "engines": { | ||
"dependencies": { | ||
"vscode-uri": "^3.0.6", | ||
"@vscode/sync-api-common": "0.8.1" | ||
"vscode-uri": "^3.0.7", | ||
"@vscode/sync-api-common": "0.9.0" | ||
}, | ||
@@ -34,9 +34,11 @@ "devDependencies": { | ||
"prepublishOnly": "echo \"⛔ Can only publish from a secure pipeline ⛔\" && node ../build/npm/fail", | ||
"prepack": "git clean -xfd . && npm install && npm run all", | ||
"prepack": "npm run all:publish", | ||
"compile": "node ../node_modules/typescript/lib/tsc.js -b ./tsconfig.json", | ||
"compile:publish": "node ../node_modules/typescript/lib/tsc.js -b ./tsconfig.publish.json", | ||
"watch": "node ../node_modules/typescript/lib/tsc.js -b ./tsconfig.watch.json -w", | ||
"clean": "node ../node_modules/rimraf/bin.js lib && node ../node_modules/rimraf/bin.js dist", | ||
"lint": "node ../node_modules/eslint/bin/eslint.js --ext ts src", | ||
"all": "npm run clean && npm run compile && npm run lint" | ||
"all": "npm run clean && npm run compile && npm run lint", | ||
"all:publish": "git clean -xfd . && npm install && npm run compile:publish && npm run lint" | ||
} | ||
} |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
568
0
28989
10
+ Added@vscode/sync-api-common@0.9.0(transitive)
- Removed@vscode/sync-api-common@0.8.1(transitive)
Updatedvscode-uri@^3.0.7