提交 b357df07 编写于 作者: C Christof Marti

Proposed credentials API: Fix linux builds

上级 9ddee048
......@@ -29,6 +29,7 @@ RUN apt-get install -y libx11-xcb-dev libx11-xcb-dev:i386
RUN apt-get install -y libgl1-mesa-glx:i386 libgl1-mesa-dri:i386
RUN apt-get install -y libxkbfile-dev
RUN apt-get install -y bc bsdmainutils
RUN apt-get install -y libsecret-1-dev
# Xvfb
# Thanks https://medium.com/@griggheo/running-headless-selenium-webdriver-tests-in-docker-containers-342fdbabf756
......
......@@ -33,7 +33,6 @@
"https-proxy-agent": "0.3.6",
"iconv-lite": "0.4.15",
"jschardet": "^1.4.2",
"keytar": "^4.0.3",
"minimist": "1.2.0",
"native-keymap": "1.2.4",
"node-pty": "0.6.9",
......@@ -126,6 +125,7 @@
"url": "https://github.com/Microsoft/vscode/issues"
},
"optionalDependencies": {
"keytar": "^4.0.3",
"windows-foreground-love": "0.1.0",
"windows-mutex": "^0.2.0",
"fsevents": "0.3.8"
......
......@@ -6,7 +6,14 @@
import { TPromise } from 'vs/base/common/winjs.base';
import { ICredentialsService } from 'vs/platform/credentials/common/credentials';
import * as keytar from 'keytar';
import * as keytarType from 'keytar';
let keytar: typeof keytarType;
require(['keytar'], ([k]) => {
keytar = k;
}, err => {
// TODO chrmarti
});
export class CredentialsService implements ICredentialsService {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册