468 строки
15 KiB
JSON
468 строки
15 KiB
JSON
{
|
|
"name": "azuredatastudio-postgresql",
|
|
"displayName": "PostgreSQL",
|
|
"version": "0.6.0",
|
|
"publisher": "Microsoft",
|
|
"description": "PostgreSQL extension for Azure Data Studio",
|
|
"aiKey": "c2c974c2-f342-42c8-b85b-b79436a86603",
|
|
"icon": "images/extension-icon.png",
|
|
"repository": {
|
|
"url": "https://github.com/Microsoft/azuredatastudio-postgresql"
|
|
},
|
|
"license": "MIT",
|
|
"activationEvents": [
|
|
"*"
|
|
],
|
|
"engines":{
|
|
"vscode": "*",
|
|
"azdata": ">=1.40.0"
|
|
},
|
|
"main": "./out/main",
|
|
"extensionDependencies": [
|
|
"vscode.sql"
|
|
],
|
|
"scripts": {
|
|
"compile": "gulp build",
|
|
"package": "gulp package:online",
|
|
"package-offline": "gulp package:offline",
|
|
"package-offline-osx": "gulp package:offline-osx",
|
|
"package-offline-osx-arm64": "gulp package:offline-osx-arm64",
|
|
"package-offline-windows": "gulp package:offline-windows",
|
|
"package-offline-linux": "gulp package:offline-linux",
|
|
"package-offline-ubuntu": "gulp package:offline-ubuntu"
|
|
},
|
|
"contributes": {
|
|
"grammars": [
|
|
{
|
|
"injectTo": [ "source.sql" ],
|
|
"scopeName": "source.pgsql-injection.sql",
|
|
"path": "./syntaxes/pgsql-injection.json"
|
|
}
|
|
],
|
|
"outputChannels": [
|
|
"PGSQL"
|
|
],
|
|
"snippets": [
|
|
{
|
|
"language": "sql",
|
|
"path": "./snippets/pgsql.json"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "%postgres.configuration.title%",
|
|
"properties": {
|
|
"pgsql.logDebugInfo": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%postgres.logDebugInfo.description%"
|
|
},
|
|
"pgsql.enabled": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%postgres.enabled.description%"
|
|
},
|
|
"pgsql.debugSourcePath": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"default": null,
|
|
"description": "%postgres.debugSourcePath.description%"
|
|
},
|
|
"pgsql.useDebugSource": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%postgres.useDebugSource.description%"
|
|
},
|
|
"pgsql.enableStartupDebugging": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%postgres.enableStartupDebugging.description%"
|
|
},
|
|
"pgsql.debugServerPort": {
|
|
"type": "number",
|
|
"default": 3000,
|
|
"description": "%postgres.debugServerPort.description%"
|
|
},
|
|
"pgsql.defaultDatabase": {
|
|
"type": "string",
|
|
"default": "postgres",
|
|
"description": "%postgres.defaultDatabase.description%"
|
|
},
|
|
"pgsql.format.keywordCase": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"description": "%postgres.format.keywordCase.description%",
|
|
"default": null,
|
|
"enum": [
|
|
null,
|
|
"upper",
|
|
"lower",
|
|
"capitalize"
|
|
]
|
|
},
|
|
"pgsql.format.identifierCase": {
|
|
"type": [
|
|
"string",
|
|
"null"
|
|
],
|
|
"description": "%postgres.format.identifierCase.description%",
|
|
"default": null,
|
|
"enum": [
|
|
null,
|
|
"upper",
|
|
"lower",
|
|
"capitalize"
|
|
]
|
|
},
|
|
"pgsql.format.stripComments": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "%postgres.format.stripComments.description%"
|
|
},
|
|
"pgsql.format.reindent": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "%postgres.format.reindent.description%"
|
|
}
|
|
}
|
|
},
|
|
"connectionProvider": {
|
|
"protocolVersion": "1.0",
|
|
"providerName": "PGSQL",
|
|
"providerId": "PGSQL",
|
|
"displayName": "PostgreSQL",
|
|
"azureResource": "OssRdbms",
|
|
"connectionOptions": [
|
|
{
|
|
"specialValueType": "connectionName",
|
|
"isIdentity": true,
|
|
"name": "connectionName",
|
|
"displayName": "%postgres.connectionOptions.connectionName.displayName%",
|
|
"description": "%postgres.connectionOptions.connectionName.description%",
|
|
"groupName": "%postgres.connectionOptions.groupName.source%",
|
|
"valueType": "string",
|
|
"defaultValue": null,
|
|
"objectType": null,
|
|
"categoryValues": null,
|
|
"isRequired": false,
|
|
"isArray": false
|
|
},
|
|
{
|
|
"name": "host",
|
|
"displayName": "%postgres.connectionOptions.host.displayName%",
|
|
"description": "%postgres.connectionOptions.host.description%",
|
|
"valueType": "string",
|
|
"specialValueType": "serverName",
|
|
"isIdentity": true,
|
|
"isRequired": true,
|
|
"groupName": "%postgres.connectionOptions.groupName.source%",
|
|
"defaultValue": null,
|
|
"objectType": null,
|
|
"categoryValues": null,
|
|
"isArray": false
|
|
},
|
|
{
|
|
"specialValueType": "authType",
|
|
"isIdentity": true,
|
|
"name": "authenticationType",
|
|
"displayName": "%postgres.connectionOptions.authenticationType.displayName%",
|
|
"description": "%postgres.connectionOptions.authenticationType.description%",
|
|
"groupName": "%postgres.connectionOptions.groupName.security%",
|
|
"valueType": "category",
|
|
"defaultValue": "SqlLogin",
|
|
"objectType": null,
|
|
"categoryValues": [
|
|
{
|
|
"displayName": "%postgres.connectionOptions.user.displayName%",
|
|
"name": "SqlLogin"
|
|
},
|
|
{
|
|
"displayName": "%postgres.connectionOptions.authenticationType.azuremfaanduser%",
|
|
"name": "AzureMFAAndUser"
|
|
}
|
|
],
|
|
"isRequired": true,
|
|
"isArray": false
|
|
},
|
|
{
|
|
"name": "dbname",
|
|
"displayName": "%postgres.connectionOptions.dbname.displayName%",
|
|
"description": "%postgres.connectionOptions.dbname.description%",
|
|
"valueType": "string",
|
|
"specialValueType": "databaseName",
|
|
"isIdentity": true,
|
|
"isRequired": false,
|
|
"groupName": "%postgres.connectionOptions.groupName.source%",
|
|
"defaultValue": "postgres"
|
|
},
|
|
{
|
|
"name": "user",
|
|
"displayName": "%postgres.connectionOptions.user.displayName%",
|
|
"description": "%postgres.connectionOptions.user.description%",
|
|
"valueType": "string",
|
|
"specialValueType": "userName",
|
|
"isIdentity": true,
|
|
"isRequired": true,
|
|
"groupName": "%postgres.connectionOptions.groupName.security%"
|
|
},
|
|
{
|
|
"name": "password",
|
|
"displayName": "%postgres.connectionOptions.password.displayName%",
|
|
"description": "%postgres.connectionOptions.password.description%",
|
|
"valueType": "password",
|
|
"specialValueType": "password",
|
|
"isIdentity": true,
|
|
"isRequired": true,
|
|
"groupName": "%postgres.connectionOptions.groupName.security%"
|
|
},
|
|
{
|
|
"name": "hostaddr",
|
|
"displayName": "%postgres.connectionOptions.hostIp.displayName%",
|
|
"description": "%postgres.connectionOptions.hostIp.description%",
|
|
"valueType": "string",
|
|
"isIdentity": true,
|
|
"groupName": "%postgres.connectionOptions.groupName.server%",
|
|
"defaultValue": null
|
|
},
|
|
{
|
|
"name": "port",
|
|
"displayName": "%postgres.connectionOptions.port.displayName%",
|
|
"description": "%postgres.connectionOptions.port.description%",
|
|
"valueType": "number",
|
|
"isIdentity": true,
|
|
"groupName": "%postgres.connectionOptions.groupName.server%",
|
|
"defaultValue": null
|
|
},
|
|
{
|
|
"name": "connectTimeout",
|
|
"displayName": "%postgres.connectionOptions.connectTimeout.displayName%",
|
|
"description": "%postgres.connectionOptions.connectTimeout.description%",
|
|
"valueType": "number",
|
|
"groupName": "%postgres.connectionOptions.groupName.client%",
|
|
"defaultValue": "15"
|
|
},
|
|
{
|
|
"name": "clientEncoding",
|
|
"displayName": "%postgres.connectionOptions.clientEncoding.displayName%",
|
|
"description": "%postgres.connectionOptions.clientEncoding.description%",
|
|
"valueType": "string",
|
|
"groupName": "%postgres.connectionOptions.groupName.client%",
|
|
"defaultValue": null
|
|
},
|
|
{
|
|
"name": "options",
|
|
"displayName": "%postgres.connectionOptions.options.displayName%",
|
|
"description": "%postgres.connectionOptions.options.description%",
|
|
"valueType": "string",
|
|
"groupName": "%postgres.connectionOptions.groupName.server%",
|
|
"defaultValue": null
|
|
},
|
|
{
|
|
"name": "applicationName",
|
|
"displayName": "%postgres.connectionOptions.applicationName.displayName%",
|
|
"description": "%postgres.connectionOptions.applicationName.description%",
|
|
"valueType": "string",
|
|
"groupName": "%postgres.connectionOptions.groupName.client%",
|
|
"specialValueType": "appName"
|
|
},
|
|
{
|
|
"name": "sslmode",
|
|
"displayName": "%postgres.connectionOptions.ssl.displayName%",
|
|
"description": "%postgres.connectionOptions.ssl.description%",
|
|
"valueType": "category",
|
|
"groupName": "%postgres.connectionOptions.groupName.ssl%",
|
|
"categoryValues": [
|
|
{
|
|
"displayName": "%postgres.connectionOptions.ssl.mode.disable%",
|
|
"name": "disable"
|
|
},
|
|
{
|
|
"displayName": "%postgres.connectionOptions.ssl.mode.allow%",
|
|
"name": "allow"
|
|
},
|
|
{
|
|
"displayName": "%postgres.connectionOptions.ssl.mode.prefer%",
|
|
"name": "prefer"
|
|
},
|
|
{
|
|
"displayName": "%postgres.connectionOptions.ssl.mode.require%",
|
|
"name": "require"
|
|
},
|
|
{
|
|
"displayName": "%postgres.connectionOptions.ssl.mode.verify_ca%",
|
|
"name": "verify_ca"
|
|
},
|
|
{
|
|
"displayName": "%postgres.connectionOptions.ssl.mode.verify_full%",
|
|
"name": "verify-full"
|
|
}
|
|
],
|
|
"defaultValue": "prefer"
|
|
},
|
|
{
|
|
"name": "sslcompression",
|
|
"displayName": "%postgres.connectionOptions.ssl.compression.displayName%",
|
|
"description": "%postgres.connectionOptions.ssl.compression.description%",
|
|
"valueType": "boolean",
|
|
"groupName": "SSL"
|
|
},
|
|
{
|
|
"name": "sslcert",
|
|
"displayName": "%postgres.connectionOptions.ssl.cert.displayName%",
|
|
"description": "%postgres.connectionOptions.ssl.cert.description%",
|
|
"valueType": "string",
|
|
"groupName": "SSL",
|
|
"defaultValue": null
|
|
},
|
|
{
|
|
"name": "sslkey",
|
|
"displayName": "%postgres.connectionOptions.ssl.key.displayName%",
|
|
"description": "%postgres.connectionOptions.ssl.key.description%",
|
|
"valueType": "string",
|
|
"groupName": "SSL",
|
|
"defaultValue": null
|
|
},
|
|
{
|
|
"name": "sslrootcert",
|
|
"displayName": "%postgres.connectionOptions.ssl.rootcert.displayName%",
|
|
"description": "%postgres.connectionOptions.ssl.rootcert.description%",
|
|
"valueType": "string",
|
|
"groupName": "SSL",
|
|
"defaultValue": null
|
|
},
|
|
{
|
|
"name": "sslcrl",
|
|
"displayName": "%postgres.connectionOptions.ssl.crl.displayName%",
|
|
"description": "%postgres.connectionOptions.ssl.crl.description%",
|
|
"valueType": "string",
|
|
"groupName": "SSL",
|
|
"defaultValue": null
|
|
},
|
|
{
|
|
"name": "requirepeer",
|
|
"displayName": "%postgres.connectionOptions.requirepeer.displayName%",
|
|
"description": "%postgres.connectionOptions.requirepeer.description%",
|
|
"valueType": "string",
|
|
"groupName": "%postgres.connectionOptions.groupName.server%",
|
|
"defaultValue": null
|
|
},
|
|
{
|
|
"name": "service",
|
|
"displayName": "%postgres.connectionOptions.service.displayName%",
|
|
"description": "%postgres.connectionOptions.service.description%",
|
|
"valueType": "string",
|
|
"groupName": "%postgres.connectionOptions.groupName.client%",
|
|
"defaultValue": null
|
|
}
|
|
]
|
|
},
|
|
"commands": [
|
|
{
|
|
"command": "pgproj.build.all",
|
|
"title": "%postgres.command.buildAll%",
|
|
"category": "PostgreSQLProject"
|
|
},
|
|
{
|
|
"command": "pgproj.build.current",
|
|
"title": "%postgres.command.buildCurrent%",
|
|
"category": "PostgreSQLProject"
|
|
},
|
|
{
|
|
"command": "pgproj.add.new",
|
|
"title": "%postgres.command.newProject%",
|
|
"category": "PostgreSQLProject"
|
|
},
|
|
{
|
|
"command": "pgproj.deploy.current",
|
|
"title": "%postgres.command.deploy%",
|
|
"category": "PostgreSQLProject"
|
|
}
|
|
],
|
|
"menus": {
|
|
"commandPalette": [
|
|
{
|
|
"command": "pgproj.build.current",
|
|
"when": "resourceExtname == .pgproj"
|
|
},
|
|
{
|
|
"command": "pgproj.deploy.current",
|
|
"when": "resourceExtname == .pgproj"
|
|
},
|
|
{
|
|
"command": "pgproj.add.new",
|
|
"when": "false"
|
|
}
|
|
],
|
|
"explorer/context": [
|
|
{
|
|
"command": "pgproj.build.current",
|
|
"when": "resourceExtname == .pgproj"
|
|
},
|
|
{
|
|
"command": "pgproj.deploy.current",
|
|
"when": "resourceExtname == .pgproj"
|
|
},
|
|
{
|
|
"command": "pgproj.add.new",
|
|
"when": "explorerResourceIsFolder"
|
|
}
|
|
],
|
|
"editor/context": [
|
|
{
|
|
"command": "pgproj.build.current",
|
|
"when": "resourceExtname == .pgproj"
|
|
},
|
|
{
|
|
"command": "pgproj.deploy.current",
|
|
"when": "resourceExtname == .pgproj"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"dependencies": {
|
|
"@microsoft/ads-service-downloader": "^1.2.1",
|
|
"@microsoft/ads-extension-telemetry": "^3.0.1",
|
|
"crypto": "^1.0.1",
|
|
"dataprotocol-client": "github:Microsoft/sqlops-dataprotocolclient#1.3.1",
|
|
"tmp": "0.2.1 ",
|
|
"vscode-languageclient": "5.2.1",
|
|
"which": "^1.3.1",
|
|
"compare-versions": "^3.5.1",
|
|
"xml2js": "^0.5.0",
|
|
"vscode-nls": "^5.0.0",
|
|
"fstream": "^1.0.12",
|
|
"block-stream": "^0.0.9",
|
|
"graceful-fs": "4.2.4",
|
|
"eventemitter2": "^5.0.1"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^12.11.7",
|
|
"@types/vscode": "^1.77.0",
|
|
"@types/azdata": "^1.43.0",
|
|
"del": "^6.1.1",
|
|
"event-stream": "^4.0.1",
|
|
"gulp": "github:gulpjs/gulp#4.0.2",
|
|
"gulp-istanbul-report": "0.0.1",
|
|
"gulp-json-editor": "^2.5.6",
|
|
"gulp-rename": "^2.0.0",
|
|
"gulp-shell": "^0.8.0",
|
|
"gulp-sourcemaps": "^3.0.0",
|
|
"gulp-tslint": "^8.1.4",
|
|
"gulp-typescript": "^5.0.1",
|
|
"tslint": "^6.1.3",
|
|
"typescript": "^4.3.5",
|
|
"vscode-nls-dev": "^4.0.0"
|
|
},
|
|
"resolutions": {
|
|
"gulp-cli": "2.3.0"
|
|
},
|
|
"requiredDotNetCoreSDK": "2.1.0",
|
|
"projectTemplateNugetId": "Microsoft.DataTools.PostgreSql.ProjectTemplate",
|
|
"minSupportedPostgreSQLProjectSDK": "0.1.0",
|
|
"maxSupportedPostgreSQLProjectSDK": "0.1.0"
|
|
}
|