vscode-test-utils
v1.0.0
Published
Test utilities for Visual Studio Code.
Readme
vscode-test-utils
Test utilities for Visual Studio Code.
API
import * as utils from 'vscode-test-utils`;closeAllFiles(): Promise<void>
Closes all files in the workspace.
createFile(contents: string, filename?: string): Promise<string>
Creates a file. If filename is not provided, a random file is written in the operating system's temporary directory.
openEmptyFile(): Promise<vscode.Uri>
Opens an empty file in the workspace.
openFile(path: string): Promise<vscode.Uri>
Opens a file in the workspace.
