Use vscode clipboard rather than clipboardy (#5117)

* remove clipboardy and use vscode's clipboard apis instead

* update lock
This commit is contained in:
Anthony Dresser
2019-04-18 16:34:24 -07:00
committed by GitHub
parent 4a71eb9b90
commit f33b95ee82
4 changed files with 1 additions and 113 deletions

View File

@@ -9,7 +9,6 @@ import * as vscode from 'vscode';
import * as azdata from 'azdata';
import * as fs from 'fs';
import * as fspath from 'path';
import * as clipboardy from 'clipboardy';
import * as nls from 'vscode-nls';
const localize = nls.loadMessageBundle();
@@ -378,7 +377,7 @@ export class CopyPathCommand extends Command {
let node = await getNode<HdfsFileSourceNode>(context, this.appContext);
if (node) {
let path = node.hdfsPath;
clipboardy.writeSync(path);
vscode.env.clipboard.writeText(path);
} else {
this.apiWrapper.showErrorMessage(LocalizedConstants.msgMissingNodeContext);
}