Skip to content

Commit f9b3f17

Browse files
authored
Merge pull request #25 from CodinGame/improve-treeshaking
Mark more methods as pure
2 parents 4e40991 + b84158e commit f9b3f17

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

rollup/rollup.config.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ const PURE_FUNCTIONS = new Set([
2424
'registerWorkbenchContribution',
2525
'Object.freeze',
2626
'URI.parse',
27+
'registerColor',
28+
'transparent',
29+
'darken',
30+
'lighten',
31+
'Color.fromHex',
2732
'CommandsRegistry.registerCommand' // It's not pure but we don't want the additional static vscode commands registered
2833
])
2934
const EXTENSIONS = ['', '.ts', '.js']

src/services.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import Severity from 'vs/base/common/severity'
22
import type * as vscode from 'vscode'
33
import type { IProgressService } from 'vs/platform/progress/common/progress'
44
import { IExtensionDescription } from 'vs/platform/extensions/common/extensions'
5+
import { NotificationsFilter } from 'vs/platform/notification/common/notification'
56

67
export {
78
Severity
@@ -84,3 +85,7 @@ export { IPaneCompositePartService } from 'vs/workbench/services/panecomposite/b
8485
export { IPathService } from 'vs/workbench/services/path/common/pathService'
8586
export { ITextFileService } from 'vs/workbench/services/textfile/common/textfiles'
8687
export { IWorkingCopyFileService } from 'vs/workbench/services/workingCopy/common/workingCopyFileService'
88+
89+
export {
90+
NotificationsFilter
91+
}

0 commit comments

Comments
 (0)