Skip to content

Commit 3ba85cb

Browse files
author
Benjamin Pasero
committed
sqlite - more renames
1 parent 37cfa4e commit 3ba85cb

55 files changed

Lines changed: 164 additions & 164 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/vs/editor/browser/config/configuration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ export function restoreFontInfo(storageService: IStorageService): void {
7676

7777
export function saveFontInfo(storageService: IStorageService): void {
7878
let knownFontInfo = CSSBasedConfiguration.INSTANCE.saveFontInfo();
79-
storageService.set('editorFontInfo', JSON.stringify(knownFontInfo), StorageScope.GLOBAL);
79+
storageService.store('editorFontInfo', JSON.stringify(knownFontInfo), StorageScope.GLOBAL);
8080
}
8181

8282
export interface ISerializedFontInfo {

src/vs/editor/contrib/find/findController.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -159,13 +159,13 @@ export class CommonFindController extends Disposable implements editorCommon.IEd
159159

160160
private saveQueryState(e: FindReplaceStateChangedEvent) {
161161
if (e.isRegex) {
162-
this.storageService.set('editor.isRegex', this._state.actualIsRegex, StorageScope.WORKSPACE);
162+
this.storageService.store('editor.isRegex', this._state.actualIsRegex, StorageScope.WORKSPACE);
163163
}
164164
if (e.wholeWord) {
165-
this.storageService.set('editor.wholeWord', this._state.actualWholeWord, StorageScope.WORKSPACE);
165+
this.storageService.store('editor.wholeWord', this._state.actualWholeWord, StorageScope.WORKSPACE);
166166
}
167167
if (e.matchCase) {
168-
this.storageService.set('editor.matchCase', this._state.actualMatchCase, StorageScope.WORKSPACE);
168+
this.storageService.store('editor.matchCase', this._state.actualMatchCase, StorageScope.WORKSPACE);
169169
}
170170
}
171171

src/vs/editor/contrib/find/test/findController.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ suite('FindController', () => {
6666
get: (key: string) => queryState[key],
6767
getBoolean: (key: string) => !!queryState[key],
6868
getInteger: (key: string) => undefined,
69-
set: (key: string, value: any) => { queryState[key] = value; return Promise.resolve(); },
70-
delete: (key) => void 0
69+
store: (key: string, value: any) => { queryState[key] = value; return Promise.resolve(); },
70+
remove: (key) => void 0
7171
} as IStorageService);
7272

7373
if (platform.isMacintosh) {
@@ -441,8 +441,8 @@ suite('FindController query options persistence', () => {
441441
get: (key: string) => queryState[key],
442442
getBoolean: (key: string) => !!queryState[key],
443443
getInteger: (key: string) => undefined,
444-
set: (key: string, value: any) => { queryState[key] = value; return Promise.resolve(); },
445-
delete: (key) => void 0
444+
store: (key: string, value: any) => { queryState[key] = value; return Promise.resolve(); },
445+
remove: (key) => void 0
446446
} as IStorageService);
447447

448448
test('matchCase', () => {

src/vs/editor/contrib/multicursor/test/multicursor.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ suite('Multicursor selection', () => {
6666
get: (key: string) => queryState[key],
6767
getBoolean: (key: string) => !!queryState[key],
6868
getInteger: (key: string) => undefined,
69-
set: (key: string, value: any) => { queryState[key] = value; return Promise.resolve(); },
70-
delete: (key) => void 0
69+
store: (key: string, value: any) => { queryState[key] = value; return Promise.resolve(); },
70+
remove: (key) => void 0
7171
} as IStorageService);
7272

7373
test('issue #8817: Cursor position changes when you cancel multicursor', () => {

src/vs/editor/contrib/referenceSearch/referencesController.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export abstract class ReferencesController implements editorCommon.IEditorContri
102102
this._disposables.push(this._widget.onDidClose(() => {
103103
modelPromise.cancel();
104104

105-
this.storageService.set(storageKey, JSON.stringify(this._widget.layoutData), StorageScope.GLOBAL);
105+
this.storageService.store(storageKey, JSON.stringify(this._widget.layoutData), StorageScope.GLOBAL);
106106
this._widget = null;
107107
this.closeWidget();
108108
}));

src/vs/editor/contrib/suggest/suggestMemory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,6 @@ export class SuggestMemories {
244244

245245
private _flush() {
246246
const raw = JSON.stringify(this._strategy);
247-
this.storageService.set(`${this._storagePrefix}/${this._mode}`, raw, StorageScope.WORKSPACE);
247+
this.storageService.store(`${this._storagePrefix}/${this._mode}`, raw, StorageScope.WORKSPACE);
248248
}
249249
}

src/vs/editor/contrib/suggest/suggestWidget.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1048,7 +1048,7 @@ export class SuggestWidget implements IContentWidget, IListVirtualDelegate<IComp
10481048
}
10491049

10501050
private updateExpandDocsSetting(value: boolean) {
1051-
this.storageService.set('expandSuggestionDocs', value, StorageScope.GLOBAL);
1051+
this.storageService.store('expandSuggestionDocs', value, StorageScope.GLOBAL);
10521052
}
10531053

10541054
dispose(): void {

src/vs/platform/extensionManagement/common/extensionEnablementService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,9 @@ export class ExtensionEnablementService implements IExtensionEnablementService {
281281

282282
private _setExtensions(storageId: string, extensions: IExtensionIdentifier[], scope: StorageScope, extension: IExtensionIdentifier): void {
283283
if (extensions.length) {
284-
this.storageService.set(storageId, JSON.stringify(extensions.map(({ id, uuid }) => (<IExtensionIdentifier>{ id, uuid }))), scope);
284+
this.storageService.store(storageId, JSON.stringify(extensions.map(({ id, uuid }) => (<IExtensionIdentifier>{ id, uuid }))), scope);
285285
} else {
286-
this.storageService.delete(storageId, scope);
286+
this.storageService.remove(storageId, scope);
287287
}
288288
}
289289

src/vs/platform/integrity/node/integrityServiceImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class IntegrityStorage {
4848

4949
public set(data: IStorageData): void {
5050
this._value = data;
51-
this.storageService.set(IntegrityStorage.KEY, JSON.stringify(this._value), StorageScope.GLOBAL);
51+
this.storageService.store(IntegrityStorage.KEY, JSON.stringify(this._value), StorageScope.GLOBAL);
5252
}
5353
}
5454

src/vs/platform/lifecycle/electron-browser/lifecycleService.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ export class LifecycleService extends Disposable implements ILifecycleService {
5252

5353
private resolveStartupKind(): StartupKind {
5454
const lastShutdownReason = this.storageService.getInteger(LifecycleService.LAST_SHUTDOWN_REASON_KEY, StorageScope.WORKSPACE);
55-
this.storageService.delete(LifecycleService.LAST_SHUTDOWN_REASON_KEY, StorageScope.WORKSPACE);
55+
this.storageService.remove(LifecycleService.LAST_SHUTDOWN_REASON_KEY, StorageScope.WORKSPACE);
5656

5757
let startupKind: StartupKind;
5858
if (lastShutdownReason === ShutdownReason.RELOAD) {
@@ -76,13 +76,13 @@ export class LifecycleService extends Disposable implements ILifecycleService {
7676
this.logService.trace(`lifecycle: onBeforeUnload (reason: ${reply.reason})`);
7777

7878
// store shutdown reason to retrieve next startup
79-
this.storageService.set(LifecycleService.LAST_SHUTDOWN_REASON_KEY, JSON.stringify(reply.reason), StorageScope.WORKSPACE);
79+
this.storageService.store(LifecycleService.LAST_SHUTDOWN_REASON_KEY, JSON.stringify(reply.reason), StorageScope.WORKSPACE);
8080

8181
// trigger onWillShutdown events and veto collecting
8282
this.handleWillShutdown(reply.reason).then(veto => {
8383
if (veto) {
8484
this.logService.trace('lifecycle: onBeforeUnload prevented via veto');
85-
this.storageService.delete(LifecycleService.LAST_SHUTDOWN_REASON_KEY, StorageScope.WORKSPACE);
85+
this.storageService.remove(LifecycleService.LAST_SHUTDOWN_REASON_KEY, StorageScope.WORKSPACE);
8686
ipc.send(reply.cancelChannel, windowId);
8787
} else {
8888
this.logService.trace('lifecycle: onBeforeUnload continues without veto');

0 commit comments

Comments
 (0)