Skip to content

Commit

Permalink
Merge pull request #109 from CodinGame/testing-feature
Browse files Browse the repository at this point in the history
Testing feature
  • Loading branch information
CGNonofr authored Mar 13, 2024
2 parents 8b578e8 + 95ab9db commit 2688874
Show file tree
Hide file tree
Showing 5 changed files with 173 additions and 2 deletions.
155 changes: 155 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@
"types": "./dist/features/debug.d.ts",
"default": "./dist/features/debug.js"
},
"./features/testing": {
"types": "./dist/features/testing.d.ts",
"default": "./dist/features/testing.js"
},
"./features/search": {
"types": "./dist/features/search.d.ts",
"default": "./dist/features/search.js"
Expand Down Expand Up @@ -68,6 +72,9 @@
"features/debug": [
"./dist/features/debug.d.ts"
],
"features/testing": [
"./dist/features/debug.d.ts"
],
"features/search": [
"./dist/features/search.d.ts"
],
Expand Down Expand Up @@ -148,6 +155,7 @@
"@codingame/monaco-vscode-sql-default-extension": "^3.1.0",
"@codingame/monaco-vscode-storage-service-override": "^3.1.0",
"@codingame/monaco-vscode-swift-default-extension": "^3.1.0",
"@codingame/monaco-vscode-testing-service-override": "^3.1.1",
"@codingame/monaco-vscode-textmate-service-override": "^3.1.0",
"@codingame/monaco-vscode-theme-defaults-default-extension": "^3.1.0",
"@codingame/monaco-vscode-theme-service-override": "^3.1.0",
Expand Down
3 changes: 2 additions & 1 deletion rollup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import * as rollup from 'rollup'
import builtins from 'rollup-plugin-node-builtins'
import vsixPlugin from '@codingame/monaco-vscode-rollup-vsix-plugin'
import glob from 'fast-glob'
import { addExtension } from '@rollup/pluginutils'
import path from 'path'
import pkg from './package.json' assert { type: 'json' }
import { addExtension } from '@rollup/pluginutils'

const externals = Object.keys(pkg.dependencies)

Expand All @@ -23,6 +23,7 @@ export default rollup.defineConfig({
'features/viewPanels': 'src/features/viewPanels.ts',
'features/search': 'src/features/search.ts',
'features/debug': 'src/features/debug.ts',
'features/testing': 'src/features/testing.ts',
'features/extensionHostWorker': 'src/features/extensionHostWorker.ts',
'features/notifications': 'src/features/notifications.ts',
'features/extensionGallery': 'src/features/extensionGallery.ts',
Expand Down
6 changes: 6 additions & 0 deletions src/features/testing.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import getTestingServiceOverride from '@codingame/monaco-vscode-testing-service-override'
import { registerServices } from '../services'

registerServices({
...getTestingServiceOverride()
})
3 changes: 2 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,13 @@ import { createEditor, createModelReference, registerEditorOpenHandler } from '.
import { updateUserConfiguration, registerConfigurations, registerDefaultConfigurations, onConfigurationChanged, getConfiguration, getUserConfiguration, onUserConfigurationChange } from './configuration'
import { getMonacoLanguage, loadLanguage } from './languages'
import { updateKeybindings, updateEditorKeybindingsMode } from './keybindings'
import { generateAndInitializeWorkspace, initialize, initializePromise, isInitialized, setUseGlobalPicker } from './services'
import { generateAndInitializeWorkspace, initialize, initializePromise, isInitialized, registerServices, setUseGlobalPicker } from './services'
import './style'
export * from './tools'

export {
monaco,
registerServices,
initialize,
generateAndInitializeWorkspace,
isInitialized,
Expand Down

0 comments on commit 2688874

Please sign in to comment.