-
-
Notifications
You must be signed in to change notification settings - Fork 182
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #823 from TypeFox/react-views-init
@typefox/monaco-editor-react now works with views service
- Loading branch information
Showing
46 changed files
with
1,645 additions
and
641 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,4 +5,4 @@ node_modules | |
*.tsbuildinfo | ||
.angular | ||
__screenshots__ | ||
.chrome/profile | ||
.chrome |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,11 @@ | |
|
||
All notable changes to this npm module are documented in this file. | ||
|
||
## [2025.1.1] - 2025-01-09 | ||
|
||
- Updated to `[email protected]`, `[email protected]` and `@typefox/[email protected]`. | ||
- Added a react version of the app playground to verify PR "`@typefox/monaco-editor-react` now works with views service" [#823](https://github.com/TypeFox/monaco-languageclient/pull/823) | ||
|
||
## [2024.12.6] - 2024-12-18 | ||
|
||
- Use final release of `[email protected]`, `[email protected]`, `[email protected]` and `@typefox/[email protected]`. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>Application Playground</title> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<script src="./mini-coi.js" scope="./"></script> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="stylesheet" href="./resources/styles/views.css"> | ||
</head> | ||
|
||
<!-- body style of vscode theme are not applied when embedded in react --> | ||
<body style="background-color: #1f1f1f; color: #cccccc;"> | ||
<div class="exampleHeadelineDiv"> | ||
<b class="exampleHeadeline">Application Playground</b> - [<a href="./index.html">Back to Index</a>] <b>Heads up:</b> This is a prototype and still evolving. | ||
<br> | ||
<button type="button" id="button-start">Start</button> | ||
<label>Enable Strict mode:</label><input type="checkbox" id="checkbox-strictmode" /> | ||
</div> | ||
<div id="react-root"></div> | ||
<script type="module" rel="modulepreload" src="./src/appPlayground/reactLauncher"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<title>Application Playground</title> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="stylesheet" href="./resources/styles/views.css"> | ||
</head> | ||
|
||
<!-- body style of vscode theme are not applied when embedded in react --> | ||
<body style="background-color: #1f1f1f; color: #cccccc;"> | ||
<div class="exampleHeadelineDiv"> | ||
<b class="exampleHeadeline">Application Playground</b> - [<a href="../../index.html">Back to Index</a>] <b>Heads up:</b> This is a prototype and still evolving. | ||
<br> | ||
<button type="button" id="button-start">Start</button> | ||
<label>Enable Strict mode:</label><input type="checkbox" id="checkbox-strictmode" /> | ||
</div> | ||
<div id="react-root"></div> | ||
<script type="module" rel="modulepreload" src="./src/appPlayground/reactLauncher"></script> | ||
</body> | ||
|
||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* -------------------------------------------------------------------------------------------- | ||
* Copyright (c) 2024 TypeFox and others. | ||
* Licensed under the MIT License. See LICENSE in the package root for license information. | ||
* ------------------------------------------------------------------------------------------ */ | ||
|
||
import * as vscode from 'vscode'; | ||
import { RegisterLocalProcessExtensionResult } from 'vscode/extensions'; | ||
import { MonacoEditorLanguageClientWrapper } from 'monaco-editor-wrapper'; | ||
import { ConfigResult } from './config.js'; | ||
|
||
export const configurePostStart = async (wrapper: MonacoEditorLanguageClientWrapper, configResult: ConfigResult) => { | ||
const result = wrapper.getExtensionRegisterResult('mlc-app-playground') as RegisterLocalProcessExtensionResult; | ||
result.setAsDefaultApi(); | ||
|
||
// WA: Force show explorer and not search | ||
// await vscode.commands.executeCommand('workbench.view.explorer'); | ||
|
||
await Promise.all([ | ||
await vscode.workspace.openTextDocument(configResult.helloTsUri), | ||
await vscode.workspace.openTextDocument(configResult.testerTsUri) | ||
]); | ||
|
||
await Promise.all([ | ||
await vscode.window.showTextDocument(configResult.helloTsUri) | ||
]); | ||
|
||
console.log('Application Playground started'); | ||
}; |
Oops, something went wrong.