Skip to content

Commit

Permalink
#521 Added workspace folder config
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Aug 18, 2023
1 parent d955d2f commit edb185f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 6 additions & 2 deletions packages/examples/main/src/python/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ const createLanguageClient = (transports: MessageTransports): MonacoLanguageClie
error: () => ({ action: ErrorAction.Continue }),
closed: () => ({ action: CloseAction.DoNotRestart })
},
workspaceFolder: {
index: 0,
name: 'workspace',
uri: monaco.Uri.parse('/tmp')
},
synchronize: {
fileEvents: [vscode.workspace.createFileSystemWatcher('**')]
}
Expand All @@ -72,11 +77,10 @@ const run = async () => {
enableModelService: true,
enableThemeService: true,
enableTextmateService: true,
configureConfigurationServiceConfig: {
configureConfigurationService: {
defaultWorkspaceUri: '/tmp'
},
enableKeybindingsService: true,
enableQuickaccessService: true,
debugLogging: true
});

Expand Down
2 changes: 0 additions & 2 deletions packages/examples/main/src/python/workspace/src/hello.py

This file was deleted.

0 comments on commit edb185f

Please sign in to comment.