Skip to content

Commit fa27f31

Browse files
authored
Merge pull request #9 from dzsquared/context-menus
Context menus
2 parents 41669c6 + fbba666 commit fa27f31

21 files changed

Lines changed: 4555 additions & 4416 deletions

.gitignore

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
out
2-
node_modules
3-
.vscode-test/
4-
*.vsix
1+
out
2+
node_modules
3+
.vscode-test/
4+
*.vsix

.vscode/launch.json

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
1-
// A launch configuration that compiles the extension and then opens it inside a new window
2-
// Use IntelliSense to learn about possible attributes.
3-
// Hover to view descriptions of existing attributes.
4-
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5-
6-
// To debug the extension:
7-
// 1. please install the "SQL Operations Studio Debug" extension into VSCode
8-
// 2. Ensure sqlops is added to your path:
9-
// - open SQL Operations Studio
10-
// - run the command "Install 'sqlops' command in PATH"
11-
{
12-
"version": "0.2.0",
13-
"configurations": [
14-
{
15-
"name": "Extension",
16-
"type": "sqlopsExtensionHost",
17-
"request": "launch",
18-
"runtimeExecutable": "azuredatastudio",
19-
"args": [
20-
"--extensionDevelopmentPath=${workspaceFolder}"
21-
],
22-
"outFiles": [
23-
"${workspaceFolder}/out/**/*.js"
24-
],
25-
"preLaunchTask": "npm: watch"
26-
},
27-
{
28-
"name": "Extension Tests",
29-
"type": "sqlopsExtensionHost",
30-
"request": "launch",
31-
"runtimeExecutable": "azuredatastudio",
32-
"args": [
33-
"--extensionDevelopmentPath=${workspaceFolder}",
34-
"--extensionTestsPath=${workspaceFolder}/out/test"
35-
],
36-
"outFiles": [
37-
"${workspaceFolder}/out/test/**/*.js"
38-
],
39-
"preLaunchTask": "npm: watch"
40-
}
41-
]
42-
}
1+
// A launch configuration that compiles the extension and then opens it inside a new window
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
6+
// To debug the extension:
7+
// 1. please install the "SQL Operations Studio Debug" extension into VSCode
8+
// 2. Ensure sqlops is added to your path:
9+
// - open SQL Operations Studio
10+
// - run the command "Install 'sqlops' command in PATH"
11+
{
12+
"version": "0.2.0",
13+
"configurations": [
14+
{
15+
"name": "Extension",
16+
"type": "sqlopsExtensionHost",
17+
"request": "launch",
18+
"runtimeExecutable": "azuredatastudio",
19+
"args": [
20+
"--extensionDevelopmentPath=${workspaceFolder}"
21+
],
22+
"outFiles": [
23+
"${workspaceFolder}/out/**/*.js"
24+
],
25+
"preLaunchTask": "npm: watch"
26+
},
27+
{
28+
"name": "Extension Tests",
29+
"type": "sqlopsExtensionHost",
30+
"request": "launch",
31+
"runtimeExecutable": "azuredatastudio",
32+
"args": [
33+
"--extensionDevelopmentPath=${workspaceFolder}",
34+
"--extensionTestsPath=${workspaceFolder}/out/test"
35+
],
36+
"outFiles": [
37+
"${workspaceFolder}/out/test/**/*.js"
38+
],
39+
"preLaunchTask": "npm: watch"
40+
}
41+
]
42+
}

.vscode/settings.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
// Place your settings in this file to overwrite default and user settings.
2-
{
3-
"files.exclude": {
4-
"out": false // set this to true to hide the "out" folder with the compiled JS files
5-
},
6-
"search.exclude": {
7-
"out": true // set this to false to include "out" folder in search results
8-
},
9-
"terminal.integrated.env.osx": {
10-
"SFDX_SET_CLIENT_IDS": "sfdx-vscode"
11-
},
12-
"terminal.integrated.env.linux": {
13-
"SFDX_SET_CLIENT_IDS": "sfdx-vscode"
14-
},
15-
"terminal.integrated.env.windows": {
16-
"SFDX_SET_CLIENT_IDS": "sfdx-vscode"
17-
}
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"files.exclude": {
4+
"out": false // set this to true to hide the "out" folder with the compiled JS files
5+
},
6+
"search.exclude": {
7+
"out": true // set this to false to include "out" folder in search results
8+
},
9+
"terminal.integrated.env.osx": {
10+
"SFDX_SET_CLIENT_IDS": "sfdx-vscode"
11+
},
12+
"terminal.integrated.env.linux": {
13+
"SFDX_SET_CLIENT_IDS": "sfdx-vscode"
14+
},
15+
"terminal.integrated.env.windows": {
16+
"SFDX_SET_CLIENT_IDS": "sfdx-vscode"
17+
}
1818
}

