mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-16 10:58:30 -05:00
Credentials and Serilization shouldn't register for all features (#833)
* change credentials and serilization so they don't register for all features * vbump dataprotocol
This commit is contained in:
@@ -501,10 +501,8 @@ function prepareXlfFiles(projectName, extensionName) {
|
|||||||
}
|
}
|
||||||
exports.prepareXlfFiles = prepareXlfFiles;
|
exports.prepareXlfFiles = prepareXlfFiles;
|
||||||
var editorProject = 'vscode-editor', workbenchProject = 'vscode-workbench', extensionsProject = 'vscode-extensions', setupProject = 'vscode-setup';
|
var editorProject = 'vscode-editor', workbenchProject = 'vscode-workbench', extensionsProject = 'vscode-extensions', setupProject = 'vscode-setup';
|
||||||
|
|
||||||
// {{SQL CARBON EDIT}}
|
// {{SQL CARBON EDIT}}
|
||||||
var sqlopsProject = 'sqlops-core';
|
var sqlopsProject = 'sqlops-core';
|
||||||
|
|
||||||
function getResource(sourceFile) {
|
function getResource(sourceFile) {
|
||||||
var resource;
|
var resource;
|
||||||
if (/^vs\/platform/.test(sourceFile)) {
|
if (/^vs\/platform/.test(sourceFile)) {
|
||||||
@@ -533,12 +531,9 @@ function getResource(sourceFile) {
|
|||||||
else if (/^vs\/workbench/.test(sourceFile)) {
|
else if (/^vs\/workbench/.test(sourceFile)) {
|
||||||
return { name: 'vs/workbench', project: workbenchProject };
|
return { name: 'vs/workbench', project: workbenchProject };
|
||||||
}
|
}
|
||||||
|
else if (/^sql/.test(sourceFile)) {
|
||||||
// {{SQL CARBON EDIT}}
|
return { name: 'sql', project: sqlopsProject };
|
||||||
else if (/^sql/.test(sourceFile)) {
|
}
|
||||||
return { name: 'sql', project: sqlopsProject };
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new Error("Could not identify the XLF bundle for " + sourceFile);
|
throw new Error("Could not identify the XLF bundle for " + sourceFile);
|
||||||
}
|
}
|
||||||
exports.getResource = getResource;
|
exports.getResource = getResource;
|
||||||
|
|||||||
@@ -384,9 +384,9 @@ dashdash@^1.12.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
assert-plus "^1.0.0"
|
assert-plus "^1.0.0"
|
||||||
|
|
||||||
"dataprotocol-client@github:Microsoft/sqlops-dataprotocolclient#0.1.2":
|
"dataprotocol-client@github:Microsoft/sqlops-dataprotocolclient#0.1.3":
|
||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
resolved "https://codeload.github.com/Microsoft/sqlops-dataprotocolclient/tar.gz/524cfc580e93f7ed85573e5291b5ca69fbda72f3"
|
resolved "https://codeload.github.com/Microsoft/sqlops-dataprotocolclient/tar.gz/cedce3c62e0f29790998f5a060390bde52b6618a"
|
||||||
dependencies:
|
dependencies:
|
||||||
vscode-languageclient "3.5.0"
|
vscode-languageclient "3.5.0"
|
||||||
|
|
||||||
@@ -569,7 +569,7 @@ extend@~1.2.1:
|
|||||||
"extensions-modules@file:../extensions-modules":
|
"extensions-modules@file:../extensions-modules":
|
||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
dataprotocol-client "github:Microsoft/sqlops-dataprotocolclient#0.1.2"
|
dataprotocol-client "github:Microsoft/sqlops-dataprotocolclient#0.1.3"
|
||||||
decompress "^4.2.0"
|
decompress "^4.2.0"
|
||||||
fs-extra-promise "^1.0.1"
|
fs-extra-promise "^1.0.1"
|
||||||
http-proxy-agent "^2.0.0"
|
http-proxy-agent "^2.0.0"
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
"version": "0.1.0",
|
"version": "0.1.0",
|
||||||
"description": "Shared modules for Carbon extensions",
|
"description": "Shared modules for Carbon extensions",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"dataprotocol-client": "github:Microsoft/sqlops-dataprotocolclient#0.1.2",
|
"dataprotocol-client": "github:Microsoft/sqlops-dataprotocolclient#0.1.3",
|
||||||
"decompress": "^4.2.0",
|
"decompress": "^4.2.0",
|
||||||
"fs-extra-promise": "^1.0.1",
|
"fs-extra-promise": "^1.0.1",
|
||||||
"http-proxy-agent": "^2.0.0",
|
"http-proxy-agent": "^2.0.0",
|
||||||
|
|||||||
@@ -5,7 +5,7 @@
|
|||||||
'use strict';
|
'use strict';
|
||||||
|
|
||||||
import { ExtensionContext, workspace, window, OutputChannel, languages } from 'vscode';
|
import { ExtensionContext, workspace, window, OutputChannel, languages } from 'vscode';
|
||||||
import { SqlOpsDataClient, LanguageClientOptions } from 'dataprotocol-client';
|
import { SqlOpsDataClient, ClientOptions } from 'dataprotocol-client';
|
||||||
import { CloseAction, ErrorAction, ServerOptions, NotificationHandler, NotificationType, RequestType, TransportKind } from 'vscode-languageclient';
|
import { CloseAction, ErrorAction, ServerOptions, NotificationHandler, NotificationType, RequestType, TransportKind } from 'vscode-languageclient';
|
||||||
|
|
||||||
import { VscodeWrapper } from '../controllers/vscodeWrapper';
|
import { VscodeWrapper } from '../controllers/vscodeWrapper';
|
||||||
@@ -329,7 +329,7 @@ export class SqlToolsServiceClient {
|
|||||||
languageClientHelper.createServerOptions(serverPath, runtimeId) : this.createServerOptions(serverPath);
|
languageClientHelper.createServerOptions(serverPath, runtimeId) : this.createServerOptions(serverPath);
|
||||||
|
|
||||||
// Options to control the language client
|
// Options to control the language client
|
||||||
let clientOptions: LanguageClientOptions = {
|
let clientOptions: ClientOptions = {
|
||||||
documentSelector: [SqlToolsServiceClient._constants.languageId],
|
documentSelector: [SqlToolsServiceClient._constants.languageId],
|
||||||
providerId: '',
|
providerId: '',
|
||||||
synchronize: {
|
synchronize: {
|
||||||
@@ -351,7 +351,9 @@ export class SqlToolsServiceClient {
|
|||||||
name: '',
|
name: '',
|
||||||
show: () => {
|
show: () => {
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
// pass in no features so we don't register features we don't want
|
||||||
|
features: []
|
||||||
};
|
};
|
||||||
|
|
||||||
this._serviceStatus.showServiceLoading();
|
this._serviceStatus.showServiceLoading();
|
||||||
@@ -405,7 +407,7 @@ export class SqlToolsServiceClient {
|
|||||||
|
|
||||||
private createLanguageClient(serverOptions: ServerOptions): SqlOpsDataClient {
|
private createLanguageClient(serverOptions: ServerOptions): SqlOpsDataClient {
|
||||||
// Options to control the language client
|
// Options to control the language client
|
||||||
let clientOptions: LanguageClientOptions = {
|
let clientOptions: ClientOptions = {
|
||||||
documentSelector: [SqlToolsServiceClient._constants.languageId],
|
documentSelector: [SqlToolsServiceClient._constants.languageId],
|
||||||
providerId: SqlToolsServiceClient._constants.providerId,
|
providerId: SqlToolsServiceClient._constants.providerId,
|
||||||
synchronize: {
|
synchronize: {
|
||||||
|
|||||||
@@ -321,9 +321,9 @@ dashdash@^1.12.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
assert-plus "^1.0.0"
|
assert-plus "^1.0.0"
|
||||||
|
|
||||||
"dataprotocol-client@github:Microsoft/sqlops-dataprotocolclient#0.1.2":
|
"dataprotocol-client@github:Microsoft/sqlops-dataprotocolclient#0.1.3":
|
||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
resolved "https://codeload.github.com/Microsoft/sqlops-dataprotocolclient/tar.gz/524cfc580e93f7ed85573e5291b5ca69fbda72f3"
|
resolved "https://codeload.github.com/Microsoft/sqlops-dataprotocolclient/tar.gz/cedce3c62e0f29790998f5a060390bde52b6618a"
|
||||||
dependencies:
|
dependencies:
|
||||||
vscode-languageclient "3.5.0"
|
vscode-languageclient "3.5.0"
|
||||||
|
|
||||||
|
|||||||
@@ -333,9 +333,9 @@ dashdash@^1.12.0:
|
|||||||
dependencies:
|
dependencies:
|
||||||
assert-plus "^1.0.0"
|
assert-plus "^1.0.0"
|
||||||
|
|
||||||
"dataprotocol-client@github:Microsoft/sqlops-dataprotocolclient#0.1.2":
|
"dataprotocol-client@github:Microsoft/sqlops-dataprotocolclient#0.1.3":
|
||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
resolved "https://codeload.github.com/Microsoft/sqlops-dataprotocolclient/tar.gz/524cfc580e93f7ed85573e5291b5ca69fbda72f3"
|
resolved "https://codeload.github.com/Microsoft/sqlops-dataprotocolclient/tar.gz/cedce3c62e0f29790998f5a060390bde52b6618a"
|
||||||
dependencies:
|
dependencies:
|
||||||
vscode-languageclient "3.5.0"
|
vscode-languageclient "3.5.0"
|
||||||
|
|
||||||
@@ -538,7 +538,7 @@ extend@^3.0.0, extend@~3.0.0, extend@~3.0.1:
|
|||||||
"extensions-modules@file:../../extensions-modules":
|
"extensions-modules@file:../../extensions-modules":
|
||||||
version "0.1.0"
|
version "0.1.0"
|
||||||
dependencies:
|
dependencies:
|
||||||
dataprotocol-client "github:Microsoft/sqlops-dataprotocolclient#0.1.2"
|
dataprotocol-client "github:Microsoft/sqlops-dataprotocolclient#0.1.3"
|
||||||
decompress "^4.2.0"
|
decompress "^4.2.0"
|
||||||
fs-extra-promise "^1.0.1"
|
fs-extra-promise "^1.0.1"
|
||||||
http-proxy-agent "^2.0.0"
|
http-proxy-agent "^2.0.0"
|
||||||
|
|||||||
Reference in New Issue
Block a user