mirror of
https://github.com/ckaczor/azuredatastudio.git
synced 2026-02-13 11:38:36 -05:00
SQL Operations Studio Public Preview 1 (0.23) release source code
This commit is contained in:
53
src/vs/editor/editor.main.ts
Normal file
53
src/vs/editor/editor.main.ts
Normal file
@@ -0,0 +1,53 @@
|
||||
/*---------------------------------------------------------------------------------------------
|
||||
* Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
* Licensed under the Source EULA. See License.txt in the project root for license information.
|
||||
*--------------------------------------------------------------------------------------------*/
|
||||
|
||||
'use strict';
|
||||
|
||||
import 'vs/editor/editor.all';
|
||||
import 'vs/editor/standalone/browser/accessibilityHelp/accessibilityHelp';
|
||||
import 'vs/editor/standalone/browser/inspectTokens/inspectTokens';
|
||||
import 'vs/editor/standalone/browser/iPadShowKeyboard/iPadShowKeyboard';
|
||||
import 'vs/editor/standalone/browser/quickOpen/quickOutline';
|
||||
import 'vs/editor/standalone/browser/quickOpen/gotoLine';
|
||||
import 'vs/editor/standalone/browser/quickOpen/quickCommand';
|
||||
import 'vs/editor/standalone/browser/toggleHighContrast/toggleHighContrast';
|
||||
|
||||
import { createMonacoBaseAPI } from 'vs/editor/common/standalone/standaloneBase';
|
||||
import { createMonacoEditorAPI } from 'vs/editor/standalone/browser/standaloneEditor';
|
||||
import { createMonacoLanguagesAPI } from 'vs/editor/standalone/browser/standaloneLanguages';
|
||||
import { EDITOR_DEFAULTS, WrappingIndent } from 'vs/editor/common/config/editorOptions';
|
||||
|
||||
// Set defaults for standalone editor
|
||||
(<any>EDITOR_DEFAULTS).wrappingIndent = WrappingIndent.None;
|
||||
(<any>EDITOR_DEFAULTS.contribInfo).folding = false;
|
||||
(<any>EDITOR_DEFAULTS.viewInfo).glyphMargin = false;
|
||||
(<any>EDITOR_DEFAULTS).autoIndent = false;
|
||||
|
||||
let base = createMonacoBaseAPI();
|
||||
for (let prop in base) {
|
||||
if (base.hasOwnProperty(prop)) {
|
||||
exports[prop] = base[prop];
|
||||
}
|
||||
}
|
||||
exports.editor = createMonacoEditorAPI();
|
||||
exports.languages = createMonacoLanguagesAPI();
|
||||
|
||||
var global: any = self;
|
||||
global.monaco = exports;
|
||||
|
||||
if (typeof global.require !== 'undefined' && typeof global.require.config === 'function') {
|
||||
global.require.config({
|
||||
ignoreDuplicateModules: [
|
||||
'vscode-languageserver-types',
|
||||
'vscode-languageserver-types/main',
|
||||
'vscode-nls',
|
||||
'vscode-nls/vscode-nls',
|
||||
'jsonc-parser',
|
||||
'jsonc-parser/main',
|
||||
'vscode-uri',
|
||||
'vscode-uri/index'
|
||||
]
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user