├── .gitignore ├── .npmignore ├── CNAME ├── LICENSE ├── README.md ├── index.html ├── index.js ├── index.min.js ├── package.json └── src ├── codicon.ttf ├── index.css ├── monaco ├── base │ ├── browser │ │ ├── browser.js │ │ ├── canIUse.js │ │ ├── contextmenu.js │ │ ├── dnd.js │ │ ├── dom.js │ │ ├── event.js │ │ ├── fastDomNode.js │ │ ├── formattedTextRenderer.js │ │ ├── globalMouseMoveMonitor.js │ │ ├── history.js │ │ ├── iframe.js │ │ ├── keyboardEvent.js │ │ ├── markdownRenderer.js │ │ ├── mouseEvent.js │ │ ├── touch.js │ │ └── ui │ │ │ ├── actionbar │ │ │ ├── actionbar.css │ │ │ └── actionbar.js │ │ │ ├── aria │ │ │ ├── aria.css │ │ │ └── aria.js │ │ │ ├── checkbox │ │ │ ├── checkbox.css │ │ │ └── checkbox.js │ │ │ ├── codiconLabel │ │ │ ├── codicon │ │ │ │ ├── codicon-animations.css │ │ │ │ ├── codicon.css │ │ │ │ └── codicon.ttf │ │ │ └── codiconLabel.js │ │ │ ├── contextview │ │ │ ├── contextview.css │ │ │ └── contextview.js │ │ │ ├── countBadge │ │ │ ├── countBadge.css │ │ │ └── countBadge.js │ │ │ ├── findinput │ │ │ ├── findInput.css │ │ │ ├── findInput.js │ │ │ ├── findInputCheckboxes.js │ │ │ └── replaceInput.js │ │ │ ├── highlightedlabel │ │ │ └── highlightedLabel.js │ │ │ ├── iconLabel │ │ │ ├── iconLabel.js │ │ │ └── iconlabel.css │ │ │ ├── inputbox │ │ │ ├── inputBox.css │ │ │ └── inputBox.js │ │ │ ├── keybindingLabel │ │ │ ├── keybindingLabel.css │ │ │ └── keybindingLabel.js │ │ │ ├── list │ │ │ ├── list.css │ │ │ ├── list.js │ │ │ ├── listPaging.js │ │ │ ├── listView.js │ │ │ ├── listWidget.js │ │ │ ├── rangeMap.js │ │ │ ├── rowCache.js │ │ │ └── splice.js │ │ │ ├── menu │ │ │ ├── menu.css │ │ │ └── menu.js │ │ │ ├── progressbar │ │ │ ├── progressbar.css │ │ │ └── progressbar.js │ │ │ ├── sash │ │ │ ├── sash.css │ │ │ └── sash.js │ │ │ ├── scrollbar │ │ │ ├── abstractScrollbar.js │ │ │ ├── horizontalScrollbar.js │ │ │ ├── media │ │ │ │ └── scrollbars.css │ │ │ ├── scrollableElement.js │ │ │ ├── scrollableElementOptions.js │ │ │ ├── scrollbarArrow.js │ │ │ ├── scrollbarState.js │ │ │ ├── scrollbarVisibilityController.js │ │ │ └── verticalScrollbar.js │ │ │ ├── splitview │ │ │ ├── splitview.css │ │ │ └── splitview.js │ │ │ ├── tree │ │ │ ├── abstractTree.js │ │ │ ├── asyncDataTree.js │ │ │ ├── compressedObjectTreeModel.js │ │ │ ├── dataTree.js │ │ │ ├── indexTreeModel.js │ │ │ ├── media │ │ │ │ └── tree.css │ │ │ ├── objectTree.js │ │ │ ├── objectTreeModel.js │ │ │ └── tree.js │ │ │ └── widget.js │ ├── common │ │ ├── actions.js │ │ ├── arrays.js │ │ ├── assert.js │ │ ├── async.js │ │ ├── cancellation.js │ │ ├── charCode.js │ │ ├── codicons.js │ │ ├── collections.js │ │ ├── color.js │ │ ├── decorators.js │ │ ├── diff │ │ │ ├── diff.js │ │ │ └── diffChange.js │ │ ├── errors.js │ │ ├── event.js │ │ ├── extpath.js │ │ ├── filters.js │ │ ├── functional.js │ │ ├── glob.js │ │ ├── hash.js │ │ ├── history.js │ │ ├── htmlContent.js │ │ ├── idGenerator.js │ │ ├── insane │ │ │ └── insane.js │ │ ├── iterator.js │ │ ├── jsonSchema.js │ │ ├── keyCodes.js │ │ ├── keybindingLabels.js │ │ ├── labels.js │ │ ├── lazy.js │ │ ├── lifecycle.js │ │ ├── linkedList.js │ │ ├── map.js │ │ ├── marked │ │ │ └── marked.js │ │ ├── marshalling.js │ │ ├── mime.js │ │ ├── network.js │ │ ├── numbers.js │ │ ├── objects.js │ │ ├── paging.js │ │ ├── path.js │ │ ├── platform.js │ │ ├── process.js │ │ ├── range.js │ │ ├── resources.js │ │ ├── scrollable.js │ │ ├── search.js │ │ ├── sequence.js │ │ ├── severity.js │ │ ├── stopwatch.js │ │ ├── strings.js │ │ ├── styler.js │ │ ├── types.js │ │ ├── uint.js │ │ ├── uri.js │ │ └── worker │ │ │ └── simpleWorker.js │ ├── parts │ │ ├── quickopen │ │ │ ├── browser │ │ │ │ ├── quickOpenModel.js │ │ │ │ ├── quickOpenViewer.js │ │ │ │ ├── quickOpenWidget.js │ │ │ │ └── quickopen.css │ │ │ └── common │ │ │ │ └── quickOpen.js │ │ └── tree │ │ │ └── browser │ │ │ ├── tree.css │ │ │ ├── tree.js │ │ │ ├── treeDefaults.js │ │ │ ├── treeDnd.js │ │ │ ├── treeImpl.js │ │ │ ├── treeModel.js │ │ │ ├── treeView.js │ │ │ └── treeViewModel.js │ └── worker │ │ └── defaultWorkerFactory.js ├── basic-languages │ ├── _.contribution.js │ ├── abap │ │ ├── abap.contribution.js │ │ └── abap.js │ ├── apex │ │ ├── apex.contribution.js │ │ └── apex.js │ ├── azcli │ │ ├── azcli.contribution.js │ │ └── azcli.js │ ├── bat │ │ ├── bat.contribution.js │ │ └── bat.js │ ├── cameligo │ │ ├── cameligo.contribution.js │ │ └── cameligo.js │ ├── clojure │ │ ├── clojure.contribution.js │ │ └── clojure.js │ ├── coffee │ │ ├── coffee.contribution.js │ │ └── coffee.js │ ├── cpp │ │ ├── cpp.contribution.js │ │ └── cpp.js │ ├── csharp │ │ ├── csharp.contribution.js │ │ └── csharp.js │ ├── csp │ │ ├── csp.contribution.js │ │ └── csp.js │ ├── css │ │ ├── css.contribution.js │ │ └── css.js │ ├── dockerfile │ │ ├── dockerfile.contribution.js │ │ └── dockerfile.js │ ├── fsharp │ │ ├── fsharp.contribution.js │ │ └── fsharp.js │ ├── go │ │ ├── go.contribution.js │ │ └── go.js │ ├── graphql │ │ ├── graphql.contribution.js │ │ └── graphql.js │ ├── handlebars │ │ ├── handlebars.contribution.js │ │ └── handlebars.js │ ├── html │ │ ├── html.contribution.js │ │ └── html.js │ ├── ini │ │ ├── ini.contribution.js │ │ └── ini.js │ ├── java │ │ ├── java.contribution.js │ │ └── java.js │ ├── javascript │ │ ├── javascript.contribution.js │ │ └── javascript.js │ ├── kotlin │ │ ├── kotlin.contribution.js │ │ └── kotlin.js │ ├── less │ │ ├── less.contribution.js │ │ └── less.js │ ├── lua │ │ ├── lua.contribution.js │ │ └── lua.js │ ├── markdown │ │ ├── markdown.contribution.js │ │ └── markdown.js │ ├── mips │ │ ├── mips.contribution.js │ │ └── mips.js │ ├── monaco.contribution.js │ ├── msdax │ │ ├── msdax.contribution.js │ │ └── msdax.js │ ├── mysql │ │ ├── mysql.contribution.js │ │ └── mysql.js │ ├── objective-c │ │ ├── objective-c.contribution.js │ │ └── objective-c.js │ ├── pascal │ │ ├── pascal.contribution.js │ │ └── pascal.js │ ├── pascaligo │ │ ├── pascaligo.contribution.js │ │ └── pascaligo.js │ ├── perl │ │ ├── perl.contribution.js │ │ └── perl.js │ ├── pgsql │ │ ├── pgsql.contribution.js │ │ └── pgsql.js │ ├── php │ │ ├── php.contribution.js │ │ └── php.js │ ├── postiats │ │ ├── postiats.contribution.js │ │ └── postiats.js │ ├── powerquery │ │ ├── powerquery.contribution.js │ │ └── powerquery.js │ ├── powershell │ │ ├── powershell.contribution.js │ │ └── powershell.js │ ├── pug │ │ ├── pug.contribution.js │ │ └── pug.js │ ├── python │ │ ├── python.contribution.js │ │ └── python.js │ ├── r │ │ ├── r.contribution.js │ │ └── r.js │ ├── razor │ │ ├── razor.contribution.js │ │ └── razor.js │ ├── redis │ │ ├── redis.contribution.js │ │ └── redis.js │ ├── redshift │ │ ├── redshift.contribution.js │ │ └── redshift.js │ ├── restructuredtext │ │ ├── restructuredtext.contribution.js │ │ └── restructuredtext.js │ ├── ruby │ │ ├── ruby.contribution.js │ │ └── ruby.js │ ├── rust │ │ ├── rust.contribution.js │ │ └── rust.js │ ├── sb │ │ ├── sb.contribution.js │ │ └── sb.js │ ├── scheme │ │ ├── scheme.contribution.js │ │ └── scheme.js │ ├── scss │ │ ├── scss.contribution.js │ │ └── scss.js │ ├── shell │ │ ├── shell.contribution.js │ │ └── shell.js │ ├── solidity │ │ ├── solidity.contribution.js │ │ └── solidity.js │ ├── sophia │ │ ├── sophia.contribution.js │ │ └── sophia.js │ ├── sql │ │ ├── sql.contribution.js │ │ └── sql.js │ ├── st │ │ ├── st.contribution.js │ │ └── st.js │ ├── swift │ │ ├── swift.contribution.js │ │ └── swift.js │ ├── tcl │ │ ├── tcl.contribution.js │ │ └── tcl.js │ ├── twig │ │ ├── twig.contribution.js │ │ └── twig.js │ ├── typescript │ │ ├── typescript.contribution.js │ │ └── typescript.js │ ├── vb │ │ ├── vb.contribution.js │ │ └── vb.js │ ├── xml │ │ ├── xml.contribution.js │ │ └── xml.js │ └── yaml │ │ ├── yaml.contribution.js │ │ └── yaml.js ├── editor │ ├── browser │ │ ├── config │ │ │ ├── charWidthReader.js │ │ │ ├── configuration.js │ │ │ └── elementSizeObserver.js │ │ ├── controller │ │ │ ├── coreCommands.js │ │ │ ├── mouseHandler.js │ │ │ ├── mouseTarget.js │ │ │ ├── pointerHandler.js │ │ │ ├── textAreaHandler.css │ │ │ ├── textAreaHandler.js │ │ │ ├── textAreaInput.js │ │ │ └── textAreaState.js │ │ ├── core │ │ │ ├── editorState.js │ │ │ └── keybindingCancellation.js │ │ ├── editorBrowser.js │ │ ├── editorDom.js │ │ ├── editorExtensions.js │ │ ├── services │ │ │ ├── abstractCodeEditorService.js │ │ │ ├── bulkEditService.js │ │ │ ├── codeEditorService.js │ │ │ ├── codeEditorServiceImpl.js │ │ │ └── openerService.js │ │ ├── view │ │ │ ├── domLineBreaksComputer.js │ │ │ ├── dynamicViewOverlay.js │ │ │ ├── viewController.js │ │ │ ├── viewImpl.js │ │ │ ├── viewLayer.js │ │ │ ├── viewOutgoingEvents.js │ │ │ ├── viewOverlays.js │ │ │ └── viewPart.js │ │ ├── viewParts │ │ │ ├── contentWidgets │ │ │ │ └── contentWidgets.js │ │ │ ├── currentLineHighlight │ │ │ │ ├── currentLineHighlight.css │ │ │ │ └── currentLineHighlight.js │ │ │ ├── decorations │ │ │ │ ├── decorations.css │ │ │ │ └── decorations.js │ │ │ ├── editorScrollbar │ │ │ │ └── editorScrollbar.js │ │ │ ├── glyphMargin │ │ │ │ ├── glyphMargin.css │ │ │ │ └── glyphMargin.js │ │ │ ├── indentGuides │ │ │ │ ├── indentGuides.css │ │ │ │ └── indentGuides.js │ │ │ ├── lineNumbers │ │ │ │ ├── lineNumbers.css │ │ │ │ └── lineNumbers.js │ │ │ ├── lines │ │ │ │ ├── rangeUtil.js │ │ │ │ ├── viewLine.js │ │ │ │ ├── viewLines.css │ │ │ │ └── viewLines.js │ │ │ ├── linesDecorations │ │ │ │ ├── linesDecorations.css │ │ │ │ └── linesDecorations.js │ │ │ ├── margin │ │ │ │ └── margin.js │ │ │ ├── marginDecorations │ │ │ │ ├── marginDecorations.css │ │ │ │ └── marginDecorations.js │ │ │ ├── minimap │ │ │ │ ├── minimap.css │ │ │ │ ├── minimap.js │ │ │ │ ├── minimapCharRenderer.js │ │ │ │ ├── minimapCharRendererFactory.js │ │ │ │ ├── minimapCharSheet.js │ │ │ │ └── minimapPreBaked.js │ │ │ ├── overlayWidgets │ │ │ │ ├── overlayWidgets.css │ │ │ │ └── overlayWidgets.js │ │ │ ├── overviewRuler │ │ │ │ ├── decorationsOverviewRuler.js │ │ │ │ └── overviewRuler.js │ │ │ ├── rulers │ │ │ │ ├── rulers.css │ │ │ │ └── rulers.js │ │ │ ├── scrollDecoration │ │ │ │ ├── scrollDecoration.css │ │ │ │ └── scrollDecoration.js │ │ │ ├── selections │ │ │ │ ├── selections.css │ │ │ │ └── selections.js │ │ │ ├── viewCursors │ │ │ │ ├── viewCursor.js │ │ │ │ ├── viewCursors.css │ │ │ │ └── viewCursors.js │ │ │ └── viewZones │ │ │ │ └── viewZones.js │ │ └── widget │ │ │ ├── codeEditorWidget.js │ │ │ ├── diffEditorWidget.js │ │ │ ├── diffNavigator.js │ │ │ ├── diffReview.js │ │ │ ├── embeddedCodeEditorWidget.js │ │ │ ├── inlineDiffMargin.js │ │ │ └── media │ │ │ ├── diffEditor.css │ │ │ ├── diffReview.css │ │ │ └── editor.css │ ├── common │ │ ├── commands │ │ │ ├── replaceCommand.js │ │ │ ├── shiftCommand.js │ │ │ ├── surroundSelectionCommand.js │ │ │ └── trimTrailingWhitespaceCommand.js │ │ ├── config │ │ │ ├── commonEditorConfig.js │ │ │ ├── editorOptions.js │ │ │ ├── editorZoom.js │ │ │ └── fontInfo.js │ │ ├── controller │ │ │ ├── cursor.js │ │ │ ├── cursorCollection.js │ │ │ ├── cursorColumnSelection.js │ │ │ ├── cursorCommon.js │ │ │ ├── cursorDeleteOperations.js │ │ │ ├── cursorEvents.js │ │ │ ├── cursorMoveCommands.js │ │ │ ├── cursorMoveOperations.js │ │ │ ├── cursorTypeOperations.js │ │ │ ├── cursorWordOperations.js │ │ │ ├── oneCursor.js │ │ │ └── wordCharacterClassifier.js │ │ ├── core │ │ │ ├── characterClassifier.js │ │ │ ├── editOperation.js │ │ │ ├── lineTokens.js │ │ │ ├── position.js │ │ │ ├── range.js │ │ │ ├── rgba.js │ │ │ ├── selection.js │ │ │ ├── stringBuilder.js │ │ │ └── token.js │ │ ├── diff │ │ │ └── diffComputer.js │ │ ├── editorAction.js │ │ ├── editorCommon.js │ │ ├── editorContextKeys.js │ │ ├── model.js │ │ ├── model │ │ │ ├── editStack.js │ │ │ ├── indentationGuesser.js │ │ │ ├── intervalTree.js │ │ │ ├── mirrorTextModel.js │ │ │ ├── pieceTreeTextBuffer │ │ │ │ ├── pieceTreeBase.js │ │ │ │ ├── pieceTreeTextBuffer.js │ │ │ │ ├── pieceTreeTextBufferBuilder.js │ │ │ │ └── rbTreeBase.js │ │ │ ├── textModel.js │ │ │ ├── textModelEvents.js │ │ │ ├── textModelSearch.js │ │ │ ├── textModelTokens.js │ │ │ ├── tokensStore.js │ │ │ └── wordHelper.js │ │ ├── modes.js │ │ ├── modes │ │ │ ├── abstractMode.js │ │ │ ├── languageConfiguration.js │ │ │ ├── languageConfigurationRegistry.js │ │ │ ├── languageFeatureRegistry.js │ │ │ ├── languageSelector.js │ │ │ ├── linkComputer.js │ │ │ ├── modesRegistry.js │ │ │ ├── nullMode.js │ │ │ ├── supports.js │ │ │ ├── supports │ │ │ │ ├── characterPair.js │ │ │ │ ├── electricCharacter.js │ │ │ │ ├── indentRules.js │ │ │ │ ├── inplaceReplaceSupport.js │ │ │ │ ├── onEnter.js │ │ │ │ ├── richEditBrackets.js │ │ │ │ └── tokenization.js │ │ │ ├── textToHtmlTokenizer.js │ │ │ └── tokenizationRegistry.js │ │ ├── services │ │ │ ├── editorSimpleWorker.js │ │ │ ├── editorWorkerService.js │ │ │ ├── editorWorkerServiceImpl.js │ │ │ ├── getIconClasses.js │ │ │ ├── languagesRegistry.js │ │ │ ├── markerDecorationsServiceImpl.js │ │ │ ├── markersDecorationService.js │ │ │ ├── modeService.js │ │ │ ├── modeServiceImpl.js │ │ │ ├── modelService.js │ │ │ ├── modelServiceImpl.js │ │ │ ├── resolverService.js │ │ │ ├── textResourceConfigurationService.js │ │ │ └── webWorker.js │ │ ├── standalone │ │ │ ├── promise-polyfill │ │ │ │ └── polyfill.js │ │ │ ├── standaloneBase.js │ │ │ └── standaloneEnums.js │ │ ├── standaloneStrings.js │ │ ├── view │ │ │ ├── editorColorRegistry.js │ │ │ ├── overviewZoneManager.js │ │ │ ├── renderingContext.js │ │ │ ├── viewContext.js │ │ │ ├── viewEventDispatcher.js │ │ │ └── viewEvents.js │ │ ├── viewLayout │ │ │ ├── lineDecorations.js │ │ │ ├── linesLayout.js │ │ │ ├── viewLayout.js │ │ │ ├── viewLineRenderer.js │ │ │ └── viewLinesViewportData.js │ │ └── viewModel │ │ │ ├── minimapTokensColorTracker.js │ │ │ ├── monospaceLineBreaksComputer.js │ │ │ ├── prefixSumComputer.js │ │ │ ├── splitLinesCollection.js │ │ │ ├── viewEventHandler.js │ │ │ ├── viewModel.js │ │ │ ├── viewModelDecorations.js │ │ │ └── viewModelImpl.js │ ├── contrib │ │ ├── bracketMatching │ │ │ ├── bracketMatching.css │ │ │ └── bracketMatching.js │ │ ├── caretOperations │ │ │ ├── caretOperations.js │ │ │ ├── moveCaretCommand.js │ │ │ └── transpose.js │ │ ├── clipboard │ │ │ ├── clipboard.css │ │ │ └── clipboard.js │ │ ├── codeAction │ │ │ ├── codeAction.js │ │ │ ├── codeActionCommands.js │ │ │ ├── codeActionContributions.js │ │ │ ├── codeActionMenu.js │ │ │ ├── codeActionModel.js │ │ │ ├── codeActionUi.js │ │ │ ├── lightBulbWidget.css │ │ │ ├── lightBulbWidget.js │ │ │ └── types.js │ │ ├── codelens │ │ │ ├── codeLensCache.js │ │ │ ├── codelens.js │ │ │ ├── codelensController.js │ │ │ ├── codelensWidget.css │ │ │ └── codelensWidget.js │ │ ├── colorPicker │ │ │ ├── color.js │ │ │ ├── colorDetector.js │ │ │ ├── colorPicker.css │ │ │ ├── colorPickerModel.js │ │ │ └── colorPickerWidget.js │ │ ├── comment │ │ │ ├── blockCommentCommand.js │ │ │ ├── comment.js │ │ │ └── lineCommentCommand.js │ │ ├── contextmenu │ │ │ └── contextmenu.js │ │ ├── cursorUndo │ │ │ └── cursorUndo.js │ │ ├── dnd │ │ │ ├── dnd.css │ │ │ ├── dnd.js │ │ │ └── dragAndDropCommand.js │ │ ├── documentSymbols │ │ │ ├── media │ │ │ │ ├── outlineTree.css │ │ │ │ └── symbol-icons.css │ │ │ ├── outlineModel.js │ │ │ └── outlineTree.js │ │ ├── find │ │ │ ├── findController.js │ │ │ ├── findDecorations.js │ │ │ ├── findModel.js │ │ │ ├── findOptionsWidget.js │ │ │ ├── findState.js │ │ │ ├── findWidget.css │ │ │ ├── findWidget.js │ │ │ ├── replaceAllCommand.js │ │ │ └── replacePattern.js │ │ ├── folding │ │ │ ├── folding.css │ │ │ ├── folding.js │ │ │ ├── foldingDecorations.js │ │ │ ├── foldingModel.js │ │ │ ├── foldingRanges.js │ │ │ ├── hiddenRangeModel.js │ │ │ ├── indentRangeProvider.js │ │ │ ├── intializingRangeProvider.js │ │ │ └── syntaxRangeProvider.js │ │ ├── fontZoom │ │ │ └── fontZoom.js │ │ ├── format │ │ │ ├── format.js │ │ │ ├── formatActions.js │ │ │ └── formattingEdit.js │ │ ├── gotoError │ │ │ ├── gotoError.js │ │ │ ├── gotoErrorWidget.js │ │ │ └── media │ │ │ │ └── gotoErrorWidget.css │ │ ├── gotoSymbol │ │ │ ├── goToCommands.js │ │ │ ├── goToSymbol.js │ │ │ ├── link │ │ │ │ ├── clickLinkGesture.js │ │ │ │ ├── goToDefinitionAtPosition.css │ │ │ │ └── goToDefinitionAtPosition.js │ │ │ ├── peek │ │ │ │ ├── referencesController.js │ │ │ │ ├── referencesTree.js │ │ │ │ ├── referencesWidget.css │ │ │ │ └── referencesWidget.js │ │ │ ├── referencesModel.js │ │ │ └── symbolNavigation.js │ │ ├── hover │ │ │ ├── getHover.js │ │ │ ├── hover.css │ │ │ ├── hover.js │ │ │ ├── hoverOperation.js │ │ │ ├── hoverWidgets.js │ │ │ ├── modesContentHover.js │ │ │ └── modesGlyphHover.js │ │ ├── inPlaceReplace │ │ │ ├── inPlaceReplace.js │ │ │ └── inPlaceReplaceCommand.js │ │ ├── indentation │ │ │ └── indentUtils.js │ │ ├── linesOperations │ │ │ ├── copyLinesCommand.js │ │ │ ├── linesOperations.js │ │ │ ├── moveLinesCommand.js │ │ │ └── sortLinesCommand.js │ │ ├── links │ │ │ ├── getLinks.js │ │ │ ├── links.css │ │ │ └── links.js │ │ ├── markdown │ │ │ └── markdownRenderer.js │ │ ├── message │ │ │ ├── messageController.css │ │ │ └── messageController.js │ │ ├── multicursor │ │ │ └── multicursor.js │ │ ├── parameterHints │ │ │ ├── parameterHints.css │ │ │ ├── parameterHints.js │ │ │ ├── parameterHintsModel.js │ │ │ ├── parameterHintsWidget.js │ │ │ └── provideSignatureHelp.js │ │ ├── peekView │ │ │ ├── media │ │ │ │ └── peekViewWidget.css │ │ │ └── peekView.js │ │ ├── quickOpen │ │ │ └── quickOpen.js │ │ ├── rename │ │ │ ├── rename.js │ │ │ ├── renameInputField.css │ │ │ └── renameInputField.js │ │ ├── smartSelect │ │ │ ├── bracketSelections.js │ │ │ ├── smartSelect.js │ │ │ └── wordSelections.js │ │ ├── snippet │ │ │ ├── snippetController2.js │ │ │ ├── snippetParser.js │ │ │ ├── snippetSession.css │ │ │ ├── snippetSession.js │ │ │ └── snippetVariables.js │ │ ├── suggest │ │ │ ├── completionModel.js │ │ │ ├── media │ │ │ │ ├── suggest.css │ │ │ │ └── suggestStatusBar.css │ │ │ ├── suggest.js │ │ │ ├── suggestAlternatives.js │ │ │ ├── suggestCommitCharacters.js │ │ │ ├── suggestController.js │ │ │ ├── suggestMemory.js │ │ │ ├── suggestModel.js │ │ │ ├── suggestRangeHighlighter.js │ │ │ ├── suggestWidget.js │ │ │ ├── wordContextKey.js │ │ │ └── wordDistance.js │ │ ├── toggleTabFocusMode │ │ │ └── toggleTabFocusMode.js │ │ ├── tokenization │ │ │ └── tokenization.js │ │ ├── wordHighlighter │ │ │ └── wordHighlighter.js │ │ ├── wordOperations │ │ │ └── wordOperations.js │ │ ├── wordPartOperations │ │ │ └── wordPartOperations.js │ │ └── zoneWidget │ │ │ ├── zoneWidget.css │ │ │ └── zoneWidget.js │ ├── edcore.main.js │ ├── editor.all.js │ ├── editor.api.d.ts │ ├── editor.api.js │ ├── editor.main.js │ ├── editor.worker.js │ └── standalone │ │ ├── browser │ │ ├── accessibilityHelp │ │ │ ├── accessibilityHelp.css │ │ │ └── accessibilityHelp.js │ │ ├── colorizer.js │ │ ├── iPadShowKeyboard │ │ │ ├── iPadShowKeyboard.css │ │ │ └── iPadShowKeyboard.js │ │ ├── inspectTokens │ │ │ ├── inspectTokens.css │ │ │ └── inspectTokens.js │ │ ├── quickOpen │ │ │ ├── editorQuickOpen.css │ │ │ ├── editorQuickOpen.js │ │ │ ├── gotoLine.css │ │ │ ├── gotoLine.js │ │ │ ├── quickCommand.js │ │ │ ├── quickOpenEditorWidget.js │ │ │ ├── quickOutline.css │ │ │ └── quickOutline.js │ │ ├── referenceSearch │ │ │ └── standaloneReferenceSearch.js │ │ ├── simpleServices.js │ │ ├── standalone-tokens.css │ │ ├── standaloneCodeEditor.js │ │ ├── standaloneCodeServiceImpl.js │ │ ├── standaloneEditor.js │ │ ├── standaloneLanguages.js │ │ ├── standaloneServices.js │ │ ├── standaloneThemeServiceImpl.js │ │ └── toggleHighContrast │ │ │ └── toggleHighContrast.js │ │ └── common │ │ ├── monarch │ │ ├── monarchCommon.js │ │ ├── monarchCompile.js │ │ ├── monarchLexer.js │ │ └── monarchTypes.js │ │ ├── standaloneThemeService.js │ │ └── themes.js ├── language │ ├── css │ │ ├── _deps │ │ │ ├── vscode-css-languageservice │ │ │ │ ├── _deps │ │ │ │ │ └── vscode-languageserver-textdocument │ │ │ │ │ │ └── lib │ │ │ │ │ │ └── esm │ │ │ │ │ │ └── main.js │ │ │ │ ├── cssLanguageService.js │ │ │ │ ├── cssLanguageTypes.js │ │ │ │ ├── data │ │ │ │ │ └── webCustomData.js │ │ │ │ ├── languageFacts │ │ │ │ │ ├── builtinData.js │ │ │ │ │ ├── colors.js │ │ │ │ │ ├── dataManager.js │ │ │ │ │ ├── dataProvider.js │ │ │ │ │ ├── entry.js │ │ │ │ │ └── facts.js │ │ │ │ ├── parser │ │ │ │ │ ├── cssErrors.js │ │ │ │ │ ├── cssNodes.js │ │ │ │ │ ├── cssParser.js │ │ │ │ │ ├── cssScanner.js │ │ │ │ │ ├── cssSymbolScope.js │ │ │ │ │ ├── lessParser.js │ │ │ │ │ ├── lessScanner.js │ │ │ │ │ ├── scssErrors.js │ │ │ │ │ ├── scssParser.js │ │ │ │ │ └── scssScanner.js │ │ │ │ ├── services │ │ │ │ │ ├── cssCodeActions.js │ │ │ │ │ ├── cssCompletion.js │ │ │ │ │ ├── cssFolding.js │ │ │ │ │ ├── cssHover.js │ │ │ │ │ ├── cssNavigation.js │ │ │ │ │ ├── cssSelectionRange.js │ │ │ │ │ ├── cssValidation.js │ │ │ │ │ ├── lessCompletion.js │ │ │ │ │ ├── lint.js │ │ │ │ │ ├── lintRules.js │ │ │ │ │ ├── lintUtil.js │ │ │ │ │ ├── scssCompletion.js │ │ │ │ │ ├── scssNavigation.js │ │ │ │ │ └── selectorPrinting.js │ │ │ │ └── utils │ │ │ │ │ ├── arrays.js │ │ │ │ │ ├── objects.js │ │ │ │ │ └── strings.js │ │ │ ├── vscode-languageserver-types │ │ │ │ └── main.js │ │ │ └── vscode-uri │ │ │ │ └── index.js │ │ ├── css.worker.js │ │ ├── cssMode.js │ │ ├── cssWorker.js │ │ ├── fillers │ │ │ └── vscode-nls.js │ │ ├── languageFeatures.js │ │ ├── monaco.contribution.js │ │ └── workerManager.js │ ├── html │ │ ├── _deps │ │ │ ├── vscode-html-languageservice │ │ │ │ ├── _deps │ │ │ │ │ └── vscode-languageserver-types │ │ │ │ │ │ └── main.js │ │ │ │ ├── beautify │ │ │ │ │ ├── beautify-css.js │ │ │ │ │ ├── beautify-html.js │ │ │ │ │ └── beautify.js │ │ │ │ ├── htmlLanguageService.js │ │ │ │ ├── htmlLanguageTypes.js │ │ │ │ ├── languageFacts │ │ │ │ │ ├── builtinDataProviders.js │ │ │ │ │ ├── data │ │ │ │ │ │ └── webCustomData.js │ │ │ │ │ ├── dataProvider.js │ │ │ │ │ └── fact.js │ │ │ │ ├── parser │ │ │ │ │ ├── htmlEntities.js │ │ │ │ │ ├── htmlParser.js │ │ │ │ │ └── htmlScanner.js │ │ │ │ ├── services │ │ │ │ │ ├── htmlCompletion.js │ │ │ │ │ ├── htmlFolding.js │ │ │ │ │ ├── htmlFormatter.js │ │ │ │ │ ├── htmlHighlighting.js │ │ │ │ │ ├── htmlHover.js │ │ │ │ │ ├── htmlLinks.js │ │ │ │ │ ├── htmlMatchingTagPosition.js │ │ │ │ │ ├── htmlRename.js │ │ │ │ │ ├── htmlSelectionRange.js │ │ │ │ │ └── htmlSymbolsProvider.js │ │ │ │ └── utils │ │ │ │ │ ├── arrays.js │ │ │ │ │ ├── markup.js │ │ │ │ │ ├── object.js │ │ │ │ │ └── strings.js │ │ │ ├── vscode-languageserver-textdocument │ │ │ │ └── lib │ │ │ │ │ └── esm │ │ │ │ │ └── main.js │ │ │ └── vscode-uri │ │ │ │ └── index.js │ │ ├── fillers │ │ │ ├── polyfills.js │ │ │ └── vscode-nls.js │ │ ├── html.worker.js │ │ ├── htmlMode.js │ │ ├── htmlWorker.js │ │ ├── languageFeatures.js │ │ ├── monaco.contribution.js │ │ └── workerManager.js │ ├── json │ │ ├── _deps │ │ │ ├── jsonc-parser │ │ │ │ ├── impl │ │ │ │ │ ├── edit.js │ │ │ │ │ ├── format.js │ │ │ │ │ ├── parser.js │ │ │ │ │ └── scanner.js │ │ │ │ └── main.js │ │ │ ├── vscode-json-languageservice │ │ │ │ ├── jsonLanguageService.js │ │ │ │ ├── jsonLanguageTypes.js │ │ │ │ ├── parser │ │ │ │ │ └── jsonParser.js │ │ │ │ ├── services │ │ │ │ │ ├── configuration.js │ │ │ │ │ ├── jsonCompletion.js │ │ │ │ │ ├── jsonDocumentSymbols.js │ │ │ │ │ ├── jsonFolding.js │ │ │ │ │ ├── jsonHover.js │ │ │ │ │ ├── jsonSchemaService.js │ │ │ │ │ ├── jsonSelectionRanges.js │ │ │ │ │ └── jsonValidation.js │ │ │ │ └── utils │ │ │ │ │ ├── colors.js │ │ │ │ │ ├── json.js │ │ │ │ │ ├── objects.js │ │ │ │ │ └── strings.js │ │ │ ├── vscode-languageserver-textdocument │ │ │ │ └── lib │ │ │ │ │ └── esm │ │ │ │ │ └── main.js │ │ │ ├── vscode-languageserver-types │ │ │ │ └── main.js │ │ │ └── vscode-uri │ │ │ │ └── index.js │ │ ├── fillers │ │ │ └── vscode-nls.js │ │ ├── json.worker.js │ │ ├── jsonMode.js │ │ ├── jsonWorker.js │ │ ├── languageFeatures.js │ │ ├── monaco.contribution.js │ │ ├── tokenization.js │ │ └── workerManager.js │ └── typescript │ │ ├── languageFeatures.js │ │ ├── lib │ │ ├── lib.js │ │ ├── typescriptServices.js │ │ └── typescriptServicesMetadata.js │ │ ├── monaco.contribution.js │ │ ├── ts.worker.js │ │ ├── tsMode.js │ │ ├── tsWorker.js │ │ └── workerManager.js ├── nls.js └── platform │ ├── accessibility │ └── common │ │ ├── accessibility.js │ │ └── accessibilityService.js │ ├── actions │ └── common │ │ ├── actions.js │ │ └── menuService.js │ ├── browser │ └── contextScopedHistoryWidget.js │ ├── clipboard │ └── common │ │ └── clipboardService.js │ ├── commands │ └── common │ │ └── commands.js │ ├── configuration │ └── common │ │ ├── configuration.js │ │ ├── configurationModels.js │ │ └── configurationRegistry.js │ ├── contextkey │ ├── browser │ │ └── contextKeyService.js │ └── common │ │ ├── contextkey.js │ │ └── contextkeys.js │ ├── contextview │ └── browser │ │ ├── contextMenuHandler.css │ │ ├── contextMenuHandler.js │ │ ├── contextMenuService.js │ │ ├── contextView.js │ │ └── contextViewService.js │ ├── dialogs │ └── common │ │ └── dialogs.js │ ├── editor │ └── common │ │ └── editor.js │ ├── environment │ └── common │ │ └── environment.js │ ├── extensions │ └── common │ │ └── extensions.js │ ├── files │ └── common │ │ └── files.js │ ├── instantiation │ └── common │ │ ├── descriptors.js │ │ ├── extensions.js │ │ ├── graph.js │ │ ├── instantiation.js │ │ ├── instantiationService.js │ │ └── serviceCollection.js │ ├── jsonschemas │ └── common │ │ └── jsonContributionRegistry.js │ ├── keybinding │ └── common │ │ ├── abstractKeybindingService.js │ │ ├── baseResolvedKeybinding.js │ │ ├── keybinding.js │ │ ├── keybindingResolver.js │ │ ├── keybindingsRegistry.js │ │ ├── resolvedKeybindingItem.js │ │ └── usLayoutResolvedKeybinding.js │ ├── label │ └── common │ │ └── label.js │ ├── layout │ └── browser │ │ └── layoutService.js │ ├── list │ └── browser │ │ └── listService.js │ ├── log │ └── common │ │ └── log.js │ ├── markers │ └── common │ │ ├── markerService.js │ │ └── markers.js │ ├── notification │ └── common │ │ └── notification.js │ ├── opener │ └── common │ │ └── opener.js │ ├── progress │ └── common │ │ └── progress.js │ ├── registry │ └── common │ │ └── platform.js │ ├── severityIcon │ └── common │ │ └── severityIcon.js │ ├── storage │ └── common │ │ └── storage.js │ ├── telemetry │ └── common │ │ ├── gdprTypings.js │ │ └── telemetry.js │ ├── theme │ └── common │ │ ├── colorRegistry.js │ │ ├── styler.js │ │ └── themeService.js │ ├── workspace │ └── common │ │ └── workspace.js │ └── workspaces │ └── common │ └── workspaces.js ├── prettier-babel.js └── prettier.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukejacksonn/monacode/9fa32db5571d2f3c20802cb87444a2e6e63d1be5/.npmignore -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | monacode.live -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2020 - present Luke Jackson 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. 22 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | Monacode 7 | 42 | 59 | 60 | 61 | 62 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "description": "A thin es-module wrapper around the monaco editor and prettier", 3 | "license": "MIT", 4 | "main": "./index.min.js", 5 | "module": "./index.min.js", 6 | "name": "monacode", 7 | "scripts": { 8 | "build": "esbuild --bundle index.js --outfile=index.min.js --format=esm --minify", 9 | "start": "servor --browse --reload --editor", 10 | "prepublish": "npm run build" 11 | }, 12 | "version": "0.3.1", 13 | "devDependencies": { 14 | "esbuild": "0.6.12", 15 | "servor": "4.0.2" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /src/codicon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukejacksonn/monacode/9fa32db5571d2f3c20802cb87444a2e6e63d1be5/src/codicon.ttf -------------------------------------------------------------------------------- /src/monaco/base/browser/contextmenu.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var __extends = (this && this.__extends) || (function () { 6 | var extendStatics = function (d, b) { 7 | extendStatics = Object.setPrototypeOf || 8 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 9 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 10 | return extendStatics(d, b); 11 | }; 12 | return function (d, b) { 13 | extendStatics(d, b); 14 | function __() { this.constructor = d; } 15 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 16 | }; 17 | })(); 18 | import { SubmenuAction } from './ui/menu/menu.js'; 19 | var ContextSubMenu = /** @class */ (function (_super) { 20 | __extends(ContextSubMenu, _super); 21 | function ContextSubMenu(label, entries) { 22 | var _this = _super.call(this, label, entries, 'contextsubmenu') || this; 23 | _this.entries = entries; 24 | return _this; 25 | } 26 | return ContextSubMenu; 27 | }(SubmenuAction)); 28 | export { ContextSubMenu }; 29 | -------------------------------------------------------------------------------- /src/monaco/base/browser/dnd.js: -------------------------------------------------------------------------------- 1 | // Common data transfers 2 | export var DataTransfers = { 3 | /** 4 | * Application specific resource transfer type 5 | */ 6 | RESOURCES: 'ResourceURLs', 7 | /** 8 | * Browser specific transfer type to download 9 | */ 10 | DOWNLOAD_URL: 'DownloadURL', 11 | /** 12 | * Browser specific transfer type for files 13 | */ 14 | FILES: 'Files', 15 | /** 16 | * Typically transfer type for copy/paste transfers. 17 | */ 18 | TEXT: 'text/plain' 19 | }; 20 | var DragAndDropData = /** @class */ (function () { 21 | function DragAndDropData(data) { 22 | this.data = data; 23 | } 24 | DragAndDropData.prototype.update = function () { 25 | // noop 26 | }; 27 | DragAndDropData.prototype.getData = function () { 28 | return this.data; 29 | }; 30 | return DragAndDropData; 31 | }()); 32 | export { DragAndDropData }; 33 | export var StaticDND = { 34 | CurrentDragAndDropData: undefined 35 | }; 36 | -------------------------------------------------------------------------------- /src/monaco/base/browser/event.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { Event as BaseEvent, Emitter } from '../common/event.js'; 6 | export var domEvent = function (element, type, useCapture) { 7 | var fn = function (e) { return emitter.fire(e); }; 8 | var emitter = new Emitter({ 9 | onFirstListenerAdd: function () { 10 | element.addEventListener(type, fn, useCapture); 11 | }, 12 | onLastListenerRemove: function () { 13 | element.removeEventListener(type, fn, useCapture); 14 | } 15 | }); 16 | return emitter.event; 17 | }; 18 | export function stop(event) { 19 | return BaseEvent.map(event, function (e) { 20 | e.preventDefault(); 21 | e.stopPropagation(); 22 | return e; 23 | }); 24 | } 25 | -------------------------------------------------------------------------------- /src/monaco/base/browser/history.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/aria/aria.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-aria-container { 7 | position: absolute; /* try to hide from window but not from screen readers */ 8 | left:-999em; 9 | } -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/checkbox/checkbox.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-custom-checkbox { 7 | margin-left: 2px; 8 | float: left; 9 | cursor: pointer; 10 | overflow: hidden; 11 | opacity: 0.7; 12 | width: 20px; 13 | height: 20px; 14 | border: 1px solid transparent; 15 | padding: 1px; 16 | box-sizing: border-box; 17 | user-select: none; 18 | -webkit-user-select: none; 19 | -ms-user-select: none; 20 | } 21 | 22 | .monaco-custom-checkbox:hover, 23 | .monaco-custom-checkbox.checked { 24 | opacity: 1; 25 | } 26 | 27 | .hc-black .monaco-custom-checkbox { 28 | background: none; 29 | } 30 | 31 | .hc-black .monaco-custom-checkbox:hover { 32 | background: none; 33 | } 34 | 35 | .monaco-custom-checkbox.monaco-simple-checkbox { 36 | height: 18px; 37 | width: 18px; 38 | border: 1px solid transparent; 39 | border-radius: 3px; 40 | margin-right: 9px; 41 | margin-left: 0px; 42 | padding: 0px; 43 | opacity: 1; 44 | background-size: 16px !important; 45 | } 46 | 47 | /* hide check when unchecked */ 48 | .monaco-custom-checkbox.monaco-simple-checkbox.unchecked:not(.checked)::before { 49 | visibility: hidden;; 50 | } 51 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/codiconLabel/codicon/codicon-animations.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | @keyframes codicon-spin { 7 | 100% { 8 | transform:rotate(360deg); 9 | } 10 | } 11 | 12 | .codicon-animation-spin { 13 | animation: codicon-spin 1.5s linear infinite; 14 | } 15 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/codiconLabel/codicon/codicon.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukejacksonn/monacode/9fa32db5571d2f3c20802cb87444a2e6e63d1be5/src/monaco/base/browser/ui/codiconLabel/codicon/codicon.ttf -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/codiconLabel/codiconLabel.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | // import './codicon/codicon.css'; 6 | // import './codicon/codicon-animations.css'; 7 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/contextview/contextview.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .context-view { 7 | position: absolute; 8 | z-index: 2500; 9 | } 10 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/countBadge/countBadge.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-count-badge { 7 | padding: 3px 5px; 8 | border-radius: 11px; 9 | font-size: 11px; 10 | min-width: 18px; 11 | min-height: 18px; 12 | line-height: 11px; 13 | font-weight: normal; 14 | text-align: center; 15 | display: inline-block; 16 | box-sizing: border-box; 17 | } -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/keybindingLabel/keybindingLabel.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-keybinding { 7 | display: flex; 8 | align-items: center; 9 | line-height: 10px; 10 | } 11 | 12 | .monaco-keybinding > .monaco-keybinding-key { 13 | display: inline-block; 14 | border: solid 1px rgba(204, 204, 204, 0.4); 15 | border-bottom-color: rgba(187, 187, 187, 0.4); 16 | border-radius: 3px; 17 | box-shadow: inset 0 -1px 0 rgba(187, 187, 187, 0.4); 18 | background-color: rgba(221, 221, 221, 0.4); 19 | vertical-align: middle; 20 | color: #555; 21 | font-size: 11px; 22 | padding: 3px 5px; 23 | margin: 0 2px; 24 | } 25 | 26 | .monaco-keybinding > .monaco-keybinding-key:first-child { 27 | margin-left: 0; 28 | } 29 | 30 | .monaco-keybinding > .monaco-keybinding-key:last-child { 31 | margin-right: 0; 32 | } 33 | 34 | .hc-black .monaco-keybinding > .monaco-keybinding-key, 35 | .vs-dark .monaco-keybinding > .monaco-keybinding-key { 36 | background-color: rgba(128, 128, 128, 0.17); 37 | color: #ccc; 38 | border: solid 1px rgba(51, 51, 51, 0.6); 39 | border-bottom-color: rgba(68, 68, 68, 0.6); 40 | box-shadow: inset 0 -1px 0 rgba(68, 68, 68, 0.6); 41 | } 42 | 43 | .monaco-keybinding > .monaco-keybinding-key-separator { 44 | display: inline-block; 45 | } 46 | 47 | .monaco-keybinding > .monaco-keybinding-key-chord-separator { 48 | width: 6px; 49 | } -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/list/list.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var __extends = (this && this.__extends) || (function () { 6 | var extendStatics = function (d, b) { 7 | extendStatics = Object.setPrototypeOf || 8 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 9 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 10 | return extendStatics(d, b); 11 | }; 12 | return function (d, b) { 13 | extendStatics(d, b); 14 | function __() { this.constructor = d; } 15 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 16 | }; 17 | })(); 18 | export var ListAriaRootRole; 19 | (function (ListAriaRootRole) { 20 | /** default tree structure role */ 21 | ListAriaRootRole["TREE"] = "tree"; 22 | /** role='tree' can interfere with screenreaders reading nested elements inside the tree row. Use FORM in that case. */ 23 | ListAriaRootRole["FORM"] = "form"; 24 | })(ListAriaRootRole || (ListAriaRootRole = {})); 25 | var ListError = /** @class */ (function (_super) { 26 | __extends(ListError, _super); 27 | function ListError(user, message) { 28 | return _super.call(this, "ListError [" + user + "] " + message) || this; 29 | } 30 | return ListError; 31 | }(Error)); 32 | export { ListError }; 33 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/list/splice.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var CombinedSpliceable = /** @class */ (function () { 6 | function CombinedSpliceable(spliceables) { 7 | this.spliceables = spliceables; 8 | } 9 | CombinedSpliceable.prototype.splice = function (start, deleteCount, elements) { 10 | this.spliceables.forEach(function (s) { return s.splice(start, deleteCount, elements); }); 11 | }; 12 | return CombinedSpliceable; 13 | }()); 14 | export { CombinedSpliceable }; 15 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/progressbar/progressbar.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-progress-container { 7 | width: 100%; 8 | height: 5px; 9 | overflow: hidden; /* keep progress bit in bounds */ 10 | } 11 | 12 | .monaco-progress-container .progress-bit { 13 | width: 2%; 14 | height: 5px; 15 | position: absolute; 16 | left: 0; 17 | display: none; 18 | } 19 | 20 | .monaco-progress-container.active .progress-bit { 21 | display: inherit; 22 | } 23 | 24 | .monaco-progress-container.discrete .progress-bit { 25 | left: 0; 26 | transition: width 100ms linear; 27 | } 28 | 29 | .monaco-progress-container.discrete.done .progress-bit { 30 | width: 100%; 31 | } 32 | 33 | .monaco-progress-container.infinite .progress-bit { 34 | animation-name: progress; 35 | animation-duration: 4s; 36 | animation-iteration-count: infinite; 37 | animation-timing-function: linear; 38 | transform: translate3d(0px, 0px, 0px); 39 | } 40 | 41 | /** 42 | * The progress bit has a width: 2% (1/50) of the parent container. The animation moves it from 0% to 100% of 43 | * that container. Since translateX is relative to the progress bit size, we have to multiple it with 44 | * its relative size to the parent container: 45 | * 50%: 50 * 50 = 2500% 46 | * 100%: 50 * 100 - 50 (do not overflow): 4950% 47 | */ 48 | @keyframes progress { from { transform: translateX(0%) scaleX(1) } 50% { transform: translateX(2500%) scaleX(3) } to { transform: translateX(4950%) scaleX(1) } } 49 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/scrollbar/scrollableElementOptions.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/tree/dataTree.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var __extends = (this && this.__extends) || (function () { 6 | var extendStatics = function (d, b) { 7 | extendStatics = Object.setPrototypeOf || 8 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 9 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 10 | return extendStatics(d, b); 11 | }; 12 | return function (d, b) { 13 | extendStatics(d, b); 14 | function __() { this.constructor = d; } 15 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 16 | }; 17 | })(); 18 | import { AbstractTree } from './abstractTree.js'; 19 | import { ObjectTreeModel } from './objectTreeModel.js'; 20 | var DataTree = /** @class */ (function (_super) { 21 | __extends(DataTree, _super); 22 | function DataTree(user, container, delegate, renderers, dataSource, options) { 23 | if (options === void 0) { options = {}; } 24 | var _this = _super.call(this, user, container, delegate, renderers, options) || this; 25 | _this.user = user; 26 | _this.dataSource = dataSource; 27 | _this.identityProvider = options.identityProvider; 28 | return _this; 29 | } 30 | DataTree.prototype.createModel = function (user, view, options) { 31 | return new ObjectTreeModel(user, view, options); 32 | }; 33 | return DataTree; 34 | }(AbstractTree)); 35 | export { DataTree }; 36 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/tree/media/tree.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-tl-row { 7 | display: flex; 8 | height: 100%; 9 | align-items: center; 10 | position: relative; 11 | } 12 | 13 | .monaco-tl-indent { 14 | height: 100%; 15 | position: absolute; 16 | top: 0; 17 | left: 16px; 18 | pointer-events: none; 19 | } 20 | 21 | .hide-arrows .monaco-tl-indent { 22 | left: 12px; 23 | } 24 | 25 | .monaco-tl-indent > .indent-guide { 26 | display: inline-block; 27 | box-sizing: border-box; 28 | height: 100%; 29 | border-left: 1px solid transparent; 30 | } 31 | 32 | .monaco-tl-indent > .indent-guide { 33 | transition: border-color 0.1s linear; 34 | } 35 | 36 | .monaco-tl-twistie, 37 | .monaco-tl-contents { 38 | height: 100%; 39 | } 40 | 41 | .monaco-tl-twistie { 42 | font-size: 10px; 43 | text-align: right; 44 | padding-right: 6px; 45 | flex-shrink: 0; 46 | width: 16px; 47 | display: flex !important; 48 | align-items: center; 49 | justify-content: center; 50 | color: inherit !important; 51 | transform: translateX(3px); 52 | } 53 | 54 | .monaco-tl-contents { 55 | flex: 1; 56 | overflow: hidden; 57 | } 58 | 59 | .monaco-tl-twistie.collapsed::before { 60 | transform: rotate(-90deg); 61 | } 62 | 63 | .monaco-tl-twistie.codicon-loading::before { 64 | animation: codicon-spin 1.25s linear infinite; 65 | } 66 | -------------------------------------------------------------------------------- /src/monaco/base/browser/ui/tree/tree.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var __extends = (this && this.__extends) || (function () { 6 | var extendStatics = function (d, b) { 7 | extendStatics = Object.setPrototypeOf || 8 | ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || 9 | function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; 10 | return extendStatics(d, b); 11 | }; 12 | return function (d, b) { 13 | extendStatics(d, b); 14 | function __() { this.constructor = d; } 15 | d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); 16 | }; 17 | })(); 18 | var TreeError = /** @class */ (function (_super) { 19 | __extends(TreeError, _super); 20 | function TreeError(user, message) { 21 | return _super.call(this, "TreeError [" + user + "] " + message) || this; 22 | } 23 | return TreeError; 24 | }(Error)); 25 | export { TreeError }; 26 | var WeakMapper = /** @class */ (function () { 27 | function WeakMapper(fn) { 28 | this.fn = fn; 29 | this._map = new WeakMap(); 30 | } 31 | WeakMapper.prototype.map = function (key) { 32 | var result = this._map.get(key); 33 | if (!result) { 34 | result = this.fn(key); 35 | this._map.set(key, result); 36 | } 37 | return result; 38 | }; 39 | return WeakMapper; 40 | }()); 41 | export { WeakMapper }; 42 | -------------------------------------------------------------------------------- /src/monaco/base/common/assert.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | /** 6 | * Throws an error with the provided message if the provided value does not evaluate to a true Javascript value. 7 | */ 8 | export function ok(value, message) { 9 | if (!value) { 10 | throw new Error(message ? 'Assertion failed (' + message + ')' : 'Assertion Failed'); 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/monaco/base/common/charCode.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | -------------------------------------------------------------------------------- /src/monaco/base/common/codicons.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var escapeCodiconsRegex = /(\\)?\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi; 6 | export function escapeCodicons(text) { 7 | return text.replace(escapeCodiconsRegex, function (match, escaped) { return escaped ? match : "\\" + match; }); 8 | } 9 | var markdownEscapedCodiconsRegex = /\\\$\([a-z0-9\-]+?(?:~[a-z0-9\-]*?)?\)/gi; 10 | export function markdownEscapeEscapedCodicons(text) { 11 | // Need to add an extra \ for escaping in markdown 12 | return text.replace(markdownEscapedCodiconsRegex, function (match) { return "\\" + match; }); 13 | } 14 | var renderCodiconsRegex = /(\\)?\$\((([a-z0-9\-]+?)(?:~([a-z0-9\-]*?))?)\)/gi; 15 | export function renderCodicons(text) { 16 | return text.replace(renderCodiconsRegex, function (_, escaped, codicon, name, animation) { 17 | return escaped 18 | ? "$(" + codicon + ")" 19 | : ""; 20 | }); 21 | } 22 | -------------------------------------------------------------------------------- /src/monaco/base/common/diff/diffChange.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | /** 6 | * Represents information about a specific difference between two sequences. 7 | */ 8 | var DiffChange = /** @class */ (function () { 9 | /** 10 | * Constructs a new DiffChange with the given sequence information 11 | * and content. 12 | */ 13 | function DiffChange(originalStart, originalLength, modifiedStart, modifiedLength) { 14 | //Debug.Assert(originalLength > 0 || modifiedLength > 0, "originalLength and modifiedLength cannot both be <= 0"); 15 | this.originalStart = originalStart; 16 | this.originalLength = originalLength; 17 | this.modifiedStart = modifiedStart; 18 | this.modifiedLength = modifiedLength; 19 | } 20 | /** 21 | * The end point (exclusive) of the change in the original sequence. 22 | */ 23 | DiffChange.prototype.getOriginalEnd = function () { 24 | return this.originalStart + this.originalLength; 25 | }; 26 | /** 27 | * The end point (exclusive) of the change in the modified sequence. 28 | */ 29 | DiffChange.prototype.getModifiedEnd = function () { 30 | return this.modifiedStart + this.modifiedLength; 31 | }; 32 | return DiffChange; 33 | }()); 34 | export { DiffChange }; 35 | -------------------------------------------------------------------------------- /src/monaco/base/common/extpath.js: -------------------------------------------------------------------------------- 1 | import { startsWithIgnoreCase } from './strings.js'; 2 | import { sep, posix } from './path.js'; 3 | /** 4 | * Takes a Windows OS path and changes backward slashes to forward slashes. 5 | * This should only be done for OS paths from Windows (or user provided paths potentially from Windows). 6 | * Using it on a Linux or MaxOS path might change it. 7 | */ 8 | export function toSlashes(osPath) { 9 | return osPath.replace(/[\\/]/g, posix.sep); 10 | } 11 | export function isEqualOrParent(path, candidate, ignoreCase, separator) { 12 | if (separator === void 0) { separator = sep; } 13 | if (path === candidate) { 14 | return true; 15 | } 16 | if (!path || !candidate) { 17 | return false; 18 | } 19 | if (candidate.length > path.length) { 20 | return false; 21 | } 22 | if (ignoreCase) { 23 | var beginsWith = startsWithIgnoreCase(path, candidate); 24 | if (!beginsWith) { 25 | return false; 26 | } 27 | if (candidate.length === path.length) { 28 | return true; // same path, different casing 29 | } 30 | var sepOffset = candidate.length; 31 | if (candidate.charAt(candidate.length - 1) === separator) { 32 | sepOffset--; // adjust the expected sep offset in case our candidate already ends in separator character 33 | } 34 | return path.charAt(sepOffset) === separator; 35 | } 36 | if (candidate.charAt(candidate.length - 1) !== separator) { 37 | candidate += separator; 38 | } 39 | return path.indexOf(candidate) === 0; 40 | } 41 | export function isWindowsDriveLetter(char0) { 42 | return char0 >= 65 /* A */ && char0 <= 90 /* Z */ || char0 >= 97 /* a */ && char0 <= 122 /* z */; 43 | } 44 | -------------------------------------------------------------------------------- /src/monaco/base/common/functional.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export function once(fn) { 6 | var _this = this; 7 | var didCall = false; 8 | var result; 9 | return function () { 10 | if (didCall) { 11 | return result; 12 | } 13 | didCall = true; 14 | result = fn.apply(_this, arguments); 15 | return result; 16 | }; 17 | } 18 | -------------------------------------------------------------------------------- /src/monaco/base/common/idGenerator.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var IdGenerator = /** @class */ (function () { 6 | function IdGenerator(prefix) { 7 | this._prefix = prefix; 8 | this._lastId = 0; 9 | } 10 | IdGenerator.prototype.nextId = function () { 11 | return this._prefix + (++this._lastId); 12 | }; 13 | return IdGenerator; 14 | }()); 15 | export { IdGenerator }; 16 | export var defaultGenerator = new IdGenerator('id#'); 17 | -------------------------------------------------------------------------------- /src/monaco/base/common/jsonSchema.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | -------------------------------------------------------------------------------- /src/monaco/base/common/lazy.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var Lazy = /** @class */ (function () { 6 | function Lazy(executor) { 7 | this.executor = executor; 8 | this._didRun = false; 9 | } 10 | /** 11 | * Get the wrapped value. 12 | * 13 | * This will force evaluation of the lazy value if it has not been resolved yet. Lazy values are only 14 | * resolved once. `getValue` will re-throw exceptions that are hit while resolving the value 15 | */ 16 | Lazy.prototype.getValue = function () { 17 | if (!this._didRun) { 18 | try { 19 | this._value = this.executor(); 20 | } 21 | catch (err) { 22 | this._error = err; 23 | } 24 | finally { 25 | this._didRun = true; 26 | } 27 | } 28 | if (this._error) { 29 | throw this._error; 30 | } 31 | return this._value; 32 | }; 33 | Object.defineProperty(Lazy.prototype, "rawValue", { 34 | /** 35 | * Get the wrapped value without forcing evaluation. 36 | */ 37 | get: function () { return this._value; }, 38 | enumerable: true, 39 | configurable: true 40 | }); 41 | return Lazy; 42 | }()); 43 | export { Lazy }; 44 | -------------------------------------------------------------------------------- /src/monaco/base/common/marshalling.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { URI } from './uri.js'; 6 | export function parse(text) { 7 | var data = JSON.parse(text); 8 | data = revive(data); 9 | return data; 10 | } 11 | export function revive(obj, depth) { 12 | if (depth === void 0) { depth = 0; } 13 | if (!obj || depth > 200) { 14 | return obj; 15 | } 16 | if (typeof obj === 'object') { 17 | switch (obj.$mid) { 18 | case 1: return URI.revive(obj); 19 | case 2: return new RegExp(obj.source, obj.flags); 20 | } 21 | // walk object (or array) 22 | for (var key in obj) { 23 | if (Object.hasOwnProperty.call(obj, key)) { 24 | obj[key] = revive(obj[key], depth + 1); 25 | } 26 | } 27 | } 28 | return obj; 29 | } 30 | -------------------------------------------------------------------------------- /src/monaco/base/common/numbers.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export function clamp(value, min, max) { 6 | return Math.min(Math.max(value, min), max); 7 | } 8 | -------------------------------------------------------------------------------- /src/monaco/base/common/paging.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukejacksonn/monacode/9fa32db5571d2f3c20802cb87444a2e6e63d1be5/src/monaco/base/common/paging.js -------------------------------------------------------------------------------- /src/monaco/base/common/process.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { isWindows, isMacintosh, setImmediate } from './platform.js'; 6 | var safeProcess = (typeof process === 'undefined') ? { 7 | cwd: function () { return '/'; }, 8 | env: Object.create(null), 9 | get platform() { return isWindows ? 'win32' : isMacintosh ? 'darwin' : 'linux'; }, 10 | nextTick: function (callback) { return setImmediate(callback); } 11 | } : process; 12 | export var cwd = safeProcess.cwd; 13 | export var env = safeProcess.env; 14 | export var platform = safeProcess.platform; 15 | -------------------------------------------------------------------------------- /src/monaco/base/common/range.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export var Range; 6 | (function (Range) { 7 | /** 8 | * Returns the intersection between two ranges as a range itself. 9 | * Returns `{ start: 0, end: 0 }` if the intersection is empty. 10 | */ 11 | function intersect(one, other) { 12 | if (one.start >= other.end || other.start >= one.end) { 13 | return { start: 0, end: 0 }; 14 | } 15 | var start = Math.max(one.start, other.start); 16 | var end = Math.min(one.end, other.end); 17 | if (end - start <= 0) { 18 | return { start: 0, end: 0 }; 19 | } 20 | return { start: start, end: end }; 21 | } 22 | Range.intersect = intersect; 23 | function isEmpty(range) { 24 | return range.end - range.start <= 0; 25 | } 26 | Range.isEmpty = isEmpty; 27 | function intersects(one, other) { 28 | return !isEmpty(intersect(one, other)); 29 | } 30 | Range.intersects = intersects; 31 | function relativeComplement(one, other) { 32 | var result = []; 33 | var first = { start: one.start, end: Math.min(other.start, one.end) }; 34 | var second = { start: Math.max(other.end, one.start), end: one.end }; 35 | if (!isEmpty(first)) { 36 | result.push(first); 37 | } 38 | if (!isEmpty(second)) { 39 | result.push(second); 40 | } 41 | return result; 42 | } 43 | Range.relativeComplement = relativeComplement; 44 | })(Range || (Range = {})); 45 | -------------------------------------------------------------------------------- /src/monaco/base/common/sequence.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukejacksonn/monacode/9fa32db5571d2f3c20802cb87444a2e6e63d1be5/src/monaco/base/common/sequence.js -------------------------------------------------------------------------------- /src/monaco/base/common/stopwatch.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { globals } from './platform.js'; 6 | var hasPerformanceNow = (globals.performance && typeof globals.performance.now === 'function'); 7 | var StopWatch = /** @class */ (function () { 8 | function StopWatch(highResolution) { 9 | this._highResolution = hasPerformanceNow && highResolution; 10 | this._startTime = this._now(); 11 | this._stopTime = -1; 12 | } 13 | StopWatch.create = function (highResolution) { 14 | if (highResolution === void 0) { highResolution = true; } 15 | return new StopWatch(highResolution); 16 | }; 17 | StopWatch.prototype.stop = function () { 18 | this._stopTime = this._now(); 19 | }; 20 | StopWatch.prototype.elapsed = function () { 21 | if (this._stopTime !== -1) { 22 | return this._stopTime - this._startTime; 23 | } 24 | return this._now() - this._startTime; 25 | }; 26 | StopWatch.prototype._now = function () { 27 | return this._highResolution ? globals.performance.now() : new Date().getTime(); 28 | }; 29 | return StopWatch; 30 | }()); 31 | export { StopWatch }; 32 | -------------------------------------------------------------------------------- /src/monaco/base/common/styler.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | -------------------------------------------------------------------------------- /src/monaco/base/common/uint.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export function toUint8(v) { 6 | if (v < 0) { 7 | return 0; 8 | } 9 | if (v > 255 /* MAX_UINT_8 */) { 10 | return 255 /* MAX_UINT_8 */; 11 | } 12 | return v | 0; 13 | } 14 | export function toUint32(v) { 15 | if (v < 0) { 16 | return 0; 17 | } 18 | if (v > 4294967295 /* MAX_UINT_32 */) { 19 | return 4294967295 /* MAX_UINT_32 */; 20 | } 21 | return v | 0; 22 | } 23 | -------------------------------------------------------------------------------- /src/monaco/base/parts/quickopen/common/quickOpen.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | -------------------------------------------------------------------------------- /src/monaco/base/parts/tree/browser/tree.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | .monaco-tree { 6 | height: 100%; 7 | width: 100%; 8 | white-space: nowrap; 9 | user-select: none; 10 | -webkit-user-select: none; 11 | -ms-user-select: none; 12 | position: relative; 13 | } 14 | 15 | .monaco-tree > .monaco-scrollable-element { 16 | height: 100%; 17 | } 18 | 19 | .monaco-tree > .monaco-scrollable-element > .monaco-tree-wrapper { 20 | height: 100%; 21 | width: 100%; 22 | position: relative; 23 | } 24 | 25 | .monaco-tree .monaco-tree-rows { 26 | position: absolute; 27 | width: 100%; 28 | height: 100%; 29 | } 30 | 31 | .monaco-tree .monaco-tree-rows > .monaco-tree-row { 32 | box-sizing: border-box; 33 | cursor: pointer; 34 | overflow: hidden; 35 | width: 100%; 36 | touch-action: none; 37 | } 38 | 39 | .monaco-tree .monaco-tree-rows > .monaco-tree-row > .content { 40 | position: relative; 41 | height: 100%; 42 | } 43 | 44 | .monaco-tree-drag-image { 45 | display: inline-block; 46 | padding: 1px 7px; 47 | border-radius: 10px; 48 | font-size: 12px; 49 | position: absolute; 50 | } 51 | 52 | /* for OS X ballistic scrolling */ 53 | .monaco-tree .monaco-tree-rows > .monaco-tree-row.scrolling { 54 | display: none; 55 | } 56 | 57 | /* Highlighted */ 58 | 59 | .monaco-tree.highlighted .monaco-tree-rows > .monaco-tree-row:not(.highlighted) { 60 | opacity: 0.3; 61 | } 62 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/abap/abap.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'abap', 9 | extensions: ['.abap'], 10 | aliases: ['abap', 'ABAP'], 11 | loader: function () { return import('./abap.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/apex/apex.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'apex', 9 | extensions: ['.cls'], 10 | aliases: ['Apex', 'apex'], 11 | mimetypes: ['text/x-apex-source', 'text/x-apex'], 12 | loader: function () { return import('./apex.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/azcli/azcli.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'azcli', 9 | extensions: ['.azcli'], 10 | aliases: ['Azure CLI', 'azcli'], 11 | loader: function () { return import('./azcli.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/bat/bat.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'bat', 9 | extensions: ['.bat', '.cmd'], 10 | aliases: ['Batch', 'bat'], 11 | loader: function () { return import('./bat.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/cameligo/cameligo.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'cameligo', 9 | extensions: ['.mligo'], 10 | aliases: ['Cameligo'], 11 | loader: function () { return import('./cameligo.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/clojure/clojure.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'clojure', 9 | extensions: ['.clj', '.cljs', '.cljc', '.edn'], 10 | aliases: ['clojure', 'Clojure'], 11 | loader: function () { return import('./clojure.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/coffee/coffee.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'coffeescript', 9 | extensions: ['.coffee'], 10 | aliases: ['CoffeeScript', 'coffeescript', 'coffee'], 11 | mimetypes: ['text/x-coffeescript', 'text/coffeescript'], 12 | loader: function () { return import('./coffee.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/cpp/cpp.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'c', 9 | extensions: ['.c', '.h'], 10 | aliases: ['C', 'c'], 11 | loader: function () { return import('./cpp.js'); } 12 | }); 13 | registerLanguage({ 14 | id: 'cpp', 15 | extensions: ['.cpp', '.cc', '.cxx', '.hpp', '.hh', '.hxx'], 16 | aliases: ['C++', 'Cpp', 'cpp'], 17 | loader: function () { return import('./cpp.js'); } 18 | }); 19 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/csharp/csharp.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'csharp', 9 | extensions: ['.cs', '.csx', '.cake'], 10 | aliases: ['C#', 'csharp'], 11 | loader: function () { return import('./csharp.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/csp/csp.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'csp', 9 | extensions: [], 10 | aliases: ['CSP', 'csp'], 11 | loader: function () { return import('./csp.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/css/css.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'css', 9 | extensions: ['.css'], 10 | aliases: ['CSS', 'css'], 11 | mimetypes: ['text/css'], 12 | loader: function () { return import('./css.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/dockerfile/dockerfile.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'dockerfile', 9 | extensions: ['.dockerfile'], 10 | filenames: ['Dockerfile'], 11 | aliases: ['Dockerfile'], 12 | loader: function () { return import('./dockerfile.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/fsharp/fsharp.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'fsharp', 9 | extensions: ['.fs', '.fsi', '.ml', '.mli', '.fsx', '.fsscript'], 10 | aliases: ['F#', 'FSharp', 'fsharp'], 11 | loader: function () { return import('./fsharp.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/go/go.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'go', 9 | extensions: ['.go'], 10 | aliases: ['Go'], 11 | loader: function () { return import('./go.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/graphql/graphql.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'graphql', 9 | extensions: ['.graphql', '.gql'], 10 | aliases: ['GraphQL', 'graphql', 'gql'], 11 | mimetypes: ['application/graphql'], 12 | loader: function () { return import('./graphql.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/handlebars/handlebars.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'handlebars', 9 | extensions: ['.handlebars', '.hbs'], 10 | aliases: ['Handlebars', 'handlebars'], 11 | mimetypes: ['text/x-handlebars-template'], 12 | loader: function () { return import('./handlebars.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/html/html.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'html', 9 | extensions: ['.html', '.htm', '.shtml', '.xhtml', '.mdoc', '.jsp', '.asp', '.aspx', '.jshtm'], 10 | aliases: ['HTML', 'htm', 'html', 'xhtml'], 11 | mimetypes: ['text/html', 'text/x-jshtm', 'text/template', 'text/ng-template'], 12 | loader: function () { return import('./html.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/ini/ini.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'ini', 9 | extensions: ['.ini', '.properties', '.gitconfig'], 10 | filenames: ['config', '.gitattributes', '.gitconfig', '.editorconfig'], 11 | aliases: ['Ini', 'ini'], 12 | loader: function () { return import('./ini.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/java/java.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'java', 9 | extensions: ['.java', '.jav'], 10 | aliases: ['Java', 'java'], 11 | mimetypes: ['text/x-java-source', 'text/x-java'], 12 | loader: function () { return import('./java.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/javascript/javascript.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'javascript', 9 | extensions: ['.js', '.es6', '.jsx'], 10 | firstLine: '^#!.*\\bnode', 11 | filenames: ['jakefile'], 12 | aliases: ['JavaScript', 'javascript', 'js'], 13 | mimetypes: ['text/javascript'], 14 | loader: function () { return import('./javascript.js'); } 15 | }); 16 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/javascript/javascript.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { conf as tsConf, language as tsLanguage } from '../typescript/typescript.js'; 7 | // Allow for running under nodejs/requirejs in tests 8 | var _monaco = (typeof monaco === 'undefined' ? self.monaco : monaco); 9 | export var conf = tsConf; 10 | export var language = { 11 | // Set defaultToken to invalid to see what you do not tokenize yet 12 | defaultToken: 'invalid', 13 | tokenPostfix: '.js', 14 | keywords: [ 15 | 'break', 'case', 'catch', 'class', 'continue', 'const', 16 | 'constructor', 'debugger', 'default', 'delete', 'do', 'else', 17 | 'export', 'extends', 'false', 'finally', 'for', 'from', 'function', 18 | 'get', 'if', 'import', 'in', 'instanceof', 'let', 'new', 'null', 19 | 'return', 'set', 'super', 'switch', 'symbol', 'this', 'throw', 'true', 20 | 'try', 'typeof', 'undefined', 'var', 'void', 'while', 'with', 'yield', 21 | 'async', 'await', 'of' 22 | ], 23 | typeKeywords: [], 24 | operators: tsLanguage.operators, 25 | symbols: tsLanguage.symbols, 26 | escapes: tsLanguage.escapes, 27 | digits: tsLanguage.digits, 28 | octaldigits: tsLanguage.octaldigits, 29 | binarydigits: tsLanguage.binarydigits, 30 | hexdigits: tsLanguage.hexdigits, 31 | regexpctl: tsLanguage.regexpctl, 32 | regexpesc: tsLanguage.regexpesc, 33 | tokenizer: tsLanguage.tokenizer, 34 | }; 35 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/kotlin/kotlin.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'kotlin', 9 | extensions: ['.kt'], 10 | aliases: ['Kotlin', 'kotlin'], 11 | mimetypes: ['text/x-kotlin-source', 'text/x-kotlin'], 12 | loader: function () { return import('./kotlin.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/less/less.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'less', 9 | extensions: ['.less'], 10 | aliases: ['Less', 'less'], 11 | mimetypes: ['text/x-less', 'text/less'], 12 | loader: function () { return import('./less.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/lua/lua.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'lua', 9 | extensions: ['.lua'], 10 | aliases: ['Lua', 'lua'], 11 | loader: function () { return import('./lua.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/markdown/markdown.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'markdown', 9 | extensions: ['.md', '.markdown', '.mdown', '.mkdn', '.mkd', '.mdwn', '.mdtxt', '.mdtext'], 10 | aliases: ['Markdown', 'markdown'], 11 | loader: function () { return import('./markdown.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/mips/mips.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'mips', 9 | extensions: ['.s'], 10 | aliases: ['MIPS', 'MIPS-V'], 11 | mimetypes: ['text/x-mips', 'text/mips', 'text/plaintext'], 12 | loader: function () { return import('./mips.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/msdax/msdax.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'msdax', 9 | extensions: ['.dax', '.msdax'], 10 | aliases: ['DAX', 'MSDAX'], 11 | loader: function () { return import('./msdax.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/mysql/mysql.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'mysql', 9 | extensions: [], 10 | aliases: ['MySQL', 'mysql'], 11 | loader: function () { return import('./mysql.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/objective-c/objective-c.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'objective-c', 9 | extensions: ['.m'], 10 | aliases: ['Objective-C'], 11 | loader: function () { return import('./objective-c.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/pascal/pascal.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'pascal', 9 | extensions: ['.pas', '.p', '.pp'], 10 | aliases: ['Pascal', 'pas'], 11 | mimetypes: ['text/x-pascal-source', 'text/x-pascal'], 12 | loader: function () { return import('./pascal.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/pascaligo/pascaligo.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'pascaligo', 9 | extensions: ['.ligo'], 10 | aliases: ['Pascaligo', 'ligo'], 11 | loader: function () { return import('./pascaligo.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/perl/perl.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'perl', 9 | extensions: ['.pl'], 10 | aliases: ['Perl', 'pl'], 11 | loader: function () { return import('./perl.js'); }, 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/pgsql/pgsql.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'pgsql', 9 | extensions: [], 10 | aliases: ['PostgreSQL', 'postgres', 'pg', 'postgre'], 11 | loader: function () { return import('./pgsql.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/php/php.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'php', 9 | extensions: ['.php', '.php4', '.php5', '.phtml', '.ctp'], 10 | aliases: ['PHP', 'php'], 11 | mimetypes: ['application/x-php'], 12 | loader: function () { return import('./php.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/postiats/postiats.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'postiats', 9 | extensions: ['.dats', '.sats', '.hats'], 10 | aliases: ['ATS', 'ATS/Postiats'], 11 | loader: function () { return import('./postiats.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/powerquery/powerquery.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'powerquery', 9 | extensions: ['.pq', '.pqm'], 10 | aliases: ['PQ', 'M', 'Power Query', 'Power Query M'], 11 | loader: function () { return import('./powerquery.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/powershell/powershell.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'powershell', 9 | extensions: ['.ps1', '.psm1', '.psd1'], 10 | aliases: ['PowerShell', 'powershell', 'ps', 'ps1'], 11 | loader: function () { return import('./powershell.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/pug/pug.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'pug', 9 | extensions: ['.jade', '.pug'], 10 | aliases: ['Pug', 'Jade', 'jade'], 11 | loader: function () { return import('./pug.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/python/python.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'python', 9 | extensions: ['.py', '.rpy', '.pyw', '.cpy', '.gyp', '.gypi'], 10 | aliases: ['Python', 'py'], 11 | firstLine: '^#!/.*\\bpython[0-9.-]*\\b', 12 | loader: function () { return import('./python.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/r/r.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'r', 9 | extensions: ['.r', '.rhistory', '.rprofile', '.rt'], 10 | aliases: ['R', 'r'], 11 | loader: function () { return import('./r.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/razor/razor.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'razor', 9 | extensions: ['.cshtml'], 10 | aliases: ['Razor', 'razor'], 11 | mimetypes: ['text/x-cshtml'], 12 | loader: function () { return import('./razor.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/redis/redis.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'redis', 9 | extensions: ['.redis'], 10 | aliases: ['redis'], 11 | loader: function () { return import('./redis.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/redshift/redshift.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'redshift', 9 | extensions: [], 10 | aliases: ['Redshift', 'redshift'], 11 | loader: function () { return import('./redshift.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/restructuredtext/restructuredtext.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'restructuredtext', 9 | extensions: ['.rst'], 10 | aliases: ['reStructuredText', 'restructuredtext'], 11 | loader: function () { return import('./restructuredtext.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/ruby/ruby.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'ruby', 9 | extensions: ['.rb', '.rbx', '.rjs', '.gemspec', '.pp'], 10 | filenames: ['rakefile'], 11 | aliases: ['Ruby', 'rb'], 12 | loader: function () { return import('./ruby.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/rust/rust.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'rust', 9 | extensions: ['.rs', '.rlib'], 10 | aliases: ['Rust', 'rust'], 11 | loader: function () { return import('./rust.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/sb/sb.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'sb', 9 | extensions: ['.sb'], 10 | aliases: ['Small Basic', 'sb'], 11 | loader: function () { return import('./sb.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/scheme/scheme.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'scheme', 9 | extensions: ['.scm', '.ss', '.sch', '.rkt'], 10 | aliases: ['scheme', 'Scheme'], 11 | loader: function () { return import('./scheme.js'); }, 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/scss/scss.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'scss', 9 | extensions: ['.scss'], 10 | aliases: ['Sass', 'sass', 'scss'], 11 | mimetypes: ['text/x-scss', 'text/scss'], 12 | loader: function () { return import('./scss.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/shell/shell.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'shell', 9 | extensions: ['.sh', '.bash'], 10 | aliases: ['Shell', 'sh'], 11 | loader: function () { return import('./shell.js'); }, 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/solidity/solidity.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'sol', 9 | extensions: ['.sol'], 10 | aliases: ['sol', 'solidity', 'Solidity'], 11 | loader: function () { return import('./solidity.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/sophia/sophia.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'aes', 9 | extensions: ['.aes'], 10 | aliases: ['aes', 'sophia', 'Sophia'], 11 | loader: function () { return import('./sophia.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/sql/sql.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'sql', 9 | extensions: ['.sql'], 10 | aliases: ['SQL'], 11 | loader: function () { return import('./sql.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/st/st.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'st', 9 | extensions: ['.st', '.iecst', '.iecplc', '.lc3lib'], 10 | aliases: ['StructuredText', 'scl', 'stl'], 11 | loader: function () { return import('./st.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/swift/swift.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'swift', 9 | aliases: ['Swift', 'swift'], 10 | extensions: ['.swift'], 11 | mimetypes: ['text/swift'], 12 | loader: function () { return import('./swift.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/tcl/tcl.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'tcl', 9 | extensions: ['.tcl'], 10 | aliases: ['tcl', 'Tcl', 'tcltk', 'TclTk', 'tcl/tk', 'Tcl/Tk'], 11 | loader: function () { return import('./tcl.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/twig/twig.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'twig', 9 | extensions: ['.twig'], 10 | aliases: ['Twig', 'twig'], 11 | mimetypes: ['text/x-twig'], 12 | loader: function () { return import('./twig.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/typescript/typescript.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'typescript', 9 | extensions: ['.ts', '.tsx'], 10 | aliases: ['TypeScript', 'ts', 'typescript'], 11 | mimetypes: ['text/typescript'], 12 | loader: function () { return import('./typescript.js'); } 13 | }); 14 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/vb/vb.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'vb', 9 | extensions: ['.vb'], 10 | aliases: ['Visual Basic', 'vb'], 11 | loader: function () { return import('./vb.js'); } 12 | }); 13 | -------------------------------------------------------------------------------- /src/monaco/basic-languages/xml/xml.contribution.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { registerLanguage } from '../_.contribution.js'; 7 | registerLanguage({ 8 | id: 'xml', 9 | extensions: ['.xml', '.dtd', '.ascx', '.csproj', '.config', '.wxi', '.wxl', '.wxs', '.xaml', '.svg', '.svgz', '.opf', '.xsl'], 10 | firstLine: '(\\<\\?xml.*)|(\\ 96 /* CHAR_COUNT */) { 16 | if (fontScale <= 2) { 17 | // for smaller scales, we can get away with using any ASCII character... 18 | return (chCode + 96 /* CHAR_COUNT */) % 96 /* CHAR_COUNT */; 19 | } 20 | return 96 /* CHAR_COUNT */ - 1; // unknown symbol 21 | } 22 | return chCode; 23 | }; 24 | -------------------------------------------------------------------------------- /src/monaco/editor/browser/viewParts/overlayWidgets/overlayWidgets.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | .monaco-editor .overlayWidgets { 6 | position: absolute; 7 | top: 0; 8 | left:0; 9 | } -------------------------------------------------------------------------------- /src/monaco/editor/browser/viewParts/rulers/rulers.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .view-ruler { 7 | position: absolute; 8 | top: 0; 9 | } -------------------------------------------------------------------------------- /src/monaco/editor/browser/viewParts/scrollDecoration/scrollDecoration.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .scroll-decoration { 7 | position: absolute; 8 | top: 0; 9 | left: 0; 10 | height: 6px; 11 | } -------------------------------------------------------------------------------- /src/monaco/editor/browser/viewParts/selections/selections.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | /* 7 | Keeping name short for faster parsing. 8 | cslr = core selections layer rendering (div) 9 | */ 10 | .monaco-editor .lines-content .cslr { 11 | position: absolute; 12 | } 13 | 14 | .monaco-editor .top-left-radius { border-top-left-radius: 3px; } 15 | .monaco-editor .bottom-left-radius { border-bottom-left-radius: 3px; } 16 | .monaco-editor .top-right-radius { border-top-right-radius: 3px; } 17 | .monaco-editor .bottom-right-radius { border-bottom-right-radius: 3px; } 18 | 19 | .monaco-editor.hc-black .top-left-radius { border-top-left-radius: 0; } 20 | .monaco-editor.hc-black .bottom-left-radius { border-bottom-left-radius: 0; } 21 | .monaco-editor.hc-black .top-right-radius { border-top-right-radius: 0; } 22 | .monaco-editor.hc-black .bottom-right-radius { border-bottom-right-radius: 0; } 23 | -------------------------------------------------------------------------------- /src/monaco/editor/browser/widget/media/diffReview.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-diff-editor .diff-review-line-number { 7 | text-align: right; 8 | display: inline-block; 9 | } 10 | 11 | .monaco-diff-editor .diff-review { 12 | position: absolute; 13 | user-select: none; 14 | -webkit-user-select: none; 15 | -ms-user-select: none; 16 | } 17 | 18 | .monaco-diff-editor .diff-review-summary { 19 | padding-left: 10px; 20 | } 21 | 22 | .monaco-diff-editor .diff-review-shadow { 23 | position: absolute; 24 | } 25 | 26 | .monaco-diff-editor .diff-review-row { 27 | white-space: pre; 28 | } 29 | 30 | .monaco-diff-editor .diff-review-table { 31 | display: table; 32 | min-width: 100%; 33 | } 34 | 35 | .monaco-diff-editor .diff-review-row { 36 | display: table-row; 37 | width: 100%; 38 | } 39 | 40 | .monaco-diff-editor .diff-review-cell { 41 | display: table-cell; 42 | } 43 | 44 | .monaco-diff-editor .diff-review-spacer { 45 | display: inline-block; 46 | width: 10px; 47 | } 48 | 49 | .monaco-diff-editor .diff-review-actions { 50 | display: inline-block; 51 | position: absolute; 52 | right: 10px; 53 | top: 2px; 54 | } 55 | 56 | .monaco-diff-editor .diff-review-actions .action-label { 57 | width: 16px; 58 | height: 16px; 59 | margin: 2px 0; 60 | } 61 | -------------------------------------------------------------------------------- /src/monaco/editor/browser/widget/media/editor.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | /* -------------------- IE10 remove auto clear button -------------------- */ 7 | 8 | ::-ms-clear { 9 | display: none; 10 | } 11 | 12 | /* All widgets */ 13 | /* I am not a big fan of this rule */ 14 | .monaco-editor .editor-widget input { 15 | color: inherit; 16 | } 17 | 18 | /* -------------------- Editor -------------------- */ 19 | 20 | .monaco-editor { 21 | position: relative; 22 | overflow: visible; 23 | -webkit-text-size-adjust: 100%; 24 | } 25 | 26 | /* -------------------- Misc -------------------- */ 27 | 28 | .monaco-editor .overflow-guard { 29 | position: relative; 30 | overflow: hidden; 31 | } 32 | 33 | .monaco-editor .view-overlays { 34 | position: absolute; 35 | top: 0; 36 | } 37 | 38 | /* 39 | .monaco-editor .auto-closed-character { 40 | opacity: 0.3; 41 | } 42 | */ 43 | -------------------------------------------------------------------------------- /src/monaco/editor/common/commands/surroundSelectionCommand.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { Range } from '../core/range.js'; 6 | import { Selection } from '../core/selection.js'; 7 | var SurroundSelectionCommand = /** @class */ (function () { 8 | function SurroundSelectionCommand(range, charBeforeSelection, charAfterSelection) { 9 | this._range = range; 10 | this._charBeforeSelection = charBeforeSelection; 11 | this._charAfterSelection = charAfterSelection; 12 | } 13 | SurroundSelectionCommand.prototype.getEditOperations = function (model, builder) { 14 | builder.addTrackedEditOperation(new Range(this._range.startLineNumber, this._range.startColumn, this._range.startLineNumber, this._range.startColumn), this._charBeforeSelection); 15 | builder.addTrackedEditOperation(new Range(this._range.endLineNumber, this._range.endColumn, this._range.endLineNumber, this._range.endColumn), this._charAfterSelection); 16 | }; 17 | SurroundSelectionCommand.prototype.computeCursorState = function (model, helper) { 18 | var inverseEditOperations = helper.getInverseEditOperations(); 19 | var firstOperationRange = inverseEditOperations[0].range; 20 | var secondOperationRange = inverseEditOperations[1].range; 21 | return new Selection(firstOperationRange.endLineNumber, firstOperationRange.endColumn, secondOperationRange.endLineNumber, secondOperationRange.endColumn - this._charAfterSelection.length); 22 | }; 23 | return SurroundSelectionCommand; 24 | }()); 25 | export { SurroundSelectionCommand }; 26 | -------------------------------------------------------------------------------- /src/monaco/editor/common/config/editorZoom.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { Emitter } from '../../../base/common/event.js'; 6 | export var EditorZoom = new /** @class */ (function () { 7 | function class_1() { 8 | this._zoomLevel = 0; 9 | this._onDidChangeZoomLevel = new Emitter(); 10 | this.onDidChangeZoomLevel = this._onDidChangeZoomLevel.event; 11 | } 12 | class_1.prototype.getZoomLevel = function () { 13 | return this._zoomLevel; 14 | }; 15 | class_1.prototype.setZoomLevel = function (zoomLevel) { 16 | zoomLevel = Math.min(Math.max(-5, zoomLevel), 20); 17 | if (this._zoomLevel === zoomLevel) { 18 | return; 19 | } 20 | this._zoomLevel = zoomLevel; 21 | this._onDidChangeZoomLevel.fire(this._zoomLevel); 22 | }; 23 | return class_1; 24 | }()); 25 | -------------------------------------------------------------------------------- /src/monaco/editor/common/controller/cursorEvents.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | -------------------------------------------------------------------------------- /src/monaco/editor/common/core/editOperation.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { Range } from './range.js'; 6 | var EditOperation = /** @class */ (function () { 7 | function EditOperation() { 8 | } 9 | EditOperation.insert = function (position, text) { 10 | return { 11 | range: new Range(position.lineNumber, position.column, position.lineNumber, position.column), 12 | text: text, 13 | forceMoveMarkers: true 14 | }; 15 | }; 16 | EditOperation.delete = function (range) { 17 | return { 18 | range: range, 19 | text: null 20 | }; 21 | }; 22 | EditOperation.replace = function (range, text) { 23 | return { 24 | range: range, 25 | text: text 26 | }; 27 | }; 28 | EditOperation.replaceMove = function (range, text) { 29 | return { 30 | range: range, 31 | text: text, 32 | forceMoveMarkers: true 33 | }; 34 | }; 35 | return EditOperation; 36 | }()); 37 | export { EditOperation }; 38 | -------------------------------------------------------------------------------- /src/monaco/editor/common/core/rgba.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | /** 6 | * A very VM friendly rgba datastructure. 7 | * Please don't touch unless you take a look at the IR. 8 | */ 9 | var RGBA8 = /** @class */ (function () { 10 | function RGBA8(r, g, b, a) { 11 | this.r = RGBA8._clamp(r); 12 | this.g = RGBA8._clamp(g); 13 | this.b = RGBA8._clamp(b); 14 | this.a = RGBA8._clamp(a); 15 | } 16 | RGBA8._clamp = function (c) { 17 | if (c < 0) { 18 | return 0; 19 | } 20 | if (c > 255) { 21 | return 255; 22 | } 23 | return c | 0; 24 | }; 25 | RGBA8.Empty = new RGBA8(0, 0, 0, 0); 26 | return RGBA8; 27 | }()); 28 | export { RGBA8 }; 29 | -------------------------------------------------------------------------------- /src/monaco/editor/common/core/token.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var Token = /** @class */ (function () { 6 | function Token(offset, type, language) { 7 | this.offset = offset | 0; // @perf 8 | this.type = type; 9 | this.language = language; 10 | } 11 | Token.prototype.toString = function () { 12 | return '(' + this.offset + ', ' + this.type + ')'; 13 | }; 14 | return Token; 15 | }()); 16 | export { Token }; 17 | var TokenizationResult = /** @class */ (function () { 18 | function TokenizationResult(tokens, endState) { 19 | this.tokens = tokens; 20 | this.endState = endState; 21 | } 22 | return TokenizationResult; 23 | }()); 24 | export { TokenizationResult }; 25 | var TokenizationResult2 = /** @class */ (function () { 26 | function TokenizationResult2(tokens, endState) { 27 | this.tokens = tokens; 28 | this.endState = endState; 29 | } 30 | return TokenizationResult2; 31 | }()); 32 | export { TokenizationResult2 }; 33 | -------------------------------------------------------------------------------- /src/monaco/editor/common/editorAction.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var InternalEditorAction = /** @class */ (function () { 6 | function InternalEditorAction(id, label, alias, precondition, run, contextKeyService) { 7 | this.id = id; 8 | this.label = label; 9 | this.alias = alias; 10 | this._precondition = precondition; 11 | this._run = run; 12 | this._contextKeyService = contextKeyService; 13 | } 14 | InternalEditorAction.prototype.isSupported = function () { 15 | return this._contextKeyService.contextMatchesRules(this._precondition); 16 | }; 17 | InternalEditorAction.prototype.run = function () { 18 | if (!this.isSupported()) { 19 | return Promise.resolve(undefined); 20 | } 21 | var r = this._run(); 22 | return r ? r : Promise.resolve(undefined); 23 | }; 24 | return InternalEditorAction; 25 | }()); 26 | export { InternalEditorAction }; 27 | -------------------------------------------------------------------------------- /src/monaco/editor/common/editorCommon.js: -------------------------------------------------------------------------------- 1 | /** 2 | * @internal 3 | */ 4 | export function isThemeColor(o) { 5 | return o && typeof o.id === 'string'; 6 | } 7 | /** 8 | * The type of the `IEditor`. 9 | */ 10 | export var EditorType = { 11 | ICodeEditor: 'vs.editor.ICodeEditor', 12 | IDiffEditor: 'vs.editor.IDiffEditor' 13 | }; 14 | /** 15 | * Built-in commands. 16 | * @internal 17 | */ 18 | export var Handler = { 19 | ExecuteCommand: 'executeCommand', 20 | ExecuteCommands: 'executeCommands', 21 | Type: 'type', 22 | ReplacePreviousChar: 'replacePreviousChar', 23 | CompositionStart: 'compositionStart', 24 | CompositionEnd: 'compositionEnd', 25 | Paste: 'paste', 26 | Cut: 'cut', 27 | Undo: 'undo', 28 | Redo: 'redo', 29 | }; 30 | -------------------------------------------------------------------------------- /src/monaco/editor/common/modes/abstractMode.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var FrankensteinMode = /** @class */ (function () { 6 | function FrankensteinMode(languageIdentifier) { 7 | this._languageIdentifier = languageIdentifier; 8 | } 9 | FrankensteinMode.prototype.getId = function () { 10 | return this._languageIdentifier.language; 11 | }; 12 | return FrankensteinMode; 13 | }()); 14 | export { FrankensteinMode }; 15 | -------------------------------------------------------------------------------- /src/monaco/editor/common/modes/nullMode.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { Token, TokenizationResult, TokenizationResult2 } from '../core/token.js'; 6 | import { LanguageIdentifier } from '../modes.js'; 7 | var NullStateImpl = /** @class */ (function () { 8 | function NullStateImpl() { 9 | } 10 | NullStateImpl.prototype.clone = function () { 11 | return this; 12 | }; 13 | NullStateImpl.prototype.equals = function (other) { 14 | return (this === other); 15 | }; 16 | return NullStateImpl; 17 | }()); 18 | export var NULL_STATE = new NullStateImpl(); 19 | export var NULL_MODE_ID = 'vs.editor.nullMode'; 20 | export var NULL_LANGUAGE_IDENTIFIER = new LanguageIdentifier(NULL_MODE_ID, 0 /* Null */); 21 | export function nullTokenize(modeId, buffer, state, deltaOffset) { 22 | return new TokenizationResult([new Token(deltaOffset, '', modeId)], state); 23 | } 24 | export function nullTokenize2(languageId, buffer, state, deltaOffset) { 25 | var tokens = new Uint32Array(2); 26 | tokens[0] = deltaOffset; 27 | tokens[1] = ((languageId << 0 /* LANGUAGEID_OFFSET */) 28 | | (0 /* Other */ << 8 /* TOKEN_TYPE_OFFSET */) 29 | | (0 /* None */ << 11 /* FONT_STYLE_OFFSET */) 30 | | (1 /* DefaultForeground */ << 14 /* FOREGROUND_OFFSET */) 31 | | (2 /* DefaultBackground */ << 23 /* BACKGROUND_OFFSET */)) >>> 0; 32 | return new TokenizationResult2(tokens, state === null ? NULL_STATE : state); 33 | } 34 | -------------------------------------------------------------------------------- /src/monaco/editor/common/services/editorWorkerService.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../../platform/instantiation/common/instantiation.js'; 6 | export var ID_EDITOR_WORKER_SERVICE = 'editorWorkerService'; 7 | export var IEditorWorkerService = createDecorator(ID_EDITOR_WORKER_SERVICE); 8 | -------------------------------------------------------------------------------- /src/monaco/editor/common/services/markersDecorationService.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../../platform/instantiation/common/instantiation.js'; 6 | export var IMarkerDecorationsService = createDecorator('markerDecorationsService'); 7 | -------------------------------------------------------------------------------- /src/monaco/editor/common/services/modeService.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../../platform/instantiation/common/instantiation.js'; 6 | export var IModeService = createDecorator('modeService'); 7 | -------------------------------------------------------------------------------- /src/monaco/editor/common/services/modelService.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../../platform/instantiation/common/instantiation.js'; 6 | export var IModelService = createDecorator('modelService'); 7 | export function shouldSynchronizeModel(model) { 8 | return (!model.isTooLargeForSyncing() && !model.isForSimpleWidget); 9 | } 10 | -------------------------------------------------------------------------------- /src/monaco/editor/common/services/resolverService.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../../platform/instantiation/common/instantiation.js'; 6 | export var ITextModelService = createDecorator('textModelService'); 7 | -------------------------------------------------------------------------------- /src/monaco/editor/common/services/textResourceConfigurationService.js: -------------------------------------------------------------------------------- 1 | import { createDecorator } from '../../../platform/instantiation/common/instantiation.js'; 2 | export var ITextResourceConfigurationService = createDecorator('textResourceConfigurationService'); 3 | export var ITextResourcePropertiesService = createDecorator('textResourcePropertiesService'); 4 | -------------------------------------------------------------------------------- /src/monaco/editor/common/view/viewContext.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var ViewContext = /** @class */ (function () { 6 | function ViewContext(configuration, theme, model, privateViewEventBus) { 7 | this.configuration = configuration; 8 | this.theme = theme; 9 | this.model = model; 10 | this.viewLayout = model.viewLayout; 11 | this.privateViewEventBus = privateViewEventBus; 12 | } 13 | ViewContext.prototype.addEventHandler = function (eventHandler) { 14 | this.privateViewEventBus.addEventHandler(eventHandler); 15 | }; 16 | ViewContext.prototype.removeEventHandler = function (eventHandler) { 17 | this.privateViewEventBus.removeEventHandler(eventHandler); 18 | }; 19 | return ViewContext; 20 | }()); 21 | export { ViewContext }; 22 | -------------------------------------------------------------------------------- /src/monaco/editor/common/viewLayout/viewLinesViewportData.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { Range } from '../core/range.js'; 6 | /** 7 | * Contains all data needed to render at a specific viewport. 8 | */ 9 | var ViewportData = /** @class */ (function () { 10 | function ViewportData(selections, partialData, whitespaceViewportData, model) { 11 | this.selections = selections; 12 | this.startLineNumber = partialData.startLineNumber | 0; 13 | this.endLineNumber = partialData.endLineNumber | 0; 14 | this.relativeVerticalOffset = partialData.relativeVerticalOffset; 15 | this.bigNumbersDelta = partialData.bigNumbersDelta | 0; 16 | this.whitespaceViewportData = whitespaceViewportData; 17 | this._model = model; 18 | this.visibleRange = new Range(partialData.startLineNumber, this._model.getLineMinColumn(partialData.startLineNumber), partialData.endLineNumber, this._model.getLineMaxColumn(partialData.endLineNumber)); 19 | } 20 | ViewportData.prototype.getViewLineRenderingData = function (lineNumber) { 21 | return this._model.getViewLineRenderingData(this.visibleRange, lineNumber); 22 | }; 23 | ViewportData.prototype.getDecorationsInViewport = function () { 24 | return this._model.getDecorationsInViewport(this.visibleRange); 25 | }; 26 | return ViewportData; 27 | }()); 28 | export { ViewportData }; 29 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/bracketMatching/bracketMatching.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .bracket-match { 7 | box-sizing: border-box; 8 | } 9 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/clipboard/clipboard.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-menu .monaco-action-bar.vertical .action-label.hover { 7 | background-color: #EEE; 8 | } -------------------------------------------------------------------------------- /src/monaco/editor/contrib/codeAction/codeActionContributions.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { registerEditorAction, registerEditorCommand, registerEditorContribution } from '../../browser/editorExtensions.js'; 6 | import { CodeActionCommand, OrganizeImportsAction, QuickFixAction, QuickFixController, RefactorAction, SourceAction, AutoFixAction, FixAllAction } from './codeActionCommands.js'; 7 | registerEditorContribution(QuickFixController.ID, QuickFixController); 8 | registerEditorAction(QuickFixAction); 9 | registerEditorAction(RefactorAction); 10 | registerEditorAction(SourceAction); 11 | registerEditorAction(OrganizeImportsAction); 12 | registerEditorAction(AutoFixAction); 13 | registerEditorAction(FixAllAction); 14 | registerEditorCommand(new CodeActionCommand()); 15 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/codeAction/lightBulbWidget.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .lightbulb-glyph, 7 | .monaco-editor .codicon-lightbulb { 8 | display: flex; 9 | align-items: center; 10 | justify-content: center; 11 | height: 16px; 12 | width: 20px; 13 | padding-left: 2px; 14 | } 15 | 16 | .monaco-editor .lightbulb-glyph:hover, 17 | .monaco-editor .codicon-lightbulb:hover { 18 | cursor: pointer; 19 | /* transform: scale(1.3, 1.3); */ 20 | } 21 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/codelens/codelensWidget.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .codelens-decoration { 7 | overflow: hidden; 8 | display: inline-block; 9 | text-overflow: ellipsis; 10 | } 11 | 12 | .monaco-editor .codelens-decoration > span, 13 | .monaco-editor .codelens-decoration > a { 14 | user-select: none; 15 | -webkit-user-select: none; 16 | -ms-user-select: none; 17 | white-space: nowrap; 18 | vertical-align: sub; 19 | } 20 | 21 | .monaco-editor .codelens-decoration > a { 22 | text-decoration: none; 23 | } 24 | 25 | .monaco-editor .codelens-decoration > a:hover { 26 | cursor: pointer; 27 | } 28 | 29 | .monaco-editor .codelens-decoration .codicon { 30 | vertical-align: middle; 31 | color: currentColor !important; 32 | } 33 | 34 | .monaco-editor .codelens-decoration > a:hover .codicon::before { 35 | cursor: pointer; 36 | } 37 | 38 | @keyframes fadein { 39 | 0% { opacity: 0; visibility: visible;} 40 | 100% { opacity: 1; } 41 | } 42 | 43 | .monaco-editor .codelens-decoration.fadein { 44 | animation: fadein 0.1s linear; 45 | } 46 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/dnd/dnd.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor.vs .dnd-target { 7 | border-right: 2px dotted black; 8 | color: white; /* opposite of black */ 9 | } 10 | .monaco-editor.vs-dark .dnd-target { 11 | border-right: 2px dotted #AEAFAD; 12 | color: #51504f; /* opposite of #AEAFAD */ 13 | } 14 | .monaco-editor.hc-black .dnd-target { 15 | border-right: 2px dotted #fff; 16 | color: #000; /* opposite of #fff */ 17 | } 18 | 19 | .monaco-editor.mouse-default .view-lines, 20 | .monaco-editor.vs-dark.mac.mouse-default .view-lines, 21 | .monaco-editor.hc-black.mac.mouse-default .view-lines { 22 | cursor: default; 23 | } 24 | .monaco-editor.mouse-copy .view-lines, 25 | .monaco-editor.vs-dark.mac.mouse-copy .view-lines, 26 | .monaco-editor.hc-black.mac.mouse-copy .view-lines { 27 | cursor: copy; 28 | } -------------------------------------------------------------------------------- /src/monaco/editor/contrib/documentSymbols/media/outlineTree.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-list .monaco-list-row.focused.selected .outline-element .monaco-highlighted-label, 7 | .monaco-list .monaco-list-row.focused.selected .outline-element-decoration { 8 | /* make sure selection color wins when a label is being selected */ 9 | color: inherit !important; 10 | } 11 | 12 | .monaco-list .outline-element { 13 | display: flex; 14 | flex: 1; 15 | flex-flow: row nowrap; 16 | align-items: center; 17 | } 18 | 19 | .monaco-list .outline-element .monaco-highlighted-label { 20 | color: var(--outline-element-color); 21 | } 22 | 23 | .monaco-tree .monaco-tree-row.focused .outline-element .outline-element-detail { 24 | visibility: inherit; 25 | } 26 | 27 | .monaco-list .outline-element .outline-element-decoration { 28 | opacity: 0.75; 29 | font-size: 90%; 30 | font-weight: 600; 31 | padding: 0 12px 0 5px; 32 | margin-left: auto; 33 | text-align: center; 34 | color: var(--outline-element-color); 35 | } 36 | 37 | .monaco-list .outline-element .outline-element-decoration.bubble { 38 | font-family: codicon; 39 | font-size: 14px; 40 | opacity: 0.4; 41 | } 42 | 43 | .monaco-list .outline-element .outline-element-icon { 44 | margin-right: 4px; 45 | } 46 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/documentSymbols/media/symbol-icons.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-icon-label.deprecated { 7 | text-decoration: line-through; 8 | opacity: 0.66; 9 | } 10 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/folding/folding.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .margin-view-overlays .codicon-chevron-right, 7 | .monaco-editor .margin-view-overlays .codicon-chevron-down { 8 | cursor: pointer; 9 | opacity: 0; 10 | transition: opacity 0.5s; 11 | display: flex; 12 | align-items: center; 13 | justify-content: center; 14 | font-size: 140%; 15 | margin-left: 2px; 16 | } 17 | 18 | .monaco-editor .margin-view-overlays:hover .codicon, 19 | .monaco-editor .margin-view-overlays .codicon.codicon-chevron-right, 20 | .monaco-editor .margin-view-overlays .codicon.alwaysShowFoldIcons { 21 | opacity: 1; 22 | } 23 | 24 | .monaco-editor .inline-folded:after { 25 | color: grey; 26 | margin: 0.1em 0.2em 0 0.2em; 27 | content: "⋯"; 28 | display: inline; 29 | line-height: 1em; 30 | cursor: pointer; 31 | } 32 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/gotoSymbol/link/goToDefinitionAtPosition.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .goto-definition-link { 7 | text-decoration: underline; 8 | cursor: pointer; 9 | } -------------------------------------------------------------------------------- /src/monaco/editor/contrib/gotoSymbol/peek/referencesWidget.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | /* -- zone widget */ 7 | .monaco-editor .zone-widget .zone-widget-container.reference-zone-widget { 8 | border-top-width: 1px; 9 | border-bottom-width: 1px; 10 | } 11 | 12 | .monaco-editor .reference-zone-widget .inline { 13 | display: inline-block; 14 | vertical-align: top; 15 | } 16 | 17 | .monaco-editor .reference-zone-widget .messages { 18 | height: 100%; 19 | width: 100%; 20 | text-align: center; 21 | padding: 3em 0; 22 | } 23 | 24 | .monaco-editor .reference-zone-widget .ref-tree { 25 | line-height: 23px; 26 | } 27 | 28 | .monaco-editor .reference-zone-widget .ref-tree .reference { 29 | text-overflow: ellipsis; 30 | overflow: hidden; 31 | } 32 | 33 | .monaco-editor .reference-zone-widget .ref-tree .reference-file { 34 | display: inline-flex; 35 | width: 100%; 36 | height: 100%; 37 | } 38 | 39 | .monaco-editor .reference-zone-widget .ref-tree .monaco-list:focus .selected .reference-file { 40 | color: inherit !important; 41 | } 42 | 43 | .monaco-editor .reference-zone-widget .ref-tree .reference-file .count { 44 | margin-right: 12px; 45 | margin-left: auto; 46 | } 47 | 48 | /* High Contrast Theming */ 49 | 50 | .monaco-editor.hc-black .reference-zone-widget .ref-tree .reference-file { 51 | font-weight: bold; 52 | } 53 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/hover/getHover.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { coalesce } from '../../../base/common/arrays.js'; 6 | import { CancellationToken } from '../../../base/common/cancellation.js'; 7 | import { onUnexpectedExternalError } from '../../../base/common/errors.js'; 8 | import { registerModelAndPositionCommand } from '../../browser/editorExtensions.js'; 9 | import { HoverProviderRegistry } from '../../common/modes.js'; 10 | export function getHover(model, position, token) { 11 | var supports = HoverProviderRegistry.ordered(model); 12 | var promises = supports.map(function (support) { 13 | return Promise.resolve(support.provideHover(model, position, token)).then(function (hover) { 14 | return hover && isValid(hover) ? hover : undefined; 15 | }, function (err) { 16 | onUnexpectedExternalError(err); 17 | return undefined; 18 | }); 19 | }); 20 | return Promise.all(promises).then(coalesce); 21 | } 22 | registerModelAndPositionCommand('_executeHoverProvider', function (model, position) { return getHover(model, position, CancellationToken.None); }); 23 | function isValid(result) { 24 | var hasRange = (typeof result.range !== 'undefined'); 25 | var hasHtmlContent = typeof result.contents !== 'undefined' && result.contents && result.contents.length > 0; 26 | return hasRange && hasHtmlContent; 27 | } 28 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/inPlaceReplace/inPlaceReplaceCommand.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { Selection } from '../../common/core/selection.js'; 6 | var InPlaceReplaceCommand = /** @class */ (function () { 7 | function InPlaceReplaceCommand(editRange, originalSelection, text) { 8 | this._editRange = editRange; 9 | this._originalSelection = originalSelection; 10 | this._text = text; 11 | } 12 | InPlaceReplaceCommand.prototype.getEditOperations = function (model, builder) { 13 | builder.addTrackedEditOperation(this._editRange, this._text); 14 | }; 15 | InPlaceReplaceCommand.prototype.computeCursorState = function (model, helper) { 16 | var inverseEditOperations = helper.getInverseEditOperations(); 17 | var srcRange = inverseEditOperations[0].range; 18 | if (!this._originalSelection.isEmpty()) { 19 | // Preserve selection and extends to typed text 20 | return new Selection(srcRange.endLineNumber, srcRange.endColumn - this._text.length, srcRange.endLineNumber, srcRange.endColumn); 21 | } 22 | return new Selection(srcRange.endLineNumber, Math.min(this._originalSelection.positionColumn, srcRange.endColumn), srcRange.endLineNumber, Math.min(this._originalSelection.positionColumn, srcRange.endColumn)); 23 | }; 24 | return InPlaceReplaceCommand; 25 | }()); 26 | export { InPlaceReplaceCommand }; 27 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/indentation/indentUtils.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export function getSpaceCnt(str, tabSize) { 6 | var spacesCnt = 0; 7 | for (var i = 0; i < str.length; i++) { 8 | if (str.charAt(i) === '\t') { 9 | spacesCnt += tabSize; 10 | } 11 | else { 12 | spacesCnt++; 13 | } 14 | } 15 | return spacesCnt; 16 | } 17 | export function generateIndent(spacesCnt, tabSize, insertSpaces) { 18 | spacesCnt = spacesCnt < 0 ? 0 : spacesCnt; 19 | var result = ''; 20 | if (!insertSpaces) { 21 | var tabsCnt = Math.floor(spacesCnt / tabSize); 22 | spacesCnt = spacesCnt % tabSize; 23 | for (var i = 0; i < tabsCnt; i++) { 24 | result += '\t'; 25 | } 26 | } 27 | for (var i = 0; i < spacesCnt; i++) { 28 | result += ' '; 29 | } 30 | return result; 31 | } 32 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/links/links.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | .monaco-editor .detected-link, 6 | .monaco-editor .detected-link-active { 7 | text-decoration: underline; 8 | text-underline-position: under; 9 | } 10 | 11 | .monaco-editor .detected-link-active { 12 | cursor: pointer; 13 | } 14 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/message/messageController.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .monaco-editor-overlaymessage { 7 | padding-bottom: 8px; 8 | } 9 | 10 | @keyframes fadeIn { 11 | from { opacity: 0; } 12 | to { opacity: 1; } 13 | } 14 | .monaco-editor .monaco-editor-overlaymessage.fadeIn { 15 | animation: fadeIn 150ms ease-out; 16 | } 17 | 18 | @keyframes fadeOut { 19 | from { opacity: 1; } 20 | to { opacity: 0; } 21 | } 22 | .monaco-editor .monaco-editor-overlaymessage.fadeOut { 23 | animation: fadeOut 100ms ease-out; 24 | } 25 | 26 | .monaco-editor .monaco-editor-overlaymessage .message { 27 | padding: 1px 4px; 28 | } 29 | 30 | .monaco-editor .monaco-editor-overlaymessage .anchor { 31 | width: 0 !important; 32 | height: 0 !important; 33 | border-color: transparent; 34 | border-style: solid; 35 | z-index: 1000; 36 | border-width: 8px; 37 | position: absolute; 38 | } 39 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/rename/renameInputField.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .rename-box { 7 | z-index: 100; 8 | color: inherit; 9 | } 10 | 11 | .monaco-editor .rename-box.preview { 12 | padding: 3px 3px 0 3px; 13 | } 14 | 15 | .monaco-editor .rename-box .rename-input { 16 | padding: 3px; 17 | width: calc(100% - 6px); 18 | } 19 | 20 | .monaco-editor .rename-box .rename-label { 21 | display: none; 22 | opacity: .8; 23 | } 24 | 25 | .monaco-editor .rename-box.preview .rename-label { 26 | display: inherit; 27 | } 28 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/snippet/snippetSession.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .snippet-placeholder { 7 | min-width: 2px; 8 | outline-style: solid; 9 | outline-width: 1px; 10 | } 11 | 12 | .monaco-editor .finish-snippet-placeholder { 13 | outline-style: solid; 14 | outline-width: 1px; 15 | } 16 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/suggest/media/suggestStatusBar.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .suggest-widget.with-status-bar .suggest-status-bar { 7 | visibility: visible; 8 | } 9 | .monaco-editor .suggest-widget.with-status-bar > .tree { 10 | margin-bottom: 18px; 11 | } 12 | 13 | .monaco-editor .suggest-widget.with-status-bar .suggest-status-bar span { 14 | min-height: 18px; 15 | } 16 | 17 | .monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row > .contents > .main > .right > .readMore, 18 | .monaco-editor .suggest-widget.with-status-bar .monaco-list .monaco-list-row.focused > .contents > .main > .right:not(.always-show-details) > .readMore { 19 | display: none; 20 | } 21 | 22 | .monaco-editor .suggest-widget.with-status-bar:not(.docs-side) .monaco-list .monaco-list-row:hover > .contents > .main > .right.can-expand-details > .details-label { 23 | width: 100%; 24 | } 25 | -------------------------------------------------------------------------------- /src/monaco/editor/contrib/zoneWidget/zoneWidget.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | .monaco-editor .zone-widget { 6 | position: absolute; 7 | z-index: 10; 8 | } 9 | 10 | 11 | .monaco-editor .zone-widget .zone-widget-container { 12 | border-top-style: solid; 13 | border-bottom-style: solid; 14 | border-top-width: 0; 15 | border-bottom-width: 0; 16 | position: relative; 17 | } 18 | -------------------------------------------------------------------------------- /src/monaco/editor/edcore.main.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import './editor.all.js'; 6 | import './standalone/browser/accessibilityHelp/accessibilityHelp.js'; 7 | import './standalone/browser/iPadShowKeyboard/iPadShowKeyboard.js'; 8 | import './standalone/browser/inspectTokens/inspectTokens.js'; 9 | import './standalone/browser/quickOpen/gotoLine.js'; 10 | import './standalone/browser/quickOpen/quickCommand.js'; 11 | import './standalone/browser/quickOpen/quickOutline.js'; 12 | import './standalone/browser/referenceSearch/standaloneReferenceSearch.js'; 13 | import './standalone/browser/toggleHighContrast/toggleHighContrast.js'; 14 | export * from './editor.api.js'; 15 | -------------------------------------------------------------------------------- /src/monaco/editor/editor.main.js: -------------------------------------------------------------------------------- 1 | import '../language/typescript/monaco.contribution.js'; 2 | import '../language/css/monaco.contribution.js'; 3 | import '../language/json/monaco.contribution.js'; 4 | import '../language/html/monaco.contribution.js'; 5 | import '../basic-languages/monaco.contribution.js'; 6 | 7 | export * from './edcore.main.js'; 8 | -------------------------------------------------------------------------------- /src/monaco/editor/editor.worker.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { SimpleWorkerServer } from '../base/common/worker/simpleWorker.js'; 6 | import { EditorSimpleWorker } from './common/services/editorSimpleWorker.js'; 7 | var initialized = false; 8 | export function initialize(foreignModule) { 9 | if (initialized) { 10 | return; 11 | } 12 | initialized = true; 13 | var simpleWorker = new SimpleWorkerServer(function (msg) { 14 | self.postMessage(msg); 15 | }, function (host) { return new EditorSimpleWorker(host, foreignModule); }); 16 | self.onmessage = function (e) { 17 | simpleWorker.onmessage(e.data); 18 | }; 19 | } 20 | self.onmessage = function (e) { 21 | // Ignore first message in this case and initialize if not yet initialized 22 | if (!initialized) { 23 | initialize(null); 24 | } 25 | }; 26 | -------------------------------------------------------------------------------- /src/monaco/editor/standalone/browser/accessibilityHelp/accessibilityHelp.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .accessibilityHelpWidget { 7 | padding: 10px; 8 | vertical-align: middle; 9 | overflow: scroll; 10 | } -------------------------------------------------------------------------------- /src/monaco/editor/standalone/browser/inspectTokens/inspectTokens.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-editor .tokens-inspect-widget { 7 | z-index: 50; 8 | user-select: text; 9 | -webkit-user-select: text; 10 | -ms-user-select: text; 11 | padding: 10px; 12 | } 13 | 14 | .tokens-inspect-separator { 15 | height: 1px; 16 | border: 0; 17 | } 18 | 19 | .monaco-editor .tokens-inspect-widget .tm-token { 20 | font-family: monospace; 21 | } 22 | 23 | .monaco-editor .tokens-inspect-widget .tm-token-length { 24 | font-weight: normal; 25 | font-size: 60%; 26 | float: right; 27 | } 28 | 29 | .monaco-editor .tokens-inspect-widget .tm-metadata-table { 30 | width: 100%; 31 | } 32 | 33 | .monaco-editor .tokens-inspect-widget .tm-metadata-value { 34 | font-family: monospace; 35 | text-align: right; 36 | } 37 | 38 | .monaco-editor .tokens-inspect-widget .tm-token-type { 39 | font-family: monospace; 40 | } 41 | -------------------------------------------------------------------------------- /src/monaco/editor/standalone/browser/quickOpen/editorQuickOpen.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-quick-open-widget .monaco-tree .monaco-tree-row .monaco-highlighted-label .highlight, 7 | .monaco-quick-open-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { 8 | color: #0066BF; 9 | } 10 | 11 | .vs-dark .monaco-quick-open-widget .monaco-tree .monaco-tree-row .monaco-highlighted-label .highlight, 12 | .vs-dark .monaco-quick-open-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { 13 | color: #0097fb; 14 | } 15 | 16 | .hc-black .monaco-quick-open-widget .monaco-tree .monaco-tree-row .monaco-highlighted-label .highlight, 17 | .hc-black .monaco-quick-open-widget .monaco-list .monaco-list-row .monaco-highlighted-label .highlight { 18 | color: #F38518; 19 | } -------------------------------------------------------------------------------- /src/monaco/editor/standalone/browser/quickOpen/gotoLine.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-quick-open-widget { 7 | font-size: 13px; 8 | } -------------------------------------------------------------------------------- /src/monaco/editor/standalone/browser/quickOpen/quickOutline.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .monaco-quick-open-widget { 7 | font-size: 13px; 8 | } 9 | -------------------------------------------------------------------------------- /src/monaco/editor/standalone/common/monarch/monarchTypes.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | -------------------------------------------------------------------------------- /src/monaco/editor/standalone/common/standaloneThemeService.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../../platform/instantiation/common/instantiation.js'; 6 | export var IStandaloneThemeService = createDecorator('themeService'); 7 | -------------------------------------------------------------------------------- /src/monaco/language/css/_deps/vscode-css-languageservice/cssLanguageTypes.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import { MarkupKind } from './../vscode-languageserver-types/main.js'; 7 | export { TextDocument } from './_deps/vscode-languageserver-textdocument/lib/esm/main.js'; 8 | export * from './../vscode-languageserver-types/main.js'; 9 | export var ClientCapabilities; 10 | (function (ClientCapabilities) { 11 | ClientCapabilities.LATEST = { 12 | textDocument: { 13 | completion: { 14 | completionItem: { 15 | documentationFormat: [MarkupKind.Markdown, MarkupKind.PlainText] 16 | } 17 | }, 18 | hover: { 19 | contentFormat: [MarkupKind.Markdown, MarkupKind.PlainText] 20 | } 21 | } 22 | }; 23 | })(ClientCapabilities || (ClientCapabilities = {})); 24 | export var FileType; 25 | (function (FileType) { 26 | /** 27 | * The file type is unknown. 28 | */ 29 | FileType[FileType["Unknown"] = 0] = "Unknown"; 30 | /** 31 | * A regular file. 32 | */ 33 | FileType[FileType["File"] = 1] = "File"; 34 | /** 35 | * A directory. 36 | */ 37 | FileType[FileType["Directory"] = 2] = "Directory"; 38 | /** 39 | * A symbolic link to a file. 40 | */ 41 | FileType[FileType["SymbolicLink"] = 64] = "SymbolicLink"; 42 | })(FileType || (FileType = {})); 43 | -------------------------------------------------------------------------------- /src/monaco/language/css/_deps/vscode-css-languageservice/languageFacts/facts.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import * as webCustomData from '../data/webCustomData.js'; 7 | import { CSSDataManager } from './dataManager.js'; 8 | import { CSSDataProvider } from './dataProvider.js'; 9 | export * from './entry.js'; 10 | export * from './colors.js'; 11 | export * from './builtinData.js'; 12 | export * from './dataProvider.js'; 13 | export * from './dataManager.js'; 14 | export var cssDataManager = new CSSDataManager([ 15 | new CSSDataProvider(webCustomData.cssData) 16 | ]); 17 | -------------------------------------------------------------------------------- /src/monaco/language/css/_deps/vscode-css-languageservice/parser/scssErrors.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import * as nls from './../../../fillers/vscode-nls.js'; 7 | var localize = nls.loadMessageBundle(); 8 | var SCSSIssueType = /** @class */ (function () { 9 | function SCSSIssueType(id, message) { 10 | this.id = id; 11 | this.message = message; 12 | } 13 | return SCSSIssueType; 14 | }()); 15 | export { SCSSIssueType }; 16 | export var SCSSParseError = { 17 | FromExpected: new SCSSIssueType('scss-fromexpected', localize('expected.from', "'from' expected")), 18 | ThroughOrToExpected: new SCSSIssueType('scss-throughexpected', localize('expected.through', "'through' or 'to' expected")), 19 | InExpected: new SCSSIssueType('scss-fromexpected', localize('expected.in', "'in' expected")), 20 | }; 21 | -------------------------------------------------------------------------------- /src/monaco/language/css/_deps/vscode-css-languageservice/utils/arrays.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | /** 7 | * Takes a sorted array and a function p. The array is sorted in such a way that all elements where p(x) is false 8 | * are located before all elements where p(x) is true. 9 | * @returns the least x for which p(x) is true or array.length if no element fullfills the given function. 10 | */ 11 | export function findFirst(array, p) { 12 | var low = 0, high = array.length; 13 | if (high === 0) { 14 | return 0; // no children 15 | } 16 | while (low < high) { 17 | var mid = Math.floor((low + high) / 2); 18 | if (p(array[mid])) { 19 | high = mid; 20 | } 21 | else { 22 | low = mid + 1; 23 | } 24 | } 25 | return low; 26 | } 27 | export function includes(array, item) { 28 | return array.indexOf(item) !== -1; 29 | } 30 | export function union() { 31 | var arrays = []; 32 | for (var _i = 0; _i < arguments.length; _i++) { 33 | arrays[_i] = arguments[_i]; 34 | } 35 | var result = []; 36 | for (var _a = 0, arrays_1 = arrays; _a < arrays_1.length; _a++) { 37 | var array = arrays_1[_a]; 38 | for (var _b = 0, array_1 = array; _b < array_1.length; _b++) { 39 | var item = array_1[_b]; 40 | if (!includes(result, item)) { 41 | result.push(item); 42 | } 43 | } 44 | } 45 | return result; 46 | } 47 | -------------------------------------------------------------------------------- /src/monaco/language/css/_deps/vscode-css-languageservice/utils/objects.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | export function values(obj) { 7 | return Object.keys(obj).map(function (key) { return obj[key]; }); 8 | } 9 | export function isDefined(obj) { 10 | return typeof obj !== 'undefined'; 11 | } 12 | -------------------------------------------------------------------------------- /src/monaco/language/css/css.worker.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import * as worker from '../../editor/editor.worker.js'; 7 | import { CSSWorker } from './cssWorker.js'; 8 | self.onmessage = function () { 9 | // ignore the first message 10 | worker.initialize(function (ctx, createData) { 11 | return new CSSWorker(ctx, createData); 12 | }); 13 | }; 14 | -------------------------------------------------------------------------------- /src/monaco/language/css/fillers/vscode-nls.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | function format(message, args) { 6 | var result; 7 | if (args.length === 0) { 8 | result = message; 9 | } 10 | else { 11 | result = message.replace(/\{(\d+)\}/g, function (match, rest) { 12 | var index = rest[0]; 13 | return typeof args[index] !== 'undefined' ? args[index] : match; 14 | }); 15 | } 16 | return result; 17 | } 18 | function localize(key, message) { 19 | var args = []; 20 | for (var _i = 2; _i < arguments.length; _i++) { 21 | args[_i - 2] = arguments[_i]; 22 | } 23 | return format(message, args); 24 | } 25 | export function loadMessageBundle(file) { 26 | return localize; 27 | } 28 | export function config(opt) { 29 | return loadMessageBundle; 30 | } 31 | -------------------------------------------------------------------------------- /src/monaco/language/html/_deps/vscode-html-languageservice/beautify/beautify.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | /* 6 | * Mock for the JS formatter. Ignore formatting of JS content in HTML. 7 | */ 8 | export function js_beautify(js_source_text, options) { 9 | // no formatting 10 | return js_source_text; 11 | } 12 | -------------------------------------------------------------------------------- /src/monaco/language/html/_deps/vscode-html-languageservice/languageFacts/builtinDataProviders.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { HTMLDataProvider } from './dataProvider.js'; 6 | import { htmlData } from './data/webCustomData.js'; 7 | export var builtinDataProviders = [ 8 | new HTMLDataProvider('html5', htmlData) 9 | ]; 10 | var customDataProviders = []; 11 | export function getAllDataProviders() { 12 | return builtinDataProviders.concat(customDataProviders); 13 | } 14 | export function handleCustomDataProviders(providers) { 15 | providers.forEach(function (p) { 16 | customDataProviders.push(p); 17 | }); 18 | } 19 | -------------------------------------------------------------------------------- /src/monaco/language/html/_deps/vscode-html-languageservice/languageFacts/fact.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import * as arrays from '../utils/arrays.js'; 6 | // As defined in https://www.w3.org/TR/html5/syntax.html#void-elements 7 | export var VOID_ELEMENTS = ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'menuitem', 'meta', 'param', 'source', 'track', 'wbr']; 8 | export function isVoidElement(e) { 9 | return !!e && arrays.binarySearch(VOID_ELEMENTS, e.toLowerCase(), function (s1, s2) { return s1.localeCompare(s2); }) >= 0; 10 | } 11 | -------------------------------------------------------------------------------- /src/monaco/language/html/_deps/vscode-html-languageservice/services/htmlMatchingTagPosition.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export function findMatchingTagPosition(document, position, htmlDocument) { 6 | var offset = document.offsetAt(position); 7 | var node = htmlDocument.findNodeAt(offset); 8 | if (!node.tag) { 9 | return null; 10 | } 11 | if (!node.endTagStart) { 12 | return null; 13 | } 14 | // Within open tag, compute close tag 15 | if (node.start + '<'.length <= offset && offset <= node.start + '<'.length + node.tag.length) { 16 | var mirrorOffset = (offset - '<'.length - node.start) + node.endTagStart + ' 0) { 35 | high = mid - 1; 36 | } 37 | else { 38 | return mid; 39 | } 40 | } 41 | return -(low + 1); 42 | } 43 | -------------------------------------------------------------------------------- /src/monaco/language/html/_deps/vscode-html-languageservice/utils/markup.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export function normalizeMarkupContent(input) { 6 | if (!input) { 7 | return undefined; 8 | } 9 | if (typeof input === 'string') { 10 | return { 11 | kind: 'markdown', 12 | value: input 13 | }; 14 | } 15 | return { 16 | kind: 'markdown', 17 | value: input.value 18 | }; 19 | } 20 | -------------------------------------------------------------------------------- /src/monaco/language/html/_deps/vscode-html-languageservice/utils/object.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | export function isDefined(obj) { 7 | return typeof obj !== 'undefined'; 8 | } 9 | -------------------------------------------------------------------------------- /src/monaco/language/html/fillers/polyfills.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export function polyfill() { 6 | // Object.assign, for IE11 7 | if (typeof Object['assign'] != 'function') { 8 | Object.defineProperty(Object, "assign", { 9 | value: function assign(destination, sources) { 10 | 'use strict'; 11 | if (destination !== null) { 12 | for (var i = 1; i < arguments.length; i++) { 13 | var source = arguments[i]; 14 | if (source) { 15 | for (var key in source) { 16 | if (Object.prototype.hasOwnProperty.call(source, key)) { 17 | destination[key] = source[key]; 18 | } 19 | } 20 | } 21 | } 22 | ; 23 | } 24 | return destination; 25 | }, 26 | writable: true, 27 | configurable: true 28 | }); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /src/monaco/language/html/fillers/vscode-nls.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | function format(message, args) { 6 | var result; 7 | if (args.length === 0) { 8 | result = message; 9 | } 10 | else { 11 | result = message.replace(/\{(\d+)\}/g, function (match, rest) { 12 | var index = rest[0]; 13 | return typeof args[index] !== 'undefined' ? args[index] : match; 14 | }); 15 | } 16 | return result; 17 | } 18 | function localize(key, message) { 19 | var args = []; 20 | for (var _i = 2; _i < arguments.length; _i++) { 21 | args[_i - 2] = arguments[_i]; 22 | } 23 | return format(message, args); 24 | } 25 | export function loadMessageBundle(file) { 26 | return localize; 27 | } 28 | export function config(opt) { 29 | return loadMessageBundle; 30 | } 31 | -------------------------------------------------------------------------------- /src/monaco/language/html/html.worker.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import * as worker from '../../editor/editor.worker.js'; 7 | import { HTMLWorker } from './htmlWorker.js'; 8 | self.onmessage = function () { 9 | // ignore the first message 10 | worker.initialize(function (ctx, createData) { 11 | return new HTMLWorker(ctx, createData); 12 | }); 13 | }; 14 | -------------------------------------------------------------------------------- /src/monaco/language/json/_deps/vscode-json-languageservice/utils/json.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export function stringifyObject(obj, indent, stringifyLiteral) { 6 | if (obj !== null && typeof obj === 'object') { 7 | var newIndent = indent + '\t'; 8 | if (Array.isArray(obj)) { 9 | if (obj.length === 0) { 10 | return '[]'; 11 | } 12 | var result = '[\n'; 13 | for (var i = 0; i < obj.length; i++) { 14 | result += newIndent + stringifyObject(obj[i], newIndent, stringifyLiteral); 15 | if (i < obj.length - 1) { 16 | result += ','; 17 | } 18 | result += '\n'; 19 | } 20 | result += indent + ']'; 21 | return result; 22 | } 23 | else { 24 | var keys = Object.keys(obj); 25 | if (keys.length === 0) { 26 | return '{}'; 27 | } 28 | var result = '{\n'; 29 | for (var i = 0; i < keys.length; i++) { 30 | var key = keys[i]; 31 | result += newIndent + JSON.stringify(key) + ': ' + stringifyObject(obj[key], newIndent, stringifyLiteral); 32 | if (i < keys.length - 1) { 33 | result += ','; 34 | } 35 | result += '\n'; 36 | } 37 | result += indent + '}'; 38 | return result; 39 | } 40 | } 41 | return stringifyLiteral(obj); 42 | } 43 | -------------------------------------------------------------------------------- /src/monaco/language/json/_deps/vscode-json-languageservice/utils/strings.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export function startsWith(haystack, needle) { 6 | if (haystack.length < needle.length) { 7 | return false; 8 | } 9 | for (var i = 0; i < needle.length; i++) { 10 | if (haystack[i] !== needle[i]) { 11 | return false; 12 | } 13 | } 14 | return true; 15 | } 16 | /** 17 | * Determines if haystack ends with needle. 18 | */ 19 | export function endsWith(haystack, needle) { 20 | var diff = haystack.length - needle.length; 21 | if (diff > 0) { 22 | return haystack.lastIndexOf(needle) === diff; 23 | } 24 | else if (diff === 0) { 25 | return haystack === needle; 26 | } 27 | else { 28 | return false; 29 | } 30 | } 31 | export function convertSimple2RegExpPattern(pattern) { 32 | return pattern.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g, '\\$&').replace(/[\*]/g, '.*'); 33 | } 34 | export function repeat(value, count) { 35 | var s = ''; 36 | while (count > 0) { 37 | if ((count & 1) === 1) { 38 | s += value; 39 | } 40 | value += value; 41 | count = count >>> 1; 42 | } 43 | return s; 44 | } 45 | -------------------------------------------------------------------------------- /src/monaco/language/json/fillers/vscode-nls.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | function format(message, args) { 6 | var result; 7 | if (args.length === 0) { 8 | result = message; 9 | } 10 | else { 11 | result = message.replace(/\{(\d+)\}/g, function (match, rest) { 12 | var index = rest[0]; 13 | return typeof args[index] !== 'undefined' ? args[index] : match; 14 | }); 15 | } 16 | return result; 17 | } 18 | function localize(key, message) { 19 | var args = []; 20 | for (var _i = 2; _i < arguments.length; _i++) { 21 | args[_i - 2] = arguments[_i]; 22 | } 23 | return format(message, args); 24 | } 25 | export function loadMessageBundle(file) { 26 | return localize; 27 | } 28 | export function config(opt) { 29 | return loadMessageBundle; 30 | } 31 | -------------------------------------------------------------------------------- /src/monaco/language/json/json.worker.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import * as worker from '../../editor/editor.worker.js'; 7 | import { JSONWorker } from './jsonWorker.js'; 8 | self.onmessage = function () { 9 | // ignore the first message 10 | worker.initialize(function (ctx, createData) { 11 | return new JSONWorker(ctx, createData); 12 | }); 13 | }; 14 | -------------------------------------------------------------------------------- /src/monaco/language/typescript/lib/typescriptServicesMetadata.js: -------------------------------------------------------------------------------- 1 | export var typescriptVersion = "3.7.5"; 2 | -------------------------------------------------------------------------------- /src/monaco/language/typescript/ts.worker.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 'use strict'; 6 | import * as worker from '../../editor/editor.worker.js'; 7 | import { TypeScriptWorker } from './tsWorker.js'; 8 | self.onmessage = function () { 9 | // ignore the first message 10 | worker.initialize(function (ctx, createData) { 11 | return new TypeScriptWorker(ctx, createData); 12 | }); 13 | }; 14 | -------------------------------------------------------------------------------- /src/monaco/nls.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | function _format(message, args) { 6 | var result; 7 | if (args.length === 0) { 8 | result = message; 9 | } 10 | else { 11 | result = message.replace(/\{(\d+)\}/g, function (match, rest) { 12 | var index = rest[0]; 13 | return typeof args[index] !== 'undefined' ? args[index] : match; 14 | }); 15 | } 16 | return result; 17 | } 18 | export function localize(data, message) { 19 | var args = []; 20 | for (var _i = 2; _i < arguments.length; _i++) { 21 | args[_i - 2] = arguments[_i]; 22 | } 23 | return _format(message, args); 24 | } 25 | -------------------------------------------------------------------------------- /src/monaco/platform/accessibility/common/accessibility.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 6 | import { RawContextKey } from '../../contextkey/common/contextkey.js'; 7 | export var IAccessibilityService = createDecorator('accessibilityService'); 8 | export var CONTEXT_ACCESSIBILITY_MODE_ENABLED = new RawContextKey('accessibilityModeEnabled', false); 9 | -------------------------------------------------------------------------------- /src/monaco/platform/clipboard/common/clipboardService.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 6 | export var IClipboardService = createDecorator('clipboardService'); 7 | -------------------------------------------------------------------------------- /src/monaco/platform/contextkey/common/contextkeys.js: -------------------------------------------------------------------------------- 1 | export var InputFocusedContextKey = 'inputFocus'; 2 | -------------------------------------------------------------------------------- /src/monaco/platform/contextview/browser/contextMenuHandler.css: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | 6 | .context-view .monaco-menu { 7 | min-width: 130px; 8 | } 9 | 10 | .context-view-block { 11 | position: fixed; 12 | left:0; 13 | top:0; 14 | z-index: -1; 15 | width: 100%; 16 | height: 100%; 17 | } -------------------------------------------------------------------------------- /src/monaco/platform/contextview/browser/contextView.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 6 | export var IContextViewService = createDecorator('contextViewService'); 7 | export var IContextMenuService = createDecorator('contextMenuService'); 8 | -------------------------------------------------------------------------------- /src/monaco/platform/dialogs/common/dialogs.js: -------------------------------------------------------------------------------- 1 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 2 | export var IDialogService = createDecorator('dialogService'); 3 | -------------------------------------------------------------------------------- /src/monaco/platform/editor/common/editor.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | export var EditorOpenContext; 6 | (function (EditorOpenContext) { 7 | /** 8 | * Default: the editor is opening via a programmatic call 9 | * to the editor service API. 10 | */ 11 | EditorOpenContext[EditorOpenContext["API"] = 0] = "API"; 12 | /** 13 | * Indicates that a user action triggered the opening, e.g. 14 | * via mouse or keyboard use. 15 | */ 16 | EditorOpenContext[EditorOpenContext["USER"] = 1] = "USER"; 17 | })(EditorOpenContext || (EditorOpenContext = {})); 18 | -------------------------------------------------------------------------------- /src/monaco/platform/environment/common/environment.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 6 | export var IEnvironmentService = createDecorator('environmentService'); 7 | -------------------------------------------------------------------------------- /src/monaco/platform/extensions/common/extensions.js: -------------------------------------------------------------------------------- 1 | /** 2 | * **!Do not construct directly!** 3 | * 4 | * **!Only static methods because it gets serialized!** 5 | * 6 | * This represents the "canonical" version for an extension identifier. Extension ids 7 | * have to be case-insensitive (due to the marketplace), but we must ensure case 8 | * preservation because the extension API is already public at this time. 9 | * 10 | * For example, given an extension with the publisher `"Hello"` and the name `"World"`, 11 | * its canonical extension identifier is `"Hello.World"`. This extension could be 12 | * referenced in some other extension's dependencies using the string `"hello.world"`. 13 | * 14 | * To make matters more complicated, an extension can optionally have an UUID. When two 15 | * extensions have the same UUID, they are considered equal even if their identifier is different. 16 | */ 17 | var ExtensionIdentifier = /** @class */ (function () { 18 | function ExtensionIdentifier(value) { 19 | this.value = value; 20 | this._lower = value.toLowerCase(); 21 | } 22 | /** 23 | * Gives the value by which to index (for equality). 24 | */ 25 | ExtensionIdentifier.toKey = function (id) { 26 | if (typeof id === 'string') { 27 | return id.toLowerCase(); 28 | } 29 | return id._lower; 30 | }; 31 | return ExtensionIdentifier; 32 | }()); 33 | export { ExtensionIdentifier }; 34 | -------------------------------------------------------------------------------- /src/monaco/platform/files/common/files.js: -------------------------------------------------------------------------------- 1 | export var FileKind; 2 | (function (FileKind) { 3 | FileKind[FileKind["FILE"] = 0] = "FILE"; 4 | FileKind[FileKind["FOLDER"] = 1] = "FOLDER"; 5 | FileKind[FileKind["ROOT_FOLDER"] = 2] = "ROOT_FOLDER"; 6 | })(FileKind || (FileKind = {})); 7 | -------------------------------------------------------------------------------- /src/monaco/platform/instantiation/common/descriptors.js: -------------------------------------------------------------------------------- 1 | var SyncDescriptor = /** @class */ (function () { 2 | function SyncDescriptor(ctor, staticArguments, supportsDelayedInstantiation) { 3 | if (staticArguments === void 0) { staticArguments = []; } 4 | if (supportsDelayedInstantiation === void 0) { supportsDelayedInstantiation = false; } 5 | this.ctor = ctor; 6 | this.staticArguments = staticArguments; 7 | this.supportsDelayedInstantiation = supportsDelayedInstantiation; 8 | } 9 | return SyncDescriptor; 10 | }()); 11 | export { SyncDescriptor }; 12 | -------------------------------------------------------------------------------- /src/monaco/platform/instantiation/common/extensions.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { SyncDescriptor } from './descriptors.js'; 6 | var _registry = []; 7 | export function registerSingleton(id, ctor, supportsDelayedInstantiation) { 8 | _registry.push([id, new SyncDescriptor(ctor, [], supportsDelayedInstantiation)]); 9 | } 10 | export function getSingletonServiceDescriptors() { 11 | return _registry; 12 | } 13 | -------------------------------------------------------------------------------- /src/monaco/platform/instantiation/common/serviceCollection.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var ServiceCollection = /** @class */ (function () { 6 | function ServiceCollection() { 7 | var entries = []; 8 | for (var _i = 0; _i < arguments.length; _i++) { 9 | entries[_i] = arguments[_i]; 10 | } 11 | this._entries = new Map(); 12 | for (var _a = 0, entries_1 = entries; _a < entries_1.length; _a++) { 13 | var _b = entries_1[_a], id = _b[0], service = _b[1]; 14 | this.set(id, service); 15 | } 16 | } 17 | ServiceCollection.prototype.set = function (id, instanceOrDescriptor) { 18 | var result = this._entries.get(id); 19 | this._entries.set(id, instanceOrDescriptor); 20 | return result; 21 | }; 22 | ServiceCollection.prototype.has = function (id) { 23 | return this._entries.has(id); 24 | }; 25 | ServiceCollection.prototype.get = function (id) { 26 | return this._entries.get(id); 27 | }; 28 | return ServiceCollection; 29 | }()); 30 | export { ServiceCollection }; 31 | -------------------------------------------------------------------------------- /src/monaco/platform/jsonschemas/common/jsonContributionRegistry.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import * as platform from '../../registry/common/platform.js'; 6 | import { Emitter } from '../../../base/common/event.js'; 7 | export var Extensions = { 8 | JSONContribution: 'base.contributions.json' 9 | }; 10 | function normalizeId(id) { 11 | if (id.length > 0 && id.charAt(id.length - 1) === '#') { 12 | return id.substring(0, id.length - 1); 13 | } 14 | return id; 15 | } 16 | var JSONContributionRegistry = /** @class */ (function () { 17 | function JSONContributionRegistry() { 18 | this._onDidChangeSchema = new Emitter(); 19 | this.schemasById = {}; 20 | } 21 | JSONContributionRegistry.prototype.registerSchema = function (uri, unresolvedSchemaContent) { 22 | this.schemasById[normalizeId(uri)] = unresolvedSchemaContent; 23 | this._onDidChangeSchema.fire(uri); 24 | }; 25 | JSONContributionRegistry.prototype.notifySchemaChanged = function (uri) { 26 | this._onDidChangeSchema.fire(uri); 27 | }; 28 | return JSONContributionRegistry; 29 | }()); 30 | var jsonContributionRegistry = new JSONContributionRegistry(); 31 | platform.Registry.add(Extensions.JSONContribution, jsonContributionRegistry); 32 | -------------------------------------------------------------------------------- /src/monaco/platform/keybinding/common/keybinding.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 6 | export var IKeybindingService = createDecorator('keybindingService'); 7 | -------------------------------------------------------------------------------- /src/monaco/platform/keybinding/common/resolvedKeybindingItem.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | var ResolvedKeybindingItem = /** @class */ (function () { 6 | function ResolvedKeybindingItem(resolvedKeybinding, command, commandArgs, when, isDefault) { 7 | this.resolvedKeybinding = resolvedKeybinding; 8 | this.keypressParts = resolvedKeybinding ? removeElementsAfterNulls(resolvedKeybinding.getDispatchParts()) : []; 9 | this.bubble = (command ? command.charCodeAt(0) === 94 /* Caret */ : false); 10 | this.command = this.bubble ? command.substr(1) : command; 11 | this.commandArgs = commandArgs; 12 | this.when = when; 13 | this.isDefault = isDefault; 14 | } 15 | return ResolvedKeybindingItem; 16 | }()); 17 | export { ResolvedKeybindingItem }; 18 | export function removeElementsAfterNulls(arr) { 19 | var result = []; 20 | for (var i = 0, len = arr.length; i < len; i++) { 21 | var element = arr[i]; 22 | if (!element) { 23 | // stop processing at first encountered null 24 | return result; 25 | } 26 | result.push(element); 27 | } 28 | return result; 29 | } 30 | -------------------------------------------------------------------------------- /src/monaco/platform/label/common/label.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 6 | var LABEL_SERVICE_ID = 'label'; 7 | export var ILabelService = createDecorator(LABEL_SERVICE_ID); 8 | -------------------------------------------------------------------------------- /src/monaco/platform/layout/browser/layoutService.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 6 | export var ILayoutService = createDecorator('layoutService'); 7 | -------------------------------------------------------------------------------- /src/monaco/platform/log/common/log.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator as createServiceDecorator } from '../../instantiation/common/instantiation.js'; 6 | export var ILogService = createServiceDecorator('logService'); 7 | export var LogLevel; 8 | (function (LogLevel) { 9 | LogLevel[LogLevel["Trace"] = 0] = "Trace"; 10 | LogLevel[LogLevel["Debug"] = 1] = "Debug"; 11 | LogLevel[LogLevel["Info"] = 2] = "Info"; 12 | LogLevel[LogLevel["Warning"] = 3] = "Warning"; 13 | LogLevel[LogLevel["Error"] = 4] = "Error"; 14 | LogLevel[LogLevel["Critical"] = 5] = "Critical"; 15 | LogLevel[LogLevel["Off"] = 6] = "Off"; 16 | })(LogLevel || (LogLevel = {})); 17 | var NullLogService = /** @class */ (function () { 18 | function NullLogService() { 19 | } 20 | NullLogService.prototype.getLevel = function () { return LogLevel.Info; }; 21 | NullLogService.prototype.trace = function (message) { 22 | var args = []; 23 | for (var _i = 1; _i < arguments.length; _i++) { 24 | args[_i - 1] = arguments[_i]; 25 | } 26 | }; 27 | NullLogService.prototype.error = function (message) { 28 | var args = []; 29 | for (var _i = 1; _i < arguments.length; _i++) { 30 | args[_i - 1] = arguments[_i]; 31 | } 32 | }; 33 | NullLogService.prototype.dispose = function () { }; 34 | return NullLogService; 35 | }()); 36 | export { NullLogService }; 37 | -------------------------------------------------------------------------------- /src/monaco/platform/notification/common/notification.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import BaseSeverity from '../../../base/common/severity.js'; 6 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 7 | export var Severity = BaseSeverity; 8 | export var INotificationService = createDecorator('notificationService'); 9 | var NoOpNotification = /** @class */ (function () { 10 | function NoOpNotification() { 11 | } 12 | return NoOpNotification; 13 | }()); 14 | export { NoOpNotification }; 15 | -------------------------------------------------------------------------------- /src/monaco/platform/progress/common/progress.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 6 | export var IEditorProgressService = createDecorator('editorProgressService'); 7 | -------------------------------------------------------------------------------- /src/monaco/platform/registry/common/platform.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import * as Types from '../../../base/common/types.js'; 6 | import * as Assert from '../../../base/common/assert.js'; 7 | var RegistryImpl = /** @class */ (function () { 8 | function RegistryImpl() { 9 | this.data = new Map(); 10 | } 11 | RegistryImpl.prototype.add = function (id, data) { 12 | Assert.ok(Types.isString(id)); 13 | Assert.ok(Types.isObject(data)); 14 | Assert.ok(!this.data.has(id), 'There is already an extension with this id'); 15 | this.data.set(id, data); 16 | }; 17 | RegistryImpl.prototype.as = function (id) { 18 | return this.data.get(id) || null; 19 | }; 20 | return RegistryImpl; 21 | }()); 22 | export var Registry = new RegistryImpl(); 23 | -------------------------------------------------------------------------------- /src/monaco/platform/telemetry/common/gdprTypings.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/lukejacksonn/monacode/9fa32db5571d2f3c20802cb87444a2e6e63d1be5/src/monaco/platform/telemetry/common/gdprTypings.js -------------------------------------------------------------------------------- /src/monaco/platform/telemetry/common/telemetry.js: -------------------------------------------------------------------------------- 1 | /*--------------------------------------------------------------------------------------------- 2 | * Copyright (c) Microsoft Corporation. All rights reserved. 3 | * Licensed under the MIT License. See License.txt in the project root for license information. 4 | *--------------------------------------------------------------------------------------------*/ 5 | import { createDecorator } from '../../instantiation/common/instantiation.js'; 6 | export var ITelemetryService = createDecorator('telemetryService'); 7 | -------------------------------------------------------------------------------- /src/monaco/platform/workspaces/common/workspaces.js: -------------------------------------------------------------------------------- 1 | import { URI } from '../../../base/common/uri.js'; 2 | export var WORKSPACE_EXTENSION = 'code-workspace'; 3 | export function isSingleFolderWorkspaceIdentifier(obj) { 4 | return obj instanceof URI; 5 | } 6 | export function toWorkspaceIdentifier(workspace) { 7 | if (workspace.configuration) { 8 | return { 9 | configPath: workspace.configuration, 10 | id: workspace.id 11 | }; 12 | } 13 | if (workspace.folders.length === 1) { 14 | return workspace.folders[0].uri; 15 | } 16 | // Empty workspace 17 | return undefined; 18 | } 19 | //#endregion 20 | --------------------------------------------------------------------------------