Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
72 changes: 72 additions & 0 deletions vscode-extension/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
{
"root": true,
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2022,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"rules": {
"@typescript-eslint/naming-convention": [
"warn",
{
"selector": "default",
"format": ["camelCase"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allow"
},
{
"selector": "variable",
"format": ["camelCase", "UPPER_CASE"],
"leadingUnderscore": "allow",
"trailingUnderscore": "allow"
},
{
"selector": "typeLike",
"format": ["PascalCase"]
},
{
"selector": "enumMember",
"format": ["PascalCase"]
}
],
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"@typescript-eslint/explicit-function-return-type": [
"warn",
{
"allowExpressions": true,
"allowTypedFunctionExpressions": true
}
],
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/no-misused-promises": "error",
"@typescript-eslint/await-thenable": "error",
"@typescript-eslint/require-await": "warn",
"curly": "warn",
"eqeqeq": "warn",
"no-throw-literal": "warn",
"semi": "warn",
"quotes": ["warn", "single", { "avoidEscape": true }],
"no-console": ["warn", { "allow": ["warn", "error"] }]
},
"ignorePatterns": [
"dist",
"node_modules",
"**/*.d.ts"
]
}
40 changes: 40 additions & 0 deletions vscode-extension/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Compiled output
dist/
*.js
*.js.map
*.d.ts
!dist/**/*.d.ts

# Dependencies
node_modules/

# IDE
.vscode/
.vscode-test/
*.code-workspace

# Build artifacts
*.vsix

# Logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# OS
.DS_Store
Thumbs.db

# Temp files
*.tmp
*.temp
.eslintcache

# Test coverage
coverage/
.nyc_output/

# Package manager
package-lock.json
yarn.lock
14 changes: 14 additions & 0 deletions vscode-extension/.vscodeignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
.vscode/**
.vscode-test/**
src/**
.gitignore
.yarnrc
vsc-extension-quickstart.md
**/tsconfig.json
**/.eslintrc.json
**/*.map
**/*.ts
!dist/**/*.d.ts
node_modules/**
*.vsix
.eslintcache
26 changes: 26 additions & 0 deletions vscode-extension/media/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions vscode-extension/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"name": "light-query-profiler",
"displayName": "Light Query Profiler",
"description": "SQL Server and Azure SQL Database query profiler for VS Code",
"version": "1.0.0",
"publisher": "light-query-profiler",
"icon": "media/icon.svg",
"engines": {
"vscode": "^1.85.0"
},
"categories": [
"Other",
"Debuggers"
],
"keywords": [
"sql",
"sqlserver",
"azure",
"profiler",
"query",
"performance",
"database"
],
"activationEvents": [
"onCommand:lightQueryProfiler.showProfiler"
],
"main": "./dist/extension.js",
"contributes": {
"commands": [
{
"command": "lightQueryProfiler.showProfiler",
"title": "Show SQL Profiler",
"category": "Light Query Profiler",
"icon": "$(database)"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "npm run compile && npm run lint",
"lint": "eslint src --ext ts",
"test": "node ./dist/test/runTest.js",
"package": "vsce package"
},
"devDependencies": {
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.10",
"@types/node": "^20.10.0",
"@types/vscode": "^1.85.0",
"@typescript-eslint/eslint-plugin": "^6.15.0",
"@typescript-eslint/parser": "^6.15.0",
"@vscode/test-electron": "^2.3.8",
"eslint": "^8.56.0",
"glob": "^13.0.6",
"mocha": "^11.7.5",
"typescript": "^5.3.3",
"vsce": "^2.15.0"
},
"dependencies": {
"vscode-jsonrpc": "^8.2.0"
},
"repository": {
"type": "git",
"url": "https://github.com/your-repo/light-query-profiler"
},
"license": "MIT"
}
Loading
Loading