-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial implementation of a SSMS keymap extension
- Loading branch information
0 parents
commit f6c3134
Showing
7 changed files
with
123 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
*.vsix |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
// A launch configuration that launches the extension inside a new window | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
|
||
// To debug the extension: | ||
// 1. please install the "SQL Operations Studio Debug" extension into VSCode | ||
// 2. Ensure sqlops is added to your path: | ||
// - open SQL Operations Studio | ||
// - run the command "Install 'sqlops' command in PATH" | ||
{ | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Extension", | ||
"type": "sqlopsExtensionHost", | ||
"request": "launch", | ||
"runtimeExecutable": "sqlops", | ||
"args": [ | ||
"--extensionDevelopmentPath=${workspaceFolder}" | ||
] | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.vscode/** | ||
.vscode-test/** | ||
.gitignore | ||
vsc-extension-quickstart.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
## 0.1.0 - Initial implementation | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
SSMS Keymap | ||
|
||
Copyright (c) Kevin Cunnane | ||
|
||
All rights reserved. | ||
|
||
MIT License | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the ""Software""), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# SSMS Keymap for SQL Operations Studio | ||
|
||
This extension ports the most popular SSMS keyboard shortcuts to SQL Operations Studio. After installing the extension and restarting VS Code your favorite keyboard shortcuts from SSMS are now available. | ||
|
||
## What keyboard shortcuts are included? | ||
|
||
You can see all the keyboard shortcuts in the extension's contribution list. | ||
|
||
## Why don't all SSMS commands work? | ||
|
||
SQL Operations Studio has not implemented all features. Head on over to [GitHub issue](https://github.com/Microsoft/sqlopsstudio/issues) and let the SQL Operations Studio team know what you'd like to see. | ||
|
||
## How do I contribute a keyboard shortcut? | ||
|
||
We may have missed a keyboard shortcut. If we did please help us out! It is very easy to make a PR. | ||
|
||
1. Head over to our [GitHub repository](https://github.com/kevcunnane/ssmskeymap). | ||
2. Open the [`package.json` file](https://github.com/kevcunnane/ssmskeymap/blob/master/package.json). | ||
4. Open a pull request. | ||
|
||
```json | ||
{ | ||
"mac": "<keyboard shortcut for mac>", | ||
"linux": "<keyboard shortcut for linux", | ||
"win": "<keyboard shortcut for windows", | ||
"key": "<default keyboard shortcut>", | ||
"command": "<name of the command in VS Code" | ||
} | ||
``` | ||
|
||
You can read more about how to contribute keybindings in extensions in the [official documentation](http://code.visualstudio.com/docs/extensionAPI/extension-points#_contributeskeybindings) for VS Code. The same process works for SQL Operations Studio. | ||
|
||
|
||
|
||
## License | ||
[MIT](license.txt) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"name": "ssmskeymap", | ||
"displayName": "ssmskeymap", | ||
"description": "This extension ports popular SSMS keyboard shortcuts to SQL Operations Studio. After installing the extension and restarting Ops Studio your favorite keyboard shortcuts from SSMS are now available.", | ||
"version": "0.0.1", | ||
"publisher": "kevcunnane", | ||
"engines": { | ||
"vscode": "^1.22.0", | ||
"sqlops": "*" | ||
}, | ||
"categories": [ | ||
"Keymaps" | ||
], | ||
"contributes": { | ||
"keybindings": [ | ||
{ | ||
"key": "shift+cmd+e", | ||
"command": "runQueryKeyboardAction" | ||
}, | ||
{ | ||
"key": "ctrl+cmd+e", | ||
"command": "workbench.view.explorer" | ||
}, | ||
{ | ||
"key": "alt+f1", | ||
"command": "workbench.action.query.shortcut1" | ||
}, | ||
{ | ||
"key": "shift+alt+enter", | ||
"command": "workbench.action.toggleFullScreen" | ||
}, | ||
{ | ||
"key": "f8", | ||
"command": "workbench.view.connections" | ||
}, | ||
{ | ||
"key": "ctrl+m", | ||
"command": "runCurrentQueryWithActualPlanKeyboardAction" | ||
} | ||
] | ||
} | ||
} |