mirror of
https://github.com/microsoft/vscode.git
synced 2026-04-23 01:58:53 +01:00
Use ref instead of version
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user