question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add vscode.workspace.fs.createWriteStream().

See original GitHub issue

(see #84175)

For the Python extension, we currently use node’s fs.createWriteStream() for a variety of purposes:

  1. downloading multi-MB files (and tracking progress)
    • calling into a third-party library that expects an fs.WriteStream
  2. writing generated data out to a file a chunk at a time
  3. writing log data out to a file, one entry at a time

For example:

@jrieken

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:19 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
connor4312commented, Dec 16, 2021

Why not both?

1reaction
jriekencommented, Nov 27, 2019

Let’s use this issue to track the open, close, read, write API. That quite low-level but the building block for stream.

https://github.com/microsoft/vscode/blob/ffe3749d5afb046f289d04f915d8d4ade47c028e/src/vs/vscode.proposed.d.ts#L152-L158

Read more comments on GitHub >

github_iconTop Results From Across the Web

Workspaces in Visual Studio Code
What is a VS Code "workspace"? A Visual Studio Code "workspace" is the collection of one or more folders that are opened in...
Read more >
fs.WriteStream.write JavaScript and Node.js code examples
Asynchronously writes data to a file, replacing the file if it already exists. createReadStream,; createWriteStream,; Stats.isDirectory,; statSync,; mkdirSync, ...
Read more >
VSCode create file with extension - javascript - Stack Overflow
createWriteStream ( resolve(__dirname, 'localization_config.dart') ); ... to be able to work with remote workspaces use vscode.workspace.fs.
Read more >
How to Create VSCode Extension for Dynamsoft Barcode ...
Create console, desktop GUI, web and mobile apps. Code snippet insertion. Add code snippets into corresponding programing language files. File ...
Read more >
Debugging Protractor Tests
Add “debugger” keyword to the test case that we want to debug. ... It will generate a launch.json file under your workspace's .vscode...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found