vscode-wordcount | Sample Word Count extension for VS Code
kandi X-RAY | vscode-wordcount Summary
kandi X-RAY | vscode-wordcount Summary
Sample Word Count extension for VS Code.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vscode-wordcount
vscode-wordcount Key Features
vscode-wordcount Examples and Code Snippets
Community Discussions
Trending Discussions on vscode-wordcount
QUESTION
Following this guide to writing simple extensions for VS code, and automated tests of these. I need to have some expected text in the current document for the test to run against.
I found this example of a script that opens an existing text file and uses it as input.
Instead, I'm trying to run tests against inputs and expected results held in the test code itself. That would seem to be more robust and self-contained.
Here's my attempt:
...ANSWER
Answered 2022-Feb-16 at 19:22Here's my simple solution using await
.. the trick was to call showTextDocument
. This pops open an editor window with the one-line text in. Copied from here.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vscode-wordcount
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page