Use ref instead of version

This commit is contained in:
Sandeep Somavarapu
2019-09-12 16:17:05 +02:00
parent eb55f59c93
commit 88e5a183ae
7 changed files with 24 additions and 24 deletions

View File

@@ -38,11 +38,11 @@ export class ExtHostUserData implements ExtHostUserDataShape {
return this.userDataProvider.read(key);
}
$write(key: string, version: number, content: string): Promise<void> {
$write(key: string, content: string, ref: string): Promise<string> {
if (!this.userDataProvider) {
throw new Error('No remote user data provider exists.');
}
return this.userDataProvider.write(key, version, content);
return this.userDataProvider.write(key, content, ref);
}
}