Skip to content

Commit

Permalink
Merge pull request #25 from CodinGame/improve-treeshaking
Browse files Browse the repository at this point in the history
Mark more methods as pure
  • Loading branch information
CGNonofr committed Jul 18, 2022
2 parents 4e40991 + b84158e commit f9b3f17
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions rollup/rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ const PURE_FUNCTIONS = new Set([
'registerWorkbenchContribution',
'Object.freeze',
'URI.parse',
'registerColor',
'transparent',
'darken',
'lighten',
'Color.fromHex',
'CommandsRegistry.registerCommand' // It's not pure but we don't want the additional static vscode commands registered
])
const EXTENSIONS = ['', '.ts', '.js']
Expand Down
5 changes: 5 additions & 0 deletions src/services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import Severity from 'vs/base/common/severity'
import type * as vscode from 'vscode'
import type { IProgressService } from 'vs/platform/progress/common/progress'
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions'
import { NotificationsFilter } from 'vs/platform/notification/common/notification'

export {
Severity
Expand Down Expand Up @@ -84,3 +85,7 @@ export { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/b
export { IPathService } from 'vs/workbench/services/path/common/pathService'
export { ITextFileService } from 'vs/workbench/services/textfile/common/textfiles'
export { IWorkingCopyFileService } from 'vs/workbench/services/workingCopy/common/workingCopyFileService'

export {
NotificationsFilter
}

0 comments on commit f9b3f17

Please sign in to comment.