New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

vscode-zap

Package Overview
Dependencies
Maintainers
7
Versions
107
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode-zap - npm Package Compare versions

Comparing version 0.0.68 to 0.0.70

out/src/provider.d.ts

2

out/src/status.d.ts

@@ -5,3 +5,3 @@ import * as vscode from "vscode";

import { IEnvironment } from "./environment";
export declare const outputChannel: any;
export declare const outputChannel: vscode.OutputChannel;
export declare let itemForE2ETestOnly: vscode.StatusBarItem;

@@ -8,0 +8,0 @@ export declare enum Status {

import * as vscode from "vscode";
export declare function activate(context: vscode.ExtensionContext): void;
export declare function openInBrowser(uri: vscode.Uri, sel: vscode.Selection | null, trackingEventName: "OpenFile" | "OpenAtCursor"): Promise<any>;
export declare function openWorkspaceInBrowser(): Promise<any>;
export declare function openInBrowser(uri: vscode.Uri, sel: vscode.Selection | null, trackingEventName: "OpenFile" | "OpenAtCursor"): Promise<boolean>;
export declare function openWorkspaceInBrowser(): Promise<void>;

@@ -15,3 +15,2 @@ import * as vscode from "vscode";

private suppressRecordEdits;
private fileTreeService;
private pendingWorkspaceFileEdits;

@@ -18,0 +17,0 @@ private outputChannel;

@@ -15,3 +15,2 @@ "use strict";

const op_1 = require("./op");
const fileTreeService_1 = require("./fileTreeService");
class Workspace {

@@ -39,4 +38,2 @@ constructor(environment) {

this.toDispose.push(this.outputChannel);
this.fileTreeService = new fileTreeService_1.FileTreeService();
this.toDispose.push(this.fileTreeService);
}

@@ -183,4 +180,12 @@ onOp(listener) {

}
if (op.create || op.delete) {
this.fileTreeService.apply(op);
if (!this.environment.automaticallyApplyingFileSystemChanges) {
if (op.create) {
for (const path of op.create) {
const rootURI = this.environment.rootURI;
const uri = rootURI.with({ fragment: workspace_1.stripFileOrBufferPathPrefix(path), scheme: "zap" });
yield vscode.workspace.openTextDocument(uri);
}
}
if (op.delete) {
}
}

@@ -363,7 +368,3 @@ // For zap, make sure the file we apply edits to is a file based on an

yield this.apply(composed);
this.fileTreeService.reset(composed);
}
else {
this.fileTreeService.reset();
}
}

@@ -370,0 +371,0 @@ catch (err) {

@@ -5,3 +5,3 @@ {

"description": "Real-time code synchronization",
"version": "0.0.68",
"version": "0.0.70",
"publisher": "sqs",

@@ -42,3 +42,3 @@ "preview": true,

"dependencies": {
"libzap": "^0.0.68",
"libzap": "^0.0.70",
"open": "^0.0.5",

@@ -45,0 +45,0 @@ "vscode-jsonrpc": "3.0.1-alpha.7"

@@ -10,3 +10,2 @@ import * as vscode from "vscode";

import { IEnvironment } from "./environment";
import { FileTreeService } from "./fileTreeService";

@@ -23,3 +22,2 @@ export class Workspace implements HandlerWorkspace {

private suppressRecordEdits: Map<string, vscode.TextEdit[]> = new Map<string, vscode.TextEdit[]>();
private fileTreeService: FileTreeService;

@@ -42,4 +40,2 @@ // Edits can appear before they will be detected by the file system since vscode.workspace.textDocuments returns files

this.toDispose.push(this.outputChannel);
this.fileTreeService = new FileTreeService();
this.toDispose.push(this.fileTreeService);
}

@@ -200,4 +196,13 @@

if (op.create || op.delete) {
this.fileTreeService.apply(op);
if (!this.environment.automaticallyApplyingFileSystemChanges) {
if (op.create) {
for (const path of op.create) {
const rootURI = this.environment.rootURI!;
const uri = rootURI.with({fragment: stripFileOrBufferPathPrefix(path), scheme: "zap"});
await vscode.workspace.openTextDocument(uri);
}
}
if (op.delete) {
// hello
}
}

@@ -398,5 +403,2 @@

await this.apply(composed);
this.fileTreeService.reset(composed);
} else {
this.fileTreeService.reset();
}

@@ -403,0 +405,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc