mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-24 02:28:34 +01:00
first version of simple clipboard API, #217
This commit is contained in:
@@ -61,6 +61,7 @@ import { ExtHostComments } from './extHostComments';
|
||||
import { ExtHostSearch } from './extHostSearch';
|
||||
import { ExtHostUrls } from './extHostUrls';
|
||||
import { localize } from 'vs/nls';
|
||||
import { ExtHostClipboard } from 'vs/workbench/api/node/extHostClipboard';
|
||||
|
||||
export interface IExtensionApiFactory {
|
||||
(extension: IExtensionDescription): typeof vscode;
|
||||
@@ -134,6 +135,7 @@ export function createApiFactory(
|
||||
rpcProtocol.assertRegistered(expected);
|
||||
|
||||
// Other instances
|
||||
const extHostClipboard = new ExtHostClipboard(rpcProtocol);
|
||||
const extHostMessageService = new ExtHostMessageService(rpcProtocol);
|
||||
const extHostDialogs = new ExtHostDialogs(rpcProtocol);
|
||||
const extHostStatusBar = new ExtHostStatusBar(rpcProtocol);
|
||||
@@ -237,6 +239,10 @@ export function createApiFactory(
|
||||
get onDidChangeLogLevel() {
|
||||
checkProposedApiEnabled(extension);
|
||||
return extHostLogService.onDidChangeLogLevel;
|
||||
},
|
||||
get clipboard(): vscode.Clipboard {
|
||||
checkProposedApiEnabled(extension);
|
||||
return extHostClipboard;
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user