diff --git a/src/vs/workbench/api/node/extHostDocuments.ts b/src/vs/workbench/api/node/extHostDocuments.ts index 36784a021a9..2dab996c68f 100644 --- a/src/vs/workbench/api/node/extHostDocuments.ts +++ b/src/vs/workbench/api/node/extHostDocuments.ts @@ -292,7 +292,7 @@ export class ExtHostDocumentData extends MirrorModel2 { resultLines: string[] = []; resultLines.push(this._lines[startLineIndex].substring(range.start.character)); - for (var i = startLineIndex + 1; i < endLineIndex; i++) { + for (let i = startLineIndex + 1; i < endLineIndex; i++) { resultLines.push(this._lines[i]); } resultLines.push(this._lines[endLineIndex].substring(0, range.end.character)); diff --git a/src/vs/workbench/browser/parts/editor/editorActions.ts b/src/vs/workbench/browser/parts/editor/editorActions.ts index caa179ffe3c..bcf0e8370a2 100644 --- a/src/vs/workbench/browser/parts/editor/editorActions.ts +++ b/src/vs/workbench/browser/parts/editor/editorActions.ts @@ -154,7 +154,7 @@ export class FocusFirstGroupAction extends Action { // Find left editor and focus it let editors = this.editorService.getVisibleEditors(); - for (var editor of editors) { + for (let editor of editors) { if (editor.position === Position.LEFT) { this.editorGroupService.focusGroup(Position.LEFT); @@ -164,7 +164,7 @@ export class FocusFirstGroupAction extends Action { // Since no editor is currently opened, try to open last history entry to the target side let history = this.historyService.getHistory(); - for (var input of history) { + for (let input of history) { // For now only support to open resources from history to the side if (!!getUntitledOrFileResource(input)) { @@ -232,7 +232,7 @@ export abstract class BaseFocusSideGroupAction extends Action { // Otherwise try to find a history entry to open to the target editor side else if (referenceEditor) { let history = this.historyService.getHistory(); - for (var input of history) { + for (let input of history) { // For now only support to open files from history to the side if (!!getUntitledOrFileResource(input)) { diff --git a/src/vs/workbench/browser/parts/editor/editorPart.ts b/src/vs/workbench/browser/parts/editor/editorPart.ts index 2dc18921018..44f92863866 100644 --- a/src/vs/workbench/browser/parts/editor/editorPart.ts +++ b/src/vs/workbench/browser/parts/editor/editorPart.ts @@ -1114,8 +1114,8 @@ export class EditorPart extends Part implements IEditorPart, IEditorGroupService }); // Pass to instantiated editors - for (var i = 0; i < this.instantiatedEditors.length; i++) { - for (var j = 0; j < this.instantiatedEditors[i].length; j++) { + for (let i = 0; i < this.instantiatedEditors.length; i++) { + for (let j = 0; j < this.instantiatedEditors[i].length; j++) { if (this.visibleEditors.some(editor => editor === this.instantiatedEditors[i][j])) { continue; } diff --git a/src/vs/workbench/browser/parts/editor/titleControl.ts b/src/vs/workbench/browser/parts/editor/titleControl.ts index 0da21c50778..6c7ff173d30 100644 --- a/src/vs/workbench/browser/parts/editor/titleControl.ts +++ b/src/vs/workbench/browser/parts/editor/titleControl.ts @@ -412,7 +412,7 @@ export abstract class TitleControl implements ITitleAreaControl { getActions: () => TPromise.as(this.getContextMenuActions(identifier)), getActionsContext: () => identifier, getKeyBinding: (action) => { - var opts = this.keybindingService.lookupKeybindings(action.id); + const opts = this.keybindingService.lookupKeybindings(action.id); if (opts.length > 0) { return opts[0]; // only take the first one } diff --git a/src/vs/workbench/electron-browser/integration.ts b/src/vs/workbench/electron-browser/integration.ts index faaa4c2d47e..c74a9957930 100644 --- a/src/vs/workbench/electron-browser/integration.ts +++ b/src/vs/workbench/electron-browser/integration.ts @@ -156,7 +156,7 @@ export class ElectronIntegration { getAnchor: () => target, getActions: () => TPromise.as(TextInputActions), getKeyBinding: (action) => { - var opts = this.keybindingService.lookupKeybindings(action.id); + const opts = this.keybindingService.lookupKeybindings(action.id); if (opts.length > 0) { return opts[0]; // only take the first one } diff --git a/src/vs/workbench/electron-browser/main.ts b/src/vs/workbench/electron-browser/main.ts index ec40e197723..6f08dac59ae 100644 --- a/src/vs/workbench/electron-browser/main.ts +++ b/src/vs/workbench/electron-browser/main.ts @@ -31,7 +31,7 @@ const timers = (window).MonacoEnvironment.timers; function domContentLoaded(): winjs.Promise { return new winjs.Promise((c, e) => { - var readyState = document.readyState; + const readyState = document.readyState; if (readyState === 'complete' || (document && document.body !== null)) { window.setImmediate(c); } else { diff --git a/src/vs/workbench/parts/debug/browser/debugViewRegistry.ts b/src/vs/workbench/parts/debug/browser/debugViewRegistry.ts index 7887ee5a6ec..326cdac7f67 100644 --- a/src/vs/workbench/parts/debug/browser/debugViewRegistry.ts +++ b/src/vs/workbench/parts/debug/browser/debugViewRegistry.ts @@ -34,4 +34,4 @@ class DebugViewRegistryImpl implements IDebugViewRegistry { } } -export var DebugViewRegistry = new DebugViewRegistryImpl(); +export const DebugViewRegistry = new DebugViewRegistryImpl(); diff --git a/src/vs/workbench/parts/debug/common/debug.ts b/src/vs/workbench/parts/debug/common/debug.ts index e219ab000c4..6231a8bf2e9 100644 --- a/src/vs/workbench/parts/debug/common/debug.ts +++ b/src/vs/workbench/parts/debug/common/debug.ts @@ -265,7 +265,7 @@ export interface IConfigurationManager { onDidConfigurationChange: Event; } -export var IDebugService = createDecorator(DEBUG_SERVICE_ID); +export const IDebugService = createDecorator(DEBUG_SERVICE_ID); export interface IDebugService { _serviceBrand: any; diff --git a/src/vs/workbench/parts/debug/node/debugConfigurationManager.ts b/src/vs/workbench/parts/debug/node/debugConfigurationManager.ts index bb5b7cb41ce..cfe39aaedad 100644 --- a/src/vs/workbench/parts/debug/node/debugConfigurationManager.ts +++ b/src/vs/workbench/parts/debug/node/debugConfigurationManager.ts @@ -33,7 +33,7 @@ import { IQuickOpenService } from 'vs/workbench/services/quickopen/common/quickO // debuggers extension point -export var debuggersExtPoint = extensionsRegistry.ExtensionsRegistry.registerExtensionPoint('debuggers', { +export const debuggersExtPoint = extensionsRegistry.ExtensionsRegistry.registerExtensionPoint('debuggers', { description: nls.localize('vscode.extension.contributes.debuggers', 'Contributes debug adapters.'), type: 'array', defaultSnippets: [{ body: [{ type: '', extensions: [] }] }], @@ -126,7 +126,7 @@ export var debuggersExtPoint = extensionsRegistry.ExtensionsRegistry.registerExt // debug general schema -export var schemaId = 'vscode://schemas/launch'; +export const schemaId = 'vscode://schemas/launch'; const schema: IJSONSchema = { id: schemaId, type: 'object', diff --git a/src/vs/workbench/parts/emmet/node/emmet.d.ts b/src/vs/workbench/parts/emmet/node/emmet.d.ts index c21e27fe764..8e975877b73 100644 --- a/src/vs/workbench/parts/emmet/node/emmet.d.ts +++ b/src/vs/workbench/parts/emmet/node/emmet.d.ts @@ -146,9 +146,9 @@ declare module 'emmet' { */ export function run(action: string, editor: Editor, arg?: string): boolean; - export var preferences: Preferences; + export const preferences: Preferences; - export var profile: Profiles; + export const profile: Profiles; export function loadProfiles(profiles: any); } diff --git a/src/vs/workbench/parts/execution/common/execution.ts b/src/vs/workbench/parts/execution/common/execution.ts index cae42267023..0ecd56a3935 100644 --- a/src/vs/workbench/parts/execution/common/execution.ts +++ b/src/vs/workbench/parts/execution/common/execution.ts @@ -6,7 +6,7 @@ import {createDecorator} from 'vs/platform/instantiation/common/instantiation'; -export var ITerminalService = createDecorator('nativeTerminalService'); +export const ITerminalService = createDecorator('nativeTerminalService'); export interface ITerminalService { _serviceBrand: any; diff --git a/src/vs/workbench/parts/extensions/electron-browser/extensions.ts b/src/vs/workbench/parts/extensions/electron-browser/extensions.ts index f166eba21d8..098c6301291 100644 --- a/src/vs/workbench/parts/extensions/electron-browser/extensions.ts +++ b/src/vs/workbench/parts/extensions/electron-browser/extensions.ts @@ -40,9 +40,9 @@ export interface IExtension { outdated: boolean; } -export var SERVICE_ID = 'extensionsWorkbenchService'; +export const SERVICE_ID = 'extensionsWorkbenchService'; -export var IExtensionsWorkbenchService = createDecorator(SERVICE_ID); +export const IExtensionsWorkbenchService = createDecorator(SERVICE_ID); export interface IExtensionsWorkbenchService { _serviceBrand: any; diff --git a/src/vs/workbench/parts/feedback/electron-browser/feedbackStatusbarItem.ts b/src/vs/workbench/parts/feedback/electron-browser/feedbackStatusbarItem.ts index 31cb5e27ea7..737b57aa18c 100644 --- a/src/vs/workbench/parts/feedback/electron-browser/feedbackStatusbarItem.ts +++ b/src/vs/workbench/parts/feedback/electron-browser/feedbackStatusbarItem.ts @@ -24,8 +24,9 @@ class TwitterFeedbackService implements IFeedbackService { } public submitFeedback(feedback: IFeedback): void { - var queryString = `?${feedback.sentiment === 1 ? `hashtags=${this.combineHashTagsAsString()}&` : null}ref_src=twsrc%5Etfw&related=twitterapi%2Ctwitter&text=${feedback.feedback}&tw_p=tweetbutton&via=${TwitterFeedbackService.VIA_NAME}`; - var url = TwitterFeedbackService.TWITTER_URL + queryString; + const queryString = `?${feedback.sentiment === 1 ? `hashtags=${this.combineHashTagsAsString()}&` : null}ref_src=twsrc%5Etfw&related=twitterapi%2Ctwitter&text=${feedback.feedback}&tw_p=tweetbutton&via=${TwitterFeedbackService.VIA_NAME}`; + const url = TwitterFeedbackService.TWITTER_URL + queryString; + shell.openExternal(url); } diff --git a/src/vs/workbench/parts/files/browser/views/explorerViewer.ts b/src/vs/workbench/parts/files/browser/views/explorerViewer.ts index fadbab6d101..f15e78d33d1 100644 --- a/src/vs/workbench/parts/files/browser/views/explorerViewer.ts +++ b/src/vs/workbench/parts/files/browser/views/explorerViewer.ts @@ -286,6 +286,7 @@ export class FileRenderer extends ActionsRenderer implements IRenderer { if (!editableData) { let label = $('.explorer-item-label').appendTo(item); $('a.plain').text(stat.name).appendTo(label); + return null; } @@ -318,7 +319,7 @@ export class FileRenderer extends ActionsRenderer implements IRenderer { }, 0); }); - var toDispose = [ + const toDispose = [ inputBox, DOM.addStandardDisposableListener(inputBox.inputElement, DOM.EventType.KEY_DOWN, (e: IKeyboardEvent) => { if (e.equals(CommonKeybindings.ENTER)) { diff --git a/src/vs/workbench/parts/files/browser/views/openEditorsViewer.ts b/src/vs/workbench/parts/files/browser/views/openEditorsViewer.ts index b114b976f51..fad64ae505a 100644 --- a/src/vs/workbench/parts/files/browser/views/openEditorsViewer.ts +++ b/src/vs/workbench/parts/files/browser/views/openEditorsViewer.ts @@ -279,7 +279,7 @@ export class Controller extends treedefaults.DefaultController { } protected onEnter(tree: ITree, event: IKeyboardEvent): boolean { - var element = tree.getFocus(); + const element = tree.getFocus(); // Editor groups should never get selected nor expanded/collapsed if (element instanceof EditorGroup) { diff --git a/src/vs/workbench/parts/files/common/files.ts b/src/vs/workbench/parts/files/common/files.ts index dc51a73c9ef..ae31100c244 100644 --- a/src/vs/workbench/parts/files/common/files.ts +++ b/src/vs/workbench/parts/files/common/files.ts @@ -249,7 +249,7 @@ export interface IFileEditorDescriptor extends IEditorDescriptor { getMimeTypes(): string[]; } -export var ITextFileService = createDecorator(TEXT_FILE_SERVICE_ID); +export const ITextFileService = createDecorator(TEXT_FILE_SERVICE_ID); export interface IRawTextContent extends IBaseStat { diff --git a/src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts b/src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts index 5d7edccebe1..15c7b694520 100644 --- a/src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts +++ b/src/vs/workbench/parts/git/browser/gitWorkbenchContributions.ts @@ -431,7 +431,7 @@ export class DirtyDiffDecorator implements ext.IWorkbenchContribution { } } -export var VIEWLET_ID = 'workbench.view.git'; +export const VIEWLET_ID = 'workbench.view.git'; class OpenGitViewletAction extends viewlet.ToggleViewletAction { public static ID = VIEWLET_ID; diff --git a/src/vs/workbench/parts/git/common/git.ts b/src/vs/workbench/parts/git/common/git.ts index a15247e15f7..3bb7bfb6019 100644 --- a/src/vs/workbench/parts/git/common/git.ts +++ b/src/vs/workbench/parts/git/common/git.ts @@ -85,7 +85,7 @@ export enum Status { // Model events -export var ModelEvents = { +export const ModelEvents = { MODEL_UPDATED: 'ModelUpdated', STATUS_MODEL_UPDATED: 'StatusModelUpdated', HEAD_UPDATED: 'HEADUpdated', @@ -166,7 +166,7 @@ export enum RawServiceState { Disabled } -export var GitErrorCodes = { +export const GitErrorCodes = { BadConfigFile: 'BadConfigFile', AuthenticationFailed: 'AuthenticationFailed', NoUserNameConfigured: 'NoUserNameConfigured', @@ -195,7 +195,7 @@ export enum AutoFetcherState { // Service events -export var ServiceEvents = { +export const ServiceEvents = { STATE_CHANGED: 'stateChanged', REPO_CHANGED: 'repoChanged', OPERATION_START: 'operationStart', @@ -207,7 +207,7 @@ export var ServiceEvents = { // Service operations -export var ServiceOperations = { +export const ServiceOperations = { STATUS: 'status', INIT: 'init', ADD: 'add', @@ -289,9 +289,9 @@ export interface IRawGitService { getCommitTemplate(): TPromise; } -export var GIT_SERVICE_ID = 'gitService'; +export const GIT_SERVICE_ID = 'gitService'; -export var IGitService = createDecorator(GIT_SERVICE_ID); +export const IGitService = createDecorator(GIT_SERVICE_ID); export interface IGitService extends IEventEmitter { _serviceBrand: any; diff --git a/src/vs/workbench/parts/output/common/output.ts b/src/vs/workbench/parts/output/common/output.ts index ce62c62d6aa..392905a7839 100644 --- a/src/vs/workbench/parts/output/common/output.ts +++ b/src/vs/workbench/parts/output/common/output.ts @@ -46,7 +46,7 @@ export interface IOutputEvent { channelId?: string; } -export var IOutputService = createDecorator(OUTPUT_SERVICE_ID); +export const IOutputService = createDecorator(OUTPUT_SERVICE_ID); /** * The output service to manage output from the various processes running. diff --git a/src/vs/workbench/parts/search/common/replace.ts b/src/vs/workbench/parts/search/common/replace.ts index 847896322a8..ff8fee238ee 100644 --- a/src/vs/workbench/parts/search/common/replace.ts +++ b/src/vs/workbench/parts/search/common/replace.ts @@ -9,7 +9,7 @@ import { createDecorator } from 'vs/platform/instantiation/common/instantiation' import { IProgressRunner } from 'vs/platform/progress/common/progress'; import { EditorInput } from 'vs/workbench/common/editor'; -export var IReplaceService = createDecorator('replaceService'); +export const IReplaceService = createDecorator('replaceService'); export interface IReplaceService { diff --git a/src/vs/workbench/parts/tasks/common/taskService.ts b/src/vs/workbench/parts/tasks/common/taskService.ts index 3c4061e1107..6c1aa988661 100644 --- a/src/vs/workbench/parts/tasks/common/taskService.ts +++ b/src/vs/workbench/parts/tasks/common/taskService.ts @@ -13,7 +13,7 @@ import { ITaskSummary, TaskDescription, TaskEvent, TaskType } from 'vs/workbench export { ITaskSummary, TaskDescription, TaskEvent, TaskType }; -export var ITaskService = createDecorator('taskService'); +export const ITaskService = createDecorator('taskService'); export namespace TaskServiceEvents { export let Active: string = 'active'; diff --git a/src/vs/workbench/parts/terminal/electron-browser/terminal.ts b/src/vs/workbench/parts/terminal/electron-browser/terminal.ts index b7054c55728..eaacb006def 100644 --- a/src/vs/workbench/parts/terminal/electron-browser/terminal.ts +++ b/src/vs/workbench/parts/terminal/electron-browser/terminal.ts @@ -25,7 +25,7 @@ export const TERMINAL_DEFAULT_SHELL_WINDOWS = processes.getWindowsShell(); */ export const KEYBINDING_CONTEXT_TERMINAL_FOCUS = 'terminalFocus'; -export var ITerminalService = createDecorator(TERMINAL_SERVICE_ID); +export const ITerminalService = createDecorator(TERMINAL_SERVICE_ID); export interface ITerminalConfiguration { terminal: { diff --git a/src/vs/workbench/services/activity/common/activityService.ts b/src/vs/workbench/services/activity/common/activityService.ts index f7d7eb57a3f..fba35bedb2a 100644 --- a/src/vs/workbench/services/activity/common/activityService.ts +++ b/src/vs/workbench/services/activity/common/activityService.ts @@ -56,7 +56,7 @@ export class IconBadge extends BaseBadge { export class ProgressBadge extends BaseBadge { } -export var IActivityService = createDecorator('activityService'); +export const IActivityService = createDecorator('activityService'); export interface IActivityService { _serviceBrand: any; diff --git a/src/vs/workbench/services/editor/common/editorService.ts b/src/vs/workbench/services/editor/common/editorService.ts index 2a6c39c11c0..f5ae64db752 100644 --- a/src/vs/workbench/services/editor/common/editorService.ts +++ b/src/vs/workbench/services/editor/common/editorService.ts @@ -9,7 +9,7 @@ import {TPromise} from 'vs/base/common/winjs.base'; import {createDecorator, ServiceIdentifier} from 'vs/platform/instantiation/common/instantiation'; import {IEditorService, IEditor, IEditorInput, IEditorOptions, ITextEditorOptions, Position, Direction, IResourceInput, IEditorModel, ITextEditorModel} from 'vs/platform/editor/common/editor'; -export var IWorkbenchEditorService = createDecorator('editorService'); +export const IWorkbenchEditorService = createDecorator('editorService'); /** * The editor service allows to open editors and work on the active diff --git a/src/vs/workbench/services/group/common/groupService.ts b/src/vs/workbench/services/group/common/groupService.ts index 79cb621add5..728a103a731 100644 --- a/src/vs/workbench/services/group/common/groupService.ts +++ b/src/vs/workbench/services/group/common/groupService.ts @@ -16,7 +16,7 @@ export enum GroupArrangement { EVEN_WIDTH } -export var IEditorGroupService = createDecorator('editorGroupService'); +export const IEditorGroupService = createDecorator('editorGroupService'); /** * The editor service allows to open editors and work on the active diff --git a/src/vs/workbench/services/history/common/history.ts b/src/vs/workbench/services/history/common/history.ts index 07fced15498..6ccfd7f1566 100644 --- a/src/vs/workbench/services/history/common/history.ts +++ b/src/vs/workbench/services/history/common/history.ts @@ -7,7 +7,7 @@ import {createDecorator, ServiceIdentifier} from 'vs/platform/instantiation/common/instantiation'; import {IEditorInput} from 'vs/platform/editor/common/editor'; -export var IHistoryService = createDecorator('historyService'); +export const IHistoryService = createDecorator('historyService'); export interface IHistoryService { diff --git a/src/vs/workbench/services/panel/common/panelService.ts b/src/vs/workbench/services/panel/common/panelService.ts index 2adb874b2f0..54cf27aa27c 100644 --- a/src/vs/workbench/services/panel/common/panelService.ts +++ b/src/vs/workbench/services/panel/common/panelService.ts @@ -7,7 +7,7 @@ import {TPromise} from 'vs/base/common/winjs.base'; import {IPanel} from 'vs/workbench/common/panel'; import {createDecorator, ServiceIdentifier} from 'vs/platform/instantiation/common/instantiation'; -export var IPanelService = createDecorator('panelService'); +export const IPanelService = createDecorator('panelService'); export interface IPanelService { _serviceBrand : ServiceIdentifier; diff --git a/src/vs/workbench/services/part/common/partService.ts b/src/vs/workbench/services/part/common/partService.ts index 69a29205cb1..9b2a11072fd 100644 --- a/src/vs/workbench/services/part/common/partService.ts +++ b/src/vs/workbench/services/part/common/partService.ts @@ -20,7 +20,7 @@ export enum Position { RIGHT } -export var IPartService = createDecorator('partService'); +export const IPartService = createDecorator('partService'); export interface IPartService { _serviceBrand : ServiceIdentifier; diff --git a/src/vs/workbench/services/quickopen/common/quickOpenService.ts b/src/vs/workbench/services/quickopen/common/quickOpenService.ts index 5bdda84a0ca..bda3b1e786b 100644 --- a/src/vs/workbench/services/quickopen/common/quickOpenService.ts +++ b/src/vs/workbench/services/quickopen/common/quickOpenService.ts @@ -79,7 +79,7 @@ export interface IShowOptions { quickNavigateConfiguration?: IQuickNavigateConfiguration; } -export var IQuickOpenService = createDecorator('quickOpenService'); +export const IQuickOpenService = createDecorator('quickOpenService'); export interface IQuickOpenService { diff --git a/src/vs/workbench/services/themes/electron-browser/themeService.ts b/src/vs/workbench/services/themes/electron-browser/themeService.ts index 3c77c79e399..ebb1e8ade33 100644 --- a/src/vs/workbench/services/themes/electron-browser/themeService.ts +++ b/src/vs/workbench/services/themes/electron-browser/themeService.ts @@ -392,7 +392,7 @@ function _settingsToStatements(settings: ThemeSettingStyle): string { let statements: string[] = []; for (let settingName in settings) { - var value = settings[settingName]; + const value = settings[settingName]; switch (settingName) { case 'foreground': let foreground = new Color(value); diff --git a/src/vs/workbench/services/untitled/common/untitledEditorService.ts b/src/vs/workbench/services/untitled/common/untitledEditorService.ts index 90ce3e962c6..fe049315b4a 100644 --- a/src/vs/workbench/services/untitled/common/untitledEditorService.ts +++ b/src/vs/workbench/services/untitled/common/untitledEditorService.ts @@ -10,7 +10,7 @@ import {EventType} from 'vs/base/common/events'; import arrays = require('vs/base/common/arrays'); import {UntitledEditorInput} from 'vs/workbench/common/editor/untitledEditorInput'; -export var IUntitledEditorService = createDecorator('untitledEditorService'); +export const IUntitledEditorService = createDecorator('untitledEditorService'); export interface IUntitledEditorService { diff --git a/src/vs/workbench/services/viewlet/common/viewletService.ts b/src/vs/workbench/services/viewlet/common/viewletService.ts index edc418a34f9..730e77e680c 100644 --- a/src/vs/workbench/services/viewlet/common/viewletService.ts +++ b/src/vs/workbench/services/viewlet/common/viewletService.ts @@ -8,7 +8,7 @@ import {TPromise} from 'vs/base/common/winjs.base'; import {IViewlet} from 'vs/workbench/common/viewlet'; import {createDecorator, ServiceIdentifier} from 'vs/platform/instantiation/common/instantiation'; -export var IViewletService = createDecorator('viewletService'); +export const IViewletService = createDecorator('viewletService'); export interface IViewletService { _serviceBrand : ServiceIdentifier; diff --git a/src/vs/workbench/services/window/electron-browser/windowService.ts b/src/vs/workbench/services/window/electron-browser/windowService.ts index dfdd752d6d4..81af0856ffa 100644 --- a/src/vs/workbench/services/window/electron-browser/windowService.ts +++ b/src/vs/workbench/services/window/electron-browser/windowService.ts @@ -13,7 +13,7 @@ import {ipcRenderer as ipc, remote} from 'electron'; const windowId = remote.getCurrentWindow().id; -export var IWindowService = createDecorator('windowService'); +export const IWindowService = createDecorator('windowService'); export interface IWindowServices { windowService?: IWindowService; diff --git a/src/vs/workbench/services/workspace/common/contextService.ts b/src/vs/workbench/services/workspace/common/contextService.ts index 59e9b2a9430..f7f39f52422 100644 --- a/src/vs/workbench/services/workspace/common/contextService.ts +++ b/src/vs/workbench/services/workspace/common/contextService.ts @@ -11,7 +11,7 @@ import {createDecorator} from 'vs/platform/instantiation/common/instantiation'; import {IWorkspace, IConfiguration, IWorkspaceContextService as IBaseWorkspaceContextService} from 'vs/platform/workspace/common/workspace'; import {BaseWorkspaceContextService} from 'vs/platform/workspace/common/baseWorkspaceContextService'; -export var IWorkspaceContextService = createDecorator('contextService'); +export const IWorkspaceContextService = createDecorator('contextService'); export interface IWorkspaceContextService extends IBaseWorkspaceContextService { _serviceBrand: any;