-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
147 lines (147 loc) · 5.28 KB
/
package.json
File metadata and controls
147 lines (147 loc) · 5.28 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
"name": "duckdb-r-editor",
"displayName": "DuckDB R Editor (Positron)",
"description": "Positron-exclusive SQL editor for R. Queries your active R DuckDB connection for schema - no file locking! 900+ DuckDB functions with intelligent autocomplete.",
"version": "0.8.1",
"publisher": "belian-earth",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/h-a-graham/duckdb-r-editor.git"
},
"bugs": {
"url": "https://github.com/h-a-graham/duckdb-r-editor/issues"
},
"homepage": "https://github.com/h-a-graham/duckdb-r-editor#readme",
"engines": {
"vscode": "^1.80.0",
"positron": ">=2024.1.0"
},
"categories": [
"Programming Languages",
"Other"
],
"keywords": [
"R",
"SQL",
"DuckDB",
"Positron",
"autocomplete",
"database",
"data-science"
],
"activationEvents": [
"onLanguage:r"
],
"main": "./dist/extension.js",
"contributes": {
"configuration": {
"title": "DuckDB R Editor",
"properties": {
"duckdb-r-editor.enableAutoComplete": {
"type": "boolean",
"default": true,
"description": "Enable DuckDB SQL autocomplete in R strings"
},
"duckdb-r-editor.enableSQLHighlighting": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable SQL keyword and function highlighting in R strings:\n- SQL keyword highlighting (SELECT, FROM, WHERE, etc.)\n- SQL function highlighting (COUNT, SUM, DATE_TRUNC, etc.)\n- Full support for Air-formatted multi-line strings\n\n**Note:** Requires window reload after changing. Use `Ctrl+Shift+P` (or `Cmd+Shift+P` on Mac) and run **Developer: Reload Window**.",
"scope": "window"
},
"duckdb-r-editor.enableSQLBackgroundColor": {
"type": "boolean",
"default": true,
"markdownDescription": "Enable background color highlighting for SQL strings in R code. Adds a subtle background color to visually distinguish SQL strings from regular R code.\n\n**Note:** Requires window reload after changing. Use `Ctrl+Shift+P` (or `Cmd+Shift+P` on Mac) and run **Developer: Reload Window**.",
"scope": "window"
},
"duckdb-r-editor.autoRefreshSchema": {
"type": "boolean",
"default": true,
"description": "Automatically refresh schema when R code references the connection object. Keeps autocomplete in sync with database changes without manual refresh commands."
},
"duckdb-r-editor.sqlFormattingStyle": {
"type": "string",
"enum": [
"standard",
"tabularLeft",
"tabularRight"
],
"default": "standard",
"description": "SQL formatting style. 'standard': traditional formatting, 'tabularLeft': align keywords to the left, 'tabularRight': align keywords to the right.",
"enumDescriptions": [
"Traditional SQL formatting with standard indentation",
"Tabular format with keywords aligned to the left",
"Tabular format with keywords aligned to the right"
]
},
"duckdb-r-editor.sqlKeywordCase": {
"type": "string",
"enum": [
"preserve",
"upper",
"lower"
],
"default": "preserve",
"description": "Transform SQL keyword casing. 'preserve': keep original case, 'upper': convert to UPPERCASE, 'lower': convert to lowercase.",
"enumDescriptions": [
"Keep original keyword casing",
"Convert keywords to UPPERCASE",
"Convert keywords to lowercase"
]
}
}
},
"commands": [
{
"command": "duckdb-r-editor.connectDatabase",
"title": "DuckDB R Editor: Connect to DuckDB Database"
},
{
"command": "duckdb-r-editor.disconnectDatabase",
"title": "DuckDB R Editor: Disconnect from Database"
},
{
"command": "duckdb-r-editor.refreshSchema",
"title": "DuckDB R Editor: Refresh DuckDB Schema"
},
{
"command": "duckdb-r-editor.formatSQL",
"title": "DuckDB R Editor: Format SQL in R String"
},
{
"command": "duckdb-r-editor.debugSQLDetection",
"title": "DuckDB R Editor: Debug SQL Detection at Cursor"
}
]
},
"scripts": {
"vscode:prepublish": "npm run package",
"compile": "npm run check-types && node esbuild.js",
"watch": "npm-run-all -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"package": "npm run check-types && node esbuild.js --production",
"check-types": "tsc --noEmit",
"pretest": "npm run compile",
"lint": "eslint src --ext ts",
"vsce:package": "vsce package",
"generate-functions": "node scripts/generate-functions.mjs"
},
"devDependencies": {
"@types/node": "^20.0.0",
"@types/vscode": "^1.80.0",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"@vscode/vsce": "^2.19.0",
"esbuild": "^0.27.2",
"eslint": "^8.0.0",
"npm-run-all": "^4.1.5",
"duckdb": "^0.10.0",
"typescript": "^5.0.0"
},
"dependencies": {
"@posit-dev/positron": "^0.2.2",
"sql-formatter": "^15.7.0"
}
}