mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
switching to noUnusedLocals : for #37212
This commit is contained in:
parent
3ac890f6ed
commit
7a2065f582
|
@ -15,13 +15,10 @@ export function applyEdits(document: TextDocument, edits: TextEdit[]): string {
|
|||
}
|
||||
return startDiff;
|
||||
});
|
||||
// @ts-ignore unused local
|
||||
let lastOffset = text.length;
|
||||
sortedEdits.forEach(e => {
|
||||
let startOffset = document.offsetAt(e.range.start);
|
||||
let endOffset = document.offsetAt(e.range.end);
|
||||
text = text.substring(0, startOffset) + e.newText + text.substring(endOffset, text.length);
|
||||
lastOffset = startOffset;
|
||||
});
|
||||
return text;
|
||||
}
|
||||
|
|
|
@ -50,11 +50,6 @@ interface Settings {
|
|||
};
|
||||
}
|
||||
|
||||
// @ts-ignore unused type
|
||||
interface JSONSettings {
|
||||
schemas: JSONSchemaSettings[];
|
||||
}
|
||||
|
||||
interface JSONSchemaSettings {
|
||||
fileMatch?: string[];
|
||||
url?: string;
|
||||
|
|
|
@ -11,7 +11,6 @@ import { Action } from 'vs/base/common/actions';
|
|||
import { firstIndex } from 'vs/base/common/arrays';
|
||||
import { KeyMod, KeyChord, KeyCode } from 'vs/base/common/keyCodes';
|
||||
import { SyncActionDescriptor } from 'vs/platform/actions/common/actions';
|
||||
import { IMessageService, Severity } from 'vs/platform/message/common/message';
|
||||
import { Registry } from 'vs/platform/registry/common/platform';
|
||||
import { IWorkbenchActionRegistry, Extensions } from 'vs/workbench/common/actions';
|
||||
import { IQuickOpenService, IPickOpenEntry } from 'vs/platform/quickOpen/common/quickOpen';
|
||||
|
@ -36,8 +35,6 @@ export class SelectColorThemeAction extends Action {
|
|||
id: string,
|
||||
label: string,
|
||||
@IQuickOpenService private quickOpenService: IQuickOpenService,
|
||||
// @ts-ignore unused injected service
|
||||
@IMessageService private messageService: IMessageService,
|
||||
@IWorkbenchThemeService private themeService: IWorkbenchThemeService,
|
||||
@IExtensionGalleryService private extensionGalleryService: IExtensionGalleryService,
|
||||
@IViewletService private viewletService: IViewletService,
|
||||
|
@ -97,7 +94,6 @@ class SelectIconThemeAction extends Action {
|
|||
id: string,
|
||||
label: string,
|
||||
@IQuickOpenService private quickOpenService: IQuickOpenService,
|
||||
@IMessageService private messageService: IMessageService,
|
||||
@IWorkbenchThemeService private themeService: IWorkbenchThemeService,
|
||||
@IExtensionGalleryService private extensionGalleryService: IExtensionGalleryService,
|
||||
@IViewletService private viewletService: IViewletService,
|
||||
|
@ -128,7 +124,6 @@ class SelectIconThemeAction extends Action {
|
|||
}
|
||||
this.themeService.setFileIconTheme(theme && theme.id, target).done(null,
|
||||
err => {
|
||||
this.messageService.show(Severity.Info, localize('problemChangingIconTheme', "Problem setting icon theme: {0}", err.message));
|
||||
this.themeService.setFileIconTheme(currentTheme.id, null);
|
||||
}
|
||||
);
|
||||
|
|
|
@ -92,8 +92,7 @@ export class WorkbenchThemeService implements IWorkbenchThemeService {
|
|||
|
||||
constructor(
|
||||
container: HTMLElement,
|
||||
// @ts-ignore unused injected service
|
||||
@IExtensionService private extensionService: IExtensionService,
|
||||
@IExtensionService extensionService: IExtensionService,
|
||||
@IStorageService private storageService: IStorageService,
|
||||
@IBroadcastService private broadcastService: IBroadcastService,
|
||||
@IConfigurationService private configurationService: IConfigurationService,
|
||||
|
|
Loading…
Reference in a new issue