-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathextension.js
More file actions
45 lines (42 loc) · 1.14 KB
/
extension.js
File metadata and controls
45 lines (42 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
const vscode = require("vscode");
const r = require("./src/paste-r.js");
const py = require("./src/paste-python.js");
const jl = require("./src/paste-julia.js");
const js = require("./src/paste-js.js");
const md = require("./src/paste-markdown.js");
const sql = require("./src/paste-sql.js");
const def = require("./src/paste-default.js");
function activate(context) {
context.subscriptions.push(
vscode.commands.registerCommand(
"pastum.Rdataframe",
r.clipboardToRDataFrame
),
vscode.commands.registerCommand(
"pastum.Pydataframe",
py.clipboardToPyDataFrame
),
vscode.commands.registerCommand(
"pastum.Jldataframe",
jl.clipboardToJuliaDataFrame
),
vscode.commands.registerCommand(
"pastum.JSdataframe",
js.clipboardToJSDataFrame
),
vscode.commands.registerCommand(
"pastum.Markdown",
md.clipboardToMarkdown
),
vscode.commands.registerCommand(
"pastum.Sql",
sql.clipboardToSql
),
vscode.commands.registerCommand("pastum.Defaultdataframe", def.pasteDefault)
);
}
function deactivate() {}
module.exports = {
activate,
deactivate,
};