Skip to content

Commit 4556e57

Browse files
author
Oleg Dmitrovich
committed
remove unused blank code
1 parent a6fd00d commit 4556e57

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+5225
-6911
lines changed

.eslintrc.json

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"env": {
3+
"browser": false,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true
7+
},
8+
"parserOptions": {
9+
"ecmaFeatures": {
10+
"jsx": true
11+
},
12+
"sourceType": "module"
13+
},
14+
"rules": {
15+
"no-const-assign": "warn",
16+
"no-this-before-super": "warn",
17+
"no-undef": "warn",
18+
"no-unreachable": "warn",
19+
"no-unused-vars": "warn",
20+
"constructor-super": "warn",
21+
"valid-typeof": "warn"
22+
}
23+
}

.gitignore

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

.jshintrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"esversion": 6,
3+
"asi": true
4+
}

.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=733558
3+
// for the documentation about the extensions.json format
4+
"recommendations": [
5+
"dbaeumer.vscode-eslint"
6+
]
7+
}

.vscode/launch.json

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// A launch configuration that launches the extension inside a new window
2+
{
3+
"version": "0.1.0",
4+
"configurations": [
5+
{
6+
"name": "Extension",
7+
"type": "extensionHost",
8+
"request": "launch",
9+
"runtimeExecutable": "${execPath}",
10+
"args": ["--extensionDevelopmentPath=${workspaceRoot}" ],
11+
"stopOnEntry": false
12+
},
13+
{
14+
"name": "Extension Tests",
15+
"type": "extensionHost",
16+
"request": "launch",
17+
"runtimeExecutable": "${execPath}",
18+
"args": ["--extensionDevelopmentPath=${workspaceRoot}", "--extensionTestsPath=${workspaceRoot}/test" ],
19+
"stopOnEntry": false
20+
}
21+
]
22+
}
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
.vscode/**
2-
typings/**
3-
out/test/**
2+
.vscode-test/**
43
test/**
5-
src/**
6-
**/*.map
74
.gitignore
8-
tsconfig.json
5+
jsconfig.json
96
vsc-extension-quickstart.md
7+
.eslintrc.json
8+
.jshintrc

CHANGELOG.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# Change Log
2+
All notable changes to the "vscode-pgsql" extension will be documented in this file.
3+
4+
## [Unreleased]
5+
6+
## 0.0.9
7+
### Fixed
8+
- Signature completion
9+
10+
## 0.0.8
11+
### Added
12+
- Run only selected text in large pgsql files - just select and press Ctrl+F5
13+
or execute whole file if you don't have selection
14+
- Create temporary file instead autosave changed pgsql file before execution
15+
16+
## 0.0.7
17+
### Added
18+
- run pgsql files - press Ctrl+F5
19+
- autosave changed pgsql file before run
20+
21+
### Changed
22+
- change [Create Function](http://rob.conery.io/2015/02/21/its-time-to-get-over-that-stored-procedure-aversion-you-have/) snippet
23+
24+
## 0.0.2
25+
### Added
26+
- connection config with port and password
27+
- stderr output ( thanks for [khushboo shah](https://marketplace.visualstudio.com/items?itemName=JPTarquino.postgresql) )
28+
29+
### Changed
30+
- renamed to *pgsql*

License.txt

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11
Copyright (c) Microsoft Corporation
22

3-
All rights reserved.
4-
3+
All rights reserved.
4+
55
MIT License
66

7-
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files
8-
(the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge,
9-
publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do
10-
so, subject to the following conditions:
7+
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:
118

129
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
1310

14-
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
15-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE
16-
FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
17-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11+
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.

README.md

Lines changed: 24 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,24 @@
1-
# pgsql extension
2-
3-
This extension is fixed [clone](https://github.com/jptarqu/VSCodeExtension-PostgreSQL) of [postgresql by JPTarquino](https://marketplace.visualstudio.com/items?itemName=JPTarquino.postgresql)
4-
5-
## Features:
6-
- Run current file into Postgres via psql
7-
- Colorization
8-
- Completion Lists for global postgres functions (copied from the Postgres official documentation)
9-
- Snippets
10-
11-
<img src="https://raw.githubusercontent.com/doublefint/vscode-pgsql/master/client/images/example.gif" alt="demo" style="width:480px;"/>
12-
13-
## Fixes
14-
- use connection string with port and password
15-
- add stderr output ( thanks for [khushboo shah](https://marketplace.visualstudio.com/items?itemName=JPTarquino.postgresql) )
16-
- shorter command
17-
18-
The extension recognizes the .sql,.ddl,.dml,.pgsql extension as sql files intended to be run in Postgres.
19-
20-
## Using
21-
To run the current sql file through psql (Postgres native client) you must add the following settings to your workspace:
22-
23-
```javascript
24-
{ "pgsql.connection": "postgres://username:password@host:port/database" }
25-
```
26-
You must also ensure that psql is in the OS executable path (it will be executed as simply "psql" from vscode).
27-
The command to run the current file is "pgsql: run in postgres"
1+
# pgsql extension
2+
3+
This extension is fixed clone of [postgresql](https://marketplace.visualstudio.com/items?itemName=JPTarquino.postgresql) by [JPTarquino](https://github.com/jptarqu/VSCodeExtension-PostgreSQL)
4+
5+
## Features:
6+
- Execute sql file into Postgres (*Ctrl+F5*) via [psql](https://www.postgresql.org/docs/current/static/app-psql.html)
7+
- Colorization - _converted from [mulander](https://github.com/mulander/postgres.tmbundle)_
8+
- Completion lists for keywords - _copied from the Postgres [documentation](https://www.postgresql.org/docs/current/static/sql-keywords-appendix.html#KEYWORDS-TABLE)_
9+
- Few snippets ( *Ctrl+Space, type 'pg'* )
10+
11+
The extension recognizes the \*.sql, \*.ddl, \*.dml, \*.pgsql extension as sql files intended to be run in Postgres
12+
13+
<img src="https://raw.githubusercontent.com/doublefint/vscode-pgsql/master/client/images/example.gif" alt="demo" style="width:480px;"/>
14+
15+
## Usage
16+
17+
- Setup **psql** is in the OS executable path
18+
- Customize Postgress connection ( settings in workspace ):
19+
```javascript
20+
{ "pgsql.connection": "postgres://username:password@host:port/database" }
21+
```
22+
23+
- Open file with pgsql type and run ( press **Ctrl+F5** or Cmd+F5 on Mac )
24+
- For snippets press **Ctrl+Space**, type '**pg**'

0 commit comments

Comments
 (0)