Skip to content

Commit 402378e

Browse files
committed
first release
it has a basic route manager.
1 parent 71b894e commit 402378e

File tree

151 files changed

+121815
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

151 files changed

+121815
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
node_modules

assets/control/bootstrap/2.3.1/bootstrap.min.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/control/jquery/1.9.1/jquery.min.js

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/control/monaco/CHANGELOG.md

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
# Monaco Editor Change log
2+
3+
## [0.8.3]
4+
- Fixes an issue in monaco-typescript where it would attempt to validate a disposed model.
5+
6+
## [0.8.2]
7+
- Fixes the following regressions:
8+
- [issue #385](https://github.com/Microsoft/monaco-editor/issues/385): Cannot add action to the left-hand-side of the diff editor
9+
- [issue #386](https://github.com/Microsoft/monaco-editor/issues/386): Shortcuts for actions added via editor.addAction don't show up in the Command Palette
10+
- [issue #387](https://github.com/Microsoft/monaco-editor/issues/387): Cannot change diff editor to a custom theme based on high contrast
11+
12+
## [0.8.1]
13+
- CSS/JSON/HTML language supports updated:
14+
- CSS: Support for @apply
15+
- SCSS: Map support
16+
- New HTML formatter options: unformatedContent, wrapAttributes
17+
- Fixed issue where the editor was throwing in Safari due to `Intl` missing.
18+
- Fixed multiple issues where the editor would not position the cursor correctly when using browser zooming.
19+
20+
### API
21+
- Added `disableMonospaceOptimizations` editor option that can be used in case browser zooming exposes additional issues.
22+
- Added `formatOnPaste` editor option.
23+
- Added `IActionDescriptor.precondition`.
24+
- Breaking change: renamed `registerTypeDefinitionProvider` to `registerImplementationProvider` and associated types.
25+
26+
## [0.8.0]
27+
- This release has been brewing for a while and comes with quite a number of important changes.
28+
- There are many bugfixes and speed/memory usage improvements.
29+
- Now shipping TypeScript v2.1.5 in `monaco-typescript` (JS and TS language support).
30+
31+
### No longer supporting IE9 and IE10
32+
- we have not made the editor fail on purpose in these browsers, but we have removed IE9/IE10 targeted workarounds from our codebase;
33+
- now using **Typed Arrays** in a number of key places resulting in considerable speed boosts and lower memory consumption.
34+
35+
### Monarch Tokenizer
36+
- Monarch states are now memoized up to a depth of 5. This results in considerable memory improvements for files with many lines.
37+
- Speed improvements to Monarch tokenizer that resulted in one breaking change:
38+
- when entering an embedded mode (i.e. `nextEmbedded`), the state ending up in must immediately contain a `nextEmbedded: "@pop"` rule. This helps in quickly figuring out where the embedded mode should be left. The editor will throw an error if the Monarch grammar does not respect this condition.
39+
40+
### Tokens are styled in JS (not in CSS anymore)
41+
- This is a breaking change
42+
- Before, token types would be rendered on the `span` node of text, and CSS rules would match token types and assign styling to them (i.e. color, boldness, etc.to style tokens)
43+
- To enable us to build something like a minimap, we need to know the text color in JavaScript, and we have therefore moved the token style matching all to JavaScript. In the future, we foresee that even decorations will have to define their color in JavaScript.
44+
- It is possible to create a custom theme via a new API method `monaco.editor.defineTheme()` and the playground contains a sample showing how that works.
45+
- Token types can be inspected via `F1` > `Developer: Inspect tokens`. This will bring up a widget showing the token type and the applied styles.
46+
47+
### API changes:
48+
49+
#### Namespaces
50+
- added `monaco.editor.onDidCreateEditor` that will be fired whenever an editor is created (will fire even for a diff editor, with the two editors that a diff editor consists of).
51+
- added `monaco.editor.tokenize` that returns logical tokens (before theme matching, as opposed to `monaco.editor.colorize`).
52+
- added `monaco.languages.registerTypeDefinitionProvider`
53+
54+
#### Models
55+
- removed `IModel.getMode()`.
56+
- structural changes in the events `IModelLanguageChangedEvent`, `IModelDecorationsChangedEvent` and `IModelTokensChangedEvent`;
57+
- changed `IModel.findMatches`, `IModel.findNextMatch` and `IModel.findPreviousMatch` to be able to capture matches while searching.
58+
59+
#### Editors
60+
- `ICodeEditor.addAction` and `IDiffEditor.addAction` now return an `IDisposable` to be able to remove a previously added action.
61+
- renamed `ICodeEditor.onDidChangeModelMode ` to `ICodeEditor.onDidChangeModelLanguage`;
62+
- `ICodeEditor.executeEdits` can now take resulting selection for better undo/redo stack management;
63+
- added `ICodeEditor.getTargetAtClientPoint(clientX, clientY)` to be able to do hit testing.
64+
- added `IViewZone.marginDomNode` to be able to insert a dom node in the margin side of a view zone.
65+
- settings:
66+
- `lineDecorationsWidth` can now take a value in the form of `"1.2ch"` besides the previous accepted number (in px)
67+
- `renderLineHighlight` can now take a value in the set `'none' | 'gutter' | 'line' | 'all'`.
68+
- added `fixedOverflowWidgets` to render overflowing content widgets as `'fixed'` (defaults to false)
69+
- added `acceptSuggestionOnCommitCharacter` to accept suggestions on provider defined characters (defaults to true)
70+
- added `emptySelectionClipboard` - copying without a selection copies the current line (defaults to true)
71+
- added `suggestFontSize` - the font size for the suggest widget
72+
- added `suggestLineHeight` - the line height for the suggest widget
73+
- diff editor settings:
74+
- added `renderIndicators` - Render +/- indicators for added/deleted changes. (defaults to true)
75+
76+
### Thank you
77+
* [Nico Tonozzi (@nicot)](https://github.com/nicot): Register React file extensions [PR monaco-typescript#12](https://github.com/Microsoft/monaco-typescript/pull/12)
78+
* [Jeong Woo Chang (@inspiredjw)](https://github.com/inspiredjw): Cannot read property 'uri' of null fix [PR vscode#13263](https://github.com/Microsoft/vscode/pull/13263)
79+
* [Jan Pilzer(@Hirse)](https://github.com/Hirse): Add YAML samples [PR monaco-editor#242](https://github.com/Microsoft/monaco-editor/pull/242)
80+
81+
## [0.7.1]
82+
- Bugfixes in monaco-html, including fixing formatting.
83+
84+
## [0.7.0]
85+
- Adopted TypeScript 2.0 in all the repos (also reflected in `monaco.d.ts`).
86+
- Added YAML colorization support.
87+
- Brought back the ability to use `editor.addAction()` and have the action show in the context menu.
88+
- Web workers now get a nice label next to the script name.
89+
90+
### API changes:
91+
- settings:
92+
- new values for `lineNumbers`: `'on' | 'off' | 'relative'`
93+
- new values for `renderWhitespace`: `'none' | 'boundary' | 'all'`
94+
- removed `model.setMode()`, as `IMode` will soon disappear from the API.
95+
96+
### Debt work
97+
- Removed html, razor, php and handlebars from `monaco-editor-core`:
98+
- the `monaco-editor-core` is now finally language agnostic.
99+
- coloring for html, razor, php and handlebars is now coming in from `monaco-languages`.
100+
- language smarts for html, razor and handlebars now comes from `monaco-html`.
101+
- Packaging improvements:
102+
- thanks to the removal of the old languages from `monaco-editor-core`, we could improve the bundling and reduce the number of .js files we ship.
103+
- we are thinking about simplifying this further in the upcoming releases.
104+
105+
### Thank you
106+
* [Sandy Armstrong (@sandyarmstrong)](https://github.com/sandyarmstrong): csharp: allow styling #r/#load [PR monaco-languages#9](https://github.com/Microsoft/monaco-languages/pull/9)
107+
* [Nico Tonozzi (@nicot)](https://github.com/nicot): Go: add raw string literal syntax [PR monaco-languages#10](https://github.com/Microsoft/monaco-languages/pull/10)
108+
* [Jason Killian (@JKillian)](https://github.com/JKillian): Add vmin and vmax CSS units [PR monaco-languages#11](https://github.com/Microsoft/monaco-languages/pull/11)
109+
* [Jan Pilzer (@Hirse)](https://github.com/Hirse): YAML colorization [PR monaco-languages#12](https://github.com/Microsoft/monaco-languages/pull/12)
110+
* [Sam El-Husseini (@microsoftsam)](https://github.com/microsoftsam): Using Cmd+Scroll to zoom on a mac [PR vscode#12477](https://github.com/Microsoft/vscode/pull/12477)
111+
112+
113+
## [0.6.1]
114+
- Fixed regression where `editor.addCommand` was no longer working.
115+
116+
## [0.6.0]
117+
- This will be the last release that contains specific IE9 and IE10 fixes/workarounds. We will begin cleaning our code-base and remove them.
118+
- We plan to adopt TypeScript 2.0, so this will be the last release where `monaco.d.ts` is generated by TypeScript 1.8.
119+
- `javascript` and `typescript` language services:
120+
- exposed API to get to the underlying language service.
121+
- fixed a bug that prevented modifying `extraLibs`.
122+
- Multiple improvements/bugfixes to the `css`, `less`, `scss` and `json` language services.
123+
- Added support for ATS/Postiats.
124+
125+
### API changes:
126+
- settings:
127+
- new: `mouseWheelZoom`, `wordWrap`, `snippetSuggestions`, `tabCompletion`, `wordBasedSuggestions`, `renderControlCharacters`, `renderLineHighlight`, `fontWeight`.
128+
- removed: `tabFocusMode`, `outlineMarkers`.
129+
- renamed: `indentGuides` -> `renderIndentGuides`, `referenceInfos` -> `codeLens`
130+
- added `editor.pushUndoStop()` to explicitly push an undo stop
131+
- added `suppressMouseDown` to `IContentWidget`
132+
- added optional `resolveLink` to `ILinkProvider`
133+
- removed `enablement`, `contextMenuGroupId` from `IActionDescriptor`
134+
- removed exposed constants for editor context keys.
135+
136+
### Notable bugfixes:
137+
- Icons missing in the find widget in IE11 [#148](https://github.com/Microsoft/monaco-editor/issues/148)
138+
- Multiple context menu issues
139+
- Multiple clicking issues in IE11/Edge ([#137](https://github.com/Microsoft/monaco-editor/issues/137), [#118](https://github.com/Microsoft/monaco-editor/issues/118))
140+
- Multiple issues with the high-contrast theme.
141+
- Multiple IME issues in IE11, Edge and Firefox.
142+
143+
### Thank you
144+
* [Pavel Kolev (@paveldk)](https://github.com/paveldk): Fix sending message to terminated worker [PR vscode#10833](https://github.com/Microsoft/vscode/pull/10833)
145+
* [Pavel Kolev (@paveldk)](https://github.com/paveldk): Export getTypeScriptWorker & getJavaScriptWorker to monaco.languages.typescript [PR monaco-typescript#8](https://github.com/Microsoft/monaco-typescript/pull/8)
146+
* [Sandy Armstrong (@sandyarmstrong)](https://github.com/sandyarmstrong): Support CompletionItemKind.Method. [PR vscode#10225](https://github.com/Microsoft/vscode/pull/10225)
147+
* [Sandy Armstrong (@sandyarmstrong)](https://github.com/sandyarmstrong): Fix show in IE11 [PR vscode#10309](https://github.com/Microsoft/vscode/pull/10309)
148+
* [Sandy Armstrong (@sandyarmstrong)](https://github.com/sandyarmstrong): Correct docs for IEditorScrollbarOptions.useShadows [PR vscode#11312](https://github.com/Microsoft/vscode/pull/11312)
149+
* [Artyom Shalkhakov (@ashalkhakov)](https://github.com/ashalkhakov): Adding support for ATS/Postiats [PR monaco-languages#5](https://github.com/Microsoft/monaco-languages/pull/5)
150+
151+
## [0.5.1]
152+
153+
- Fixed mouse handling in IE
154+
155+
## [0.5.0]
156+
157+
### Breaking changes
158+
- `monaco.editor.createWebWorker` now loads the AMD module and calls `create` and passes in as first argument a context of type `monaco.worker.IWorkerContext` and as second argument the `initData`. This breaking change was needed to allow handling the case of misconfigured web workers (running on a file protocol or the cross-domain case)
159+
- the `CodeActionProvider.provideCodeActions` now gets passed in a `CodeActionContext` that contains the markers at the relevant range.
160+
- the `hoverMessage` of a decoration is now a `MarkedString | MarkedString[]`
161+
- the `contents` of a `Hover` returned by a `HoverProvider` is now a `MarkedString | MarkedString[]`
162+
- removed deprecated `IEditor.onDidChangeModelRawContent`, `IModel.onDidChangeRawContent`
163+
164+
### Notable fixes
165+
- Broken configurations (loading from `file://` or misconfigured cross-domain loading) now load the web worker code in the UI thread. This caused a breaking change in the behaviour of `monaco.editor.createWebWorker`
166+
- The right-pointing mouse pointer is oversized in high DPI - [issue](https://github.com/Microsoft/monaco-editor/issues/5)
167+
- The editor functions now correctly when hosted inside a `position:fixed` element.
168+
- Cross origin configuration is now picked up (as advertised in documentation from MonacoEnvironment)

assets/control/monaco/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Microsoft Corporation
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)