提交 30b6b2e9 编写于 作者: B Benjamin Pasero

💄 workbench API

上级 f9587710
......@@ -7,6 +7,7 @@ import 'vs/workbench/workbench.web.main';
import { main } from 'vs/workbench/browser/web.main';
import { UriComponents } from 'vs/base/common/uri';
import { Event } from 'vs/base/common/event';
import { VSBuffer } from 'vs/base/common/buffer';
export interface IWorkbenchConstructionOptions {
......@@ -36,10 +37,15 @@ export interface IWorkbenchConstructionOptions {
* Experimental: The userData namespace is used to handle user specific application
* data like settings, keybindings, UI state and snippets.
*/
userData?: {
read(key: string): Promise<string>;
write(key: string, value: string): Promise<void>;
onDidChange: Event<string>;
userDataProvider?: {
readonly onDidChangeFile: Event<string[]>;
readFile(path: string): Promise<VSBuffer>;
readDirectory(path: string): Promise<string[]>;
writeFile(path: string, content: VSBuffer): Promise<void>;
delete(path: string): Promise<void>;
};
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册