Skip to content

Commit

Permalink
Prepare release next.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisalmen committed Oct 10, 2024
1 parent de5e0b2 commit b6dc5d2
Show file tree
Hide file tree
Showing 10 changed files with 72 additions and 85 deletions.
2 changes: 1 addition & 1 deletion docs/versions-and-history.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ The following table describes which version of **monaco-languageclient** and **@

| monaco-languageclient | monaco-editor-wrapper | monaco-editor-react | monaco-vscode-api / editor-api | vscode | monaco-editor | release date | comment |
| :---- | :---- | :--- | :--- | :--- | :--- | :--- | :--- |
| 9.0.0-next.2 | 6.0.0-next.2 | 6.0.0-next.2 | 10.0.1 | 1.94.1 | 0.52.0 | 2024-10-xy | |
| 9.0.0-next.2 | 6.0.0-next.2 | 6.0.0-next.2 | 10.0.1 | 1.94.1 | 0.52.0 | 2024-10-10 | |
| 8.8.3 | 5.5.3 | 4.5.3 | 8.0.4 | 1.92.2 | 0.51.0 | 2024-08-26 | |
| 8.8.2 | 5.5.2 | 4.5.2 | 8.0.2 | 1.92.2 | 0.50.0 | 2024-08-21 | |
| 8.8.1 | 5.5.1 | 4.5.1 | 8.0.1 | 1.92.1 | 0.50.0 | 2024-08-12 | |
Expand Down
2 changes: 1 addition & 1 deletion packages/client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to this npm module are documented in this file.

## [9.0.0-next.2] - 2024-10-xy
## [9.0.0-next.2] - 2024-10-10

