Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch up monaco-vscode-api and monaco #89

Merged
merged 40 commits into from
Feb 1, 2024
Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
33fcf31
cleanup: remove extension files
Apr 21, 2023
de95910
cleanup: remove extension update script
Oct 16, 2023
93703bf
cleanup: remove outdated README instructions
Oct 16, 2023
939e8d9
cleanup: remove legacy code
Oct 16, 2023
336364f
refactor: rename directory
Oct 16, 2023
4b63767
feat: add scripts to update and download extension vsix
Oct 16, 2023
c45f20b
cleanup: remove deprecated theme management
Oct 16, 2023
75fb6c4
fix: fix eslint error
Oct 16, 2023
1bb057f
lib: update/install/uninstall dependencies
Oct 16, 2023
cdc33f1
feat: update rollup config
Oct 16, 2023
493d98b
fix: update target
Oct 16, 2023
9ad9f4e
feat: import vscode extensions
Oct 16, 2023
aacd0c7
fix: update workers config
Oct 16, 2023
3b55035
fix: update service initialization/usage
Oct 16, 2023
8c1cd18
fix: update import paths
Oct 16, 2023
3e1cae3
feat: install default extensions
Oct 16, 2023
11d1288
feat: add some optional features
Oct 16, 2023
928046e
libs: use latest version of monaco-vscode-api
samuel-olivier Oct 30, 2023
ab73c24
fix: improve worker workaround for webpack
samuel-olivier Oct 30, 2023
0aea4eb
refactor: make createEditor sync
samuel-olivier Oct 30, 2023
e3c8e25
fix: avoid module not found error
samuel-olivier Oct 30, 2023
d64903c
feat: fix worker configuration
Jan 25, 2024
309aa76
lib: update dependencies
Jan 25, 2024
8512eb0
fix: adapt code to lib update
Jan 25, 2024
fd44960
feat: expose a method to use global picker
Jan 25, 2024
6d23bc5
fix: remove extension scripts
Jan 25, 2024
efe9c77
lib: update all dependencies
Jan 26, 2024
085c3a7
fix: do not hash assets
Jan 26, 2024
2d6cdb4
cleanup: remove outdated doc
Jan 26, 2024
7a86817
fix: fix ci
Jan 26, 2024
80d3232
feat!: update extensions
Jan 26, 2024
d2a6d4f
fix: update node/npm
Jan 26, 2024
a6b06a3
cleanup: remove useless imports
Jan 26, 2024
6606dab
lib: use final version
Jan 29, 2024
86a1458
fix: remove outdated README section
Jan 29, 2024
5ae607c
fix: properly create workspace
Jan 29, 2024
69de554
feat: always register local extension host
Jan 29, 2024
667f381
feat: add missing service overrides
Jan 30, 2024
2cf2103
feat: allow crossorigin workers
Jan 30, 2024
f0a8305
fix: fix cross origin workers
Jan 30, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: properly create workspace
  • Loading branch information
Loïc Mangeonjean committed Jan 31, 2024
commit 5ae607cb522490394bbbee24715ec65db6bab350
11 changes: 9 additions & 2 deletions src/services.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import getExtensionServiceOverride from '@codingame/monaco-vscode-extensions-service-override'
import getModelServiceOverride from '@codingame/monaco-vscode-model-service-override'
import getDialogsServiceOverride from '@codingame/monaco-vscode-dialogs-service-override'
import getConfigurationServiceOverride from '@codingame/monaco-vscode-configuration-service-override'
import getConfigurationServiceOverride, { IStoredWorkspace } from '@codingame/monaco-vscode-configuration-service-override'
import getKeybindingsServiceOverride from '@codingame/monaco-vscode-keybindings-service-override'
import getTextmateServiceOverride from '@codingame/monaco-vscode-textmate-service-override'
import getThemeServiceOverride from '@codingame/monaco-vscode-theme-service-override'
@@ -17,6 +17,7 @@ import getLifecycleServiceOverride from '@codingame/monaco-vscode-lifecycle-serv
import getQuickAccessServiceOverride from '@codingame/monaco-vscode-quickaccess-service-override'
import { ILogService, LogLevel, StandaloneServices, initialize as initializeServices } from 'vscode/services'
import * as monaco from 'monaco-editor'
import { initFile } from '@codingame/monaco-vscode-files-service-override'
import EditorOpenHandlerRegistry from './tools/EditorOpenHandlerRegistry'

const editorOpenHandlerRegistry = new EditorOpenHandlerRegistry()
@@ -72,7 +73,13 @@ export async function initialize (): Promise<void> {
// wait a short time for the services to be registered
await new Promise(resolve => setTimeout(resolve, 0))

await initializeServices(services, undefined, { workspaceProvider: { open: async () => false, workspace: { workspaceUri: monaco.Uri.file('/tmp/project') }, trusted: true } })
const workspaceFile = monaco.Uri.file('/workspace.code-workspace')
await initFile(workspaceFile, JSON.stringify(<IStoredWorkspace>{
folders: [{
path: '/tmp/project'
}]
}))
await initializeServices(services, undefined, { workspaceProvider: { open: async () => false, workspace: { workspaceUri: workspaceFile }, trusted: true } })
StandaloneServices.get(ILogService).setLevel(LogLevel.Off)
}