.vscode/tasks.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
// See https://go.microsoft.com/fwlink/?LinkId=733558
2-
// for the documentation about the tasks.json format
3-
{
4-
"version": "2.0.0",
5-
"tasks": [
6-
{
7-
"type": "npm",
8-
"script": "watch",
9-
"problemMatcher": "$tsc-watch",
10-
"isBackground": true,
11-
"presentation": {
12-
"reveal": "never"
13-
},
14-
"group": {
15-
"kind": "build",
16-
"isDefault": true
17-
}
18-
}
19-
]
1+
// See https://go.microsoft.com/fwlink/?LinkId=733558
2+
// for the documentation about the tasks.json format
3+
{
4+
"version": "2.0.0",
5+
"tasks": [
6+
{
7+
"type": "npm",
8+
"script": "watch",
9+
"problemMatcher": "$tsc-watch",
10+
"isBackground": true,
11+
"presentation": {
12+
"reveal": "never"
13+
},
14+
"group": {
15+
"kind": "build",
16+
"isDefault": true
17+
}
18+
}
19+
]
2020
}

.vscodeignore

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
.vscode/**
2-
.vscode-test/**
3-
out/test/**
4-
out/**/*.map
5-
src/**
6-
.gitignore
7-
tsconfig.json
8-
vsc-extension-quickstart.md
1+
.vscode/**
2+
.vscode-test/**
3+
out/test/**
4+
out/**/*.map
5+
src/**
6+
.gitignore
7+
tsconfig.json
8+
vsc-extension-quickstart.md
99
tslint.json

CHANGELOG.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
# Change Log
2-
All notable changes to the "First Responder Kit" extension will be documented in this file.
3-
4-
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
5-
6-
## 0.1.0
1+
# Change Log
2+
All notable changes to the "First Responder Kit" extension will be documented in this file.
3+
4+
Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.
5+
6+
## 0.1.0
77
- Initial release

LICENSE

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
MIT License
2-
3-
Copyright (c) 2018 DrewSK
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy
6-
of this software and associated documentation files (the "Software"), to deal
7-
in the Software without restriction, including without limitation the rights
8-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9-
copies of the Software, and to permit persons to whom the Software is
10-
furnished to do so, subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21-
SOFTWARE.
1+
MIT License
2+
3+
Copyright (c) 2018 DrewSK
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
1-
# Azure Data Studio - First Responder Kit Extension
2-
3-
This extension provides immediate access to the current First Responder Kit scripts and introductory execution suggestions. (All credit due to http://firstresponderkit.org/)
4-
5-
## Installation
6-
The current release is available to [download as a .vsix file](https://github.com/dzsquared/sqlops-firstresponderkit/releases/download/0.3.0/firstresponderkit-0.3.0.vsix) and can be installed by opening the command palette (`ctrl/command+shift+p`) and selecting `Extensions: Install from VSIX...`
7-
8-
9-
## Features
10-
11-
### Import
12-
Import a script from the First Responder Kit to a new editor by opening the command palette (`ctrl/command+shift+p`) and selecting an option under `First Responder Kit: Import <some script>`
13-
14-
15-
![Import a Script](https://raw.githubusercontent.com/dzsquared/sqlops-firstresponderkit/master/images/frk_import.gif)
16-
17-
### Run
18-
Already have the current scripts loaded to the database? Great! Take the shortcut to execution by opening the command palette (`ctrl/command+shift+p`) and selecting an option under `First Responder Kit: Run <some script>`
19-
20-
![Execute](https://raw.githubusercontent.com/dzsquared/sqlops-firstresponderkit/master/images/frk_run.gif)
21-
22-
## Requirements
23-
24-
Internet connectivity is required for any of the "Import" commands, which connect to GitHub to fetch recent versions of the scripts. A GitHub account is NOT required.
25-
26-
27-
-----------------------------------------------------------------------------------------------------------
28-
29-
## Known Issues
30-
31-
None yet.
32-
33-
## Unknown Issues
34-
Can be raised here: https://github.com/dzsquared/sqlops-firstresponderkit/issues
35-
36-
## Release Notes
37-
38-
### 0.3.0
39-
40-
- Adds code snippets for execute scripts
41-
- Corrects sp_blitzindex execute script
42-
43-
### 0.2.0
44-
45-
- Script import and run commands automatically connect to current context
46-
47-
### 0.1.1
48-
49-
- Corrects base URL for scripts from dev to master branch of First Responder Kit
50-
51-
### 0.1.0
52-
53-
- Initial release.
1+
# Azure Data Studio - First Responder Kit Extension
2+
3+
This extension provides immediate access to the current First Responder Kit scripts and introductory execution suggestions. (All credit due to http://firstresponderkit.org/)
4+
5+
## Installation
6+
The current release is available to [download as a .vsix file](https://github.com/dzsquared/sqlops-firstresponderkit/releases/download/0.3.0/firstresponderkit-0.3.0.vsix) and can be installed by opening the command palette (`ctrl/command+shift+p`) and selecting `Extensions: Install from VSIX...`
7+
8+
9+
## Features
10+
11+
### Import
12+
Import a script from the First Responder Kit to a new editor by opening the command palette (`ctrl/command+shift+p`) and selecting an option under `First Responder Kit: Import <some script>`
13+
14+
15+
![Import a Script](https://raw.githubusercontent.com/dzsquared/sqlops-firstresponderkit/master/images/frk_import.gif)
16+
17+
### Run
18+
Already have the current scripts loaded to the database? Great! Take the shortcut to execution by opening the command palette (`ctrl/command+shift+p`) and selecting an option under `First Responder Kit: Run <some script>`
19+
20+
![Execute](https://raw.githubusercontent.com/dzsquared/sqlops-firstresponderkit/master/images/frk_run.gif)
21+
22+
## Requirements
23+
24+
Internet connectivity is required for any of the "Import" commands, which connect to GitHub to fetch recent versions of the scripts. A GitHub account is NOT required.
25+
26+
27+
-----------------------------------------------------------------------------------------------------------
28+
29+
## Known Issues
30+
31+
None yet.
32+
33+
## Unknown Issues
34+
Can be raised here: https://github.com/dzsquared/sqlops-firstresponderkit/issues
35+
36+
## Release Notes
37+
38+
### 0.3.0
39+
40+
- Adds code snippets for execute scripts
41+
- Corrects sp_blitzindex execute script
42+
43+
### 0.2.0
44+
45+
- Script import and run commands automatically connect to current context
46+
47+
### 0.1.1
48+
49+
- Corrects base URL for scripts from dev to master branch of First Responder Kit
50+
51+
### 0.1.0
52+
53+
- Initial release.

0 commit comments

Comments
 (0)