- Support all arguments for monaco-vscode-api `initialize` [#756](https://github.com/TypeFox/monaco-languageclient/pull/756)
- Update to monaco-vscode-api 9.0.x [#749](https://github.com/TypeFox/monaco-languageclient/pull/749)
Expand Down
3 changes: 2 additions & 1 deletion packages/examples/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

All notable changes to this npm module are documented in this file.

## [2024.10.1] - 20241-10-xy
## [2024.10.1] - 20241-10-10

- Aligend example config. `htmlContainer` is now a required property of `editorAppConfig`
- Fixed problems with Statemachine example (two editor and react version)
- Json example exports a function for the configuration

## [2024.9.1] - 2024-09-27

Expand Down
95 changes: 51 additions & 44 deletions packages/examples/src/json/client/wrapperWs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,52 +15,56 @@ const text = `{
"line_endings": {"value": "unix"}
}`;

export const jsonClientUserConfig: WrapperConfig = {
logLevel: LogLevel.Debug,
vscodeApiConfig: {
userServices: {
...getKeybindingsServiceOverride(),
},
userConfiguration: {
json: JSON.stringify({
'workbench.colorTheme': 'Default Dark Modern',
'editor.guides.bracketPairsHorizontal': 'active',
'editor.lightbulb.enabled': 'On',
'editor.wordBasedSuggestions': 'off',
'editor.experimental.asyncTokenization': true
})
}
},
editorAppConfig: {
$type: 'extended',
codeResources: {
main: {
text,
fileExt: 'json'
export const buildJsonClientUserConfig = (params: {
htmlContainer: HTMLElement
}): WrapperConfig => {
return {
logLevel: LogLevel.Debug,
vscodeApiConfig: {
userServices: {
...getKeybindingsServiceOverride(),
},
userConfiguration: {
json: JSON.stringify({
'workbench.colorTheme': 'Default Dark Modern',
'editor.guides.bracketPairsHorizontal': 'active',
'editor.lightbulb.enabled': 'On',
'editor.wordBasedSuggestions': 'off',
'editor.experimental.asyncTokenization': true
})
}
},
useDiffEditor: false,
monacoWorkerFactory: configureMonacoWorkers,
htmlContainer: document.getElementById('monaco-editor-root')!
},
languageClientConfigs: {
json: {
languageId: 'json',
connection: {
options: {
$type: 'WebSocketUrl',
url: 'ws://localhost:30000/sampleServer',
startOptions: {
onCall: () => {
console.log('Connected to socket.');
},
reportStatus: true
},
stopOptions: {
onCall: () => {
console.log('Disconnected from socket.');
editorAppConfig: {
$type: 'extended',
codeResources: {
main: {
text,
fileExt: 'json'
}
},
useDiffEditor: false,
monacoWorkerFactory: configureMonacoWorkers,
htmlContainer: params.htmlContainer
},
languageClientConfigs: {
json: {
languageId: 'json',
connection: {
options: {
$type: 'WebSocketUrl',
url: 'ws://localhost:30000/sampleServer',
startOptions: {
onCall: () => {
console.log('Connected to socket.');
},
reportStatus: true
},
reportStatus: true
stopOptions: {
onCall: () => {
console.log('Disconnected from socket.');
},
reportStatus: true
}
}
}
}
Expand All @@ -73,7 +77,10 @@ export const runJsonWrapper = () => {

try {
document.querySelector('#button-start')?.addEventListener('click', async () => {
await wrapper.initAndStart(jsonClientUserConfig);
const config = buildJsonClientUserConfig({
htmlContainer: document.getElementById('monaco-editor-root')!
});
await wrapper.initAndStart(config);
});
document.querySelector('#button-dispose')?.addEventListener('click', async () => {
await wrapper.dispose();
Expand Down
2 changes: 1 addition & 1 deletion packages/wrapper-react/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to npm module [@typefox/monaco-editor-react](https://www.npmjs.com/package/@typefox/monaco-editor-react) are documented in this file.

## [6.0.0-next.2] - 2024-10-xy
## [6.0.0-next.2] - 2024-10-10

- Support all arguments for monaco-vscode-api `initialize` [#756](https://github.com/TypeFox/monaco-languageclient/pull/756)
- On startup the current containerRef is passed to the interal editor app/monaco-editor
Expand Down
2 changes: 1 addition & 1 deletion packages/wrapper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

All notable changes to npm module [monaco-editor-wrapper](https://www.npmjs.com/package/monaco-editor-wrapper) are documented in this file.

## [6.0.0-next.2] - 2024-10-xy
## [6.0.0-next.2] - 2024-10-10

- Support all arguments for monaco-vscode-api `initialize` [#756](https://github.com/TypeFox/monaco-languageclient/pull/756)
- This also allows to configure editor-, view- or workspace-service. This is a preparation for further enhancements.
Expand Down
10 changes: 7 additions & 3 deletions verify/angular/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@

import { AfterViewInit, Component } from '@angular/core';
import { MonacoEditorLanguageClientWrapper } from 'monaco-editor-wrapper';
import { jsonClientUserConfig } from 'monaco-languageclient-examples/json-client';
import { buildJsonClientUserConfig } from 'monaco-languageclient-examples/json-client';

@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.css']
styleUrls: ['./app.component.css'],
standalone: true
})
export class MonacoEditorComponent implements AfterViewInit {
title = 'angular-client';
Expand All @@ -19,8 +20,11 @@ export class MonacoEditorComponent implements AfterViewInit {
async ngAfterViewInit(): Promise<void> {
const wrapper = new MonacoEditorLanguageClientWrapper();

const config = buildJsonClientUserConfig({
htmlContainer: document.getElementById('monaco-editor-root')!
});
try {
await wrapper.initAndStart(jsonClientUserConfig);
await wrapper.initAndStart(config);
} catch (e) {
console.error(e);
}
Expand Down
25 changes: 0 additions & 25 deletions verify/angular/src/app/app.module.ts

This file was deleted.

10 changes: 3 additions & 7 deletions verify/angular/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
* Licensed under the MIT License. See LICENSE in the package root for license information.
* ------------------------------------------------------------------------------------------ */

import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
import { AppModule } from './app/app.module';

platformBrowserDynamic().bootstrapModule(AppModule)
.catch((err: Error) => {
console.error(err);
});
import { bootstrapApplication } from '@angular/platform-browser';
import { MonacoEditorComponent } from './app/app.component';
bootstrapApplication(MonacoEditorComponent);
6 changes: 5 additions & 1 deletion verify/webpack/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ const config = {
output: {
filename: 'main.js',
path: resolve(__dirname, 'dist', 'client'),
module: true
module: true,
workerChunkLoading: 'import',
environment: {
dynamicImportInWorker: true
}
},
target: 'web',
resolve: {
Expand Down

0 comments on commit b6dc5d2

Please sign in to comment.