Browse Source

Set `printWidth` to 100

Alex Dima 4 years ago
parent
commit
5adfc2c139

+ 2 - 1
.prettierrc

@@ -3,5 +3,6 @@
 	"singleQuote": true,
 	"singleQuote": true,
 	"trailingComma": "none",
 	"trailingComma": "none",
 	"semi": true,
 	"semi": true,
-	"useTabs": true
+	"useTabs": true,
+	"printWidth": 100
 }
 }

+ 5 - 20
scripts/bundle.js

@@ -40,26 +40,17 @@ function bundleOne(moduleId, exclude) {
 			packages: [
 			packages: [
 				{
 				{
 					name: 'vscode-json-languageservice',
 					name: 'vscode-json-languageservice',
-					location: path.join(
-						REPO_ROOT,
-						'node_modules/vscode-json-languageservice/lib/umd'
-					),
+					location: path.join(REPO_ROOT, 'node_modules/vscode-json-languageservice/lib/umd'),
 					main: 'jsonLanguageService'
 					main: 'jsonLanguageService'
 				},
 				},
 				{
 				{
 					name: 'vscode-languageserver-types',
 					name: 'vscode-languageserver-types',
-					location: path.join(
-						REPO_ROOT,
-						'node_modules/vscode-languageserver-types/lib/umd'
-					),
+					location: path.join(REPO_ROOT, 'node_modules/vscode-languageserver-types/lib/umd'),
 					main: 'main'
 					main: 'main'
 				},
 				},
 				{
 				{
 					name: 'vscode-languageserver-textdocument',
 					name: 'vscode-languageserver-textdocument',
-					location: path.join(
-						REPO_ROOT,
-						'node_modules/vscode-languageserver-textdocument/lib/umd'
-					),
+					location: path.join(REPO_ROOT, 'node_modules/vscode-languageserver-textdocument/lib/umd'),
 					main: 'main'
 					main: 'main'
 				},
 				},
 				{
 				{
@@ -80,14 +71,8 @@ function bundleOne(moduleId, exclude) {
 			]
 			]
 		},
 		},
 		async function (buildResponse) {
 		async function (buildResponse) {
-			const devFilePath = path.join(
-				REPO_ROOT,
-				'release/dev/' + moduleId + '.js'
-			);
-			const minFilePath = path.join(
-				REPO_ROOT,
-				'release/min/' + moduleId + '.js'
-			);
+			const devFilePath = path.join(REPO_ROOT, 'release/dev/' + moduleId + '.js');
+			const minFilePath = path.join(REPO_ROOT, 'release/min/' + moduleId + '.js');
 			const fileContents = fs.readFileSync(devFilePath).toString();
 			const fileContents = fs.readFileSync(devFilePath).toString();
 			console.log(`Minifying ${devFilePath}...`);
 			console.log(`Minifying ${devFilePath}...`);
 			const result = await Terser.minify(fileContents, {
 			const result = await Terser.minify(fileContents, {

+ 1 - 5
src/fillers/vscode-nls.ts

@@ -33,11 +33,7 @@ function format(message: string, args: any[]): string {
 	return result;
 	return result;
 }
 }
 
 
-function localize(
-	key: string | LocalizeInfo,
-	message: string,
-	...args: any[]
-): string {
+function localize(key: string | LocalizeInfo, message: string, ...args: any[]): string {
 	return format(message, args);
 	return format(message, args);
 }
 }
 
 

+ 5 - 19
src/jsonMode.ts

@@ -17,9 +17,7 @@ export function setupMode(defaults: LanguageServiceDefaults): IDisposable {
 	const client = new WorkerManager(defaults);
 	const client = new WorkerManager(defaults);
 	disposables.push(client);
 	disposables.push(client);
 
 
-	const worker: languageFeatures.WorkerAccessor = (
-		...uris: Uri[]
-	): Promise<JSONWorker> => {
+	const worker: languageFeatures.WorkerAccessor = (...uris: Uri[]): Promise<JSONWorker> => {
 		return client.getLanguageServiceWorker(...uris);
 		return client.getLanguageServiceWorker(...uris);
 	};
 	};
 
 
@@ -54,10 +52,7 @@ export function setupMode(defaults: LanguageServiceDefaults): IDisposable {
 		}
 		}
 		if (modeConfiguration.hovers) {
 		if (modeConfiguration.hovers) {
 			providers.push(
 			providers.push(
-				languages.registerHoverProvider(
-					languageId,
-					new languageFeatures.HoverAdapter(worker)
-				)
+				languages.registerHoverProvider(languageId, new languageFeatures.HoverAdapter(worker))
 			);
 			);
 		}
 		}
 		if (modeConfiguration.documentSymbols) {
 		if (modeConfiguration.documentSymbols) {
@@ -69,9 +64,7 @@ export function setupMode(defaults: LanguageServiceDefaults): IDisposable {
 			);
 			);
 		}
 		}
 		if (modeConfiguration.tokens) {
 		if (modeConfiguration.tokens) {
-			providers.push(
-				languages.setTokensProvider(languageId, createTokenizationSupport(true))
-			);
+			providers.push(languages.setTokensProvider(languageId, createTokenizationSupport(true)));
 		}
 		}
 		if (modeConfiguration.colors) {
 		if (modeConfiguration.colors) {
 			providers.push(
 			providers.push(
@@ -90,9 +83,7 @@ export function setupMode(defaults: LanguageServiceDefaults): IDisposable {
 			);
 			);
 		}
 		}
 		if (modeConfiguration.diagnostics) {
 		if (modeConfiguration.diagnostics) {
-			providers.push(
-				new languageFeatures.DiagnosticsAdapter(languageId, worker, defaults)
-			);
+			providers.push(new languageFeatures.DiagnosticsAdapter(languageId, worker, defaults));
 		}
 		}
 		if (modeConfiguration.selectionRanges) {
 		if (modeConfiguration.selectionRanges) {
 			providers.push(
 			providers.push(
@@ -106,12 +97,7 @@ export function setupMode(defaults: LanguageServiceDefaults): IDisposable {
 
 
 	registerProviders();
 	registerProviders();
 
 
-	disposables.push(
-		languages.setLanguageConfiguration(
-			defaults.languageId,
-			richEditConfiguration
-		)
-	);
+	disposables.push(languages.setLanguageConfiguration(defaults.languageId, richEditConfiguration));
 
 
 	let modeConfiguration = defaults.modeConfiguration;
 	let modeConfiguration = defaults.modeConfiguration;
 	defaults.onDidChange((newDefaults) => {
 	defaults.onDidChange((newDefaults) => {

+ 9 - 32
src/jsonWorker.ts

@@ -24,8 +24,7 @@ export class JSONWorker {
 		this._languageSettings = createData.languageSettings;
 		this._languageSettings = createData.languageSettings;
 		this._languageId = createData.languageId;
 		this._languageId = createData.languageId;
 		this._languageService = jsonService.getLanguageService({
 		this._languageService = jsonService.getLanguageService({
-			schemaRequestService:
-				createData.enableSchemaRequest && defaultSchemaRequestService
+			schemaRequestService: createData.enableSchemaRequest && defaultSchemaRequestService
 		});
 		});
 		this._languageService.configure(this._languageSettings);
 		this._languageService.configure(this._languageSettings);
 	}
 	}
@@ -46,15 +45,10 @@ export class JSONWorker {
 		let jsonDocument = this._languageService.parseJSONDocument(document);
 		let jsonDocument = this._languageService.parseJSONDocument(document);
 		return this._languageService.doComplete(document, position, jsonDocument);
 		return this._languageService.doComplete(document, position, jsonDocument);
 	}
 	}
-	async doResolve(
-		item: jsonService.CompletionItem
-	): Promise<jsonService.CompletionItem> {
+	async doResolve(item: jsonService.CompletionItem): Promise<jsonService.CompletionItem> {
 		return this._languageService.doResolve(item);
 		return this._languageService.doResolve(item);
 	}
 	}
-	async doHover(
-		uri: string,
-		position: jsonService.Position
-	): Promise<jsonService.Hover> {
+	async doHover(uri: string, position: jsonService.Position): Promise<jsonService.Hover> {
 		let document = this._getTextDocument(uri);
 		let document = this._getTextDocument(uri);
 		let jsonDocument = this._languageService.parseJSONDocument(document);
 		let jsonDocument = this._languageService.parseJSONDocument(document);
 		return this._languageService.doHover(document, position, jsonDocument);
 		return this._languageService.doHover(document, position, jsonDocument);
@@ -71,26 +65,16 @@ export class JSONWorker {
 	async resetSchema(uri: string): Promise<boolean> {
 	async resetSchema(uri: string): Promise<boolean> {
 		return Promise.resolve(this._languageService.resetSchema(uri));
 		return Promise.resolve(this._languageService.resetSchema(uri));
 	}
 	}
-	async findDocumentSymbols(
-		uri: string
-	): Promise<jsonService.SymbolInformation[]> {
+	async findDocumentSymbols(uri: string): Promise<jsonService.SymbolInformation[]> {
 		let document = this._getTextDocument(uri);
 		let document = this._getTextDocument(uri);
 		let jsonDocument = this._languageService.parseJSONDocument(document);
 		let jsonDocument = this._languageService.parseJSONDocument(document);
-		let symbols = this._languageService.findDocumentSymbols(
-			document,
-			jsonDocument
-		);
+		let symbols = this._languageService.findDocumentSymbols(document, jsonDocument);
 		return Promise.resolve(symbols);
 		return Promise.resolve(symbols);
 	}
 	}
-	async findDocumentColors(
-		uri: string
-	): Promise<jsonService.ColorInformation[]> {
+	async findDocumentColors(uri: string): Promise<jsonService.ColorInformation[]> {
 		let document = this._getTextDocument(uri);
 		let document = this._getTextDocument(uri);
 		let jsonDocument = this._languageService.parseJSONDocument(document);
 		let jsonDocument = this._languageService.parseJSONDocument(document);
-		let colorSymbols = this._languageService.findDocumentColors(
-			document,
-			jsonDocument
-		);
+		let colorSymbols = this._languageService.findDocumentColors(document, jsonDocument);
 		return Promise.resolve(colorSymbols);
 		return Promise.resolve(colorSymbols);
 	}
 	}
 	async getColorPresentations(
 	async getColorPresentations(
@@ -122,11 +106,7 @@ export class JSONWorker {
 	): Promise<jsonService.SelectionRange[]> {
 	): Promise<jsonService.SelectionRange[]> {
 		let document = this._getTextDocument(uri);
 		let document = this._getTextDocument(uri);
 		let jsonDocument = this._languageService.parseJSONDocument(document);
 		let jsonDocument = this._languageService.parseJSONDocument(document);
-		let ranges = this._languageService.getSelectionRanges(
-			document,
-			positions,
-			jsonDocument
-		);
+		let ranges = this._languageService.getSelectionRanges(document, positions, jsonDocument);
 		return Promise.resolve(ranges);
 		return Promise.resolve(ranges);
 	}
 	}
 	private _getTextDocument(uri: string): jsonService.TextDocument {
 	private _getTextDocument(uri: string): jsonService.TextDocument {
@@ -151,9 +131,6 @@ export interface ICreateData {
 	enableSchemaRequest: boolean;
 	enableSchemaRequest: boolean;
 }
 }
 
 
-export function create(
-	ctx: worker.IWorkerContext,
-	createData: ICreateData
-): JSONWorker {
+export function create(ctx: worker.IWorkerContext, createData: ICreateData): JSONWorker {
 	return new JSONWorker(ctx, createData);
 	return new JSONWorker(ctx, createData);
 }
 }

+ 13 - 45
src/languageFeatures.ts

@@ -140,12 +140,8 @@ function toSeverity(lsSeverity: number): MarkerSeverity {
 	}
 	}
 }
 }
 
 
-function toDiagnostics(
-	resource: Uri,
-	diag: jsonService.Diagnostic
-): editor.IMarkerData {
-	let code =
-		typeof diag.code === 'number' ? String(diag.code) : <string>diag.code;
+function toDiagnostics(resource: Uri, diag: jsonService.Diagnostic): editor.IMarkerData {
+	let code = typeof diag.code === 'number' ? String(diag.code) : <string>diag.code;
 
 
 	return {
 	return {
 		severity: toSeverity(diag.severity),
 		severity: toSeverity(diag.severity),
@@ -306,9 +302,7 @@ function fromCompletionItemKind(
 	return jsonService.CompletionItemKind.Property;
 	return jsonService.CompletionItemKind.Property;
 }
 }
 
 
-function toTextEdit(
-	textEdit: jsonService.TextEdit
-): editor.ISingleEditOperation {
+function toTextEdit(textEdit: jsonService.TextEdit): editor.ISingleEditOperation {
 	if (!textEdit) {
 	if (!textEdit) {
 		return void 0;
 		return void 0;
 	}
 	}
@@ -372,13 +366,10 @@ export class CompletionAdapter implements languages.CompletionItemProvider {
 						item.insertText = entry.textEdit.newText;
 						item.insertText = entry.textEdit.newText;
 					}
 					}
 					if (entry.additionalTextEdits) {
 					if (entry.additionalTextEdits) {
-						item.additionalTextEdits = entry.additionalTextEdits.map(
-							toTextEdit
-						);
+						item.additionalTextEdits = entry.additionalTextEdits.map(toTextEdit);
 					}
 					}
 					if (entry.insertTextFormat === jsonService.InsertTextFormat.Snippet) {
 					if (entry.insertTextFormat === jsonService.InsertTextFormat.Snippet) {
-						item.insertTextRules =
-							languages.CompletionItemInsertTextRule.InsertAsSnippet;
+						item.insertTextRules = languages.CompletionItemInsertTextRule.InsertAsSnippet;
 					}
 					}
 					return item;
 					return item;
 				});
 				});
@@ -422,10 +413,7 @@ function toMarkdownString(
 }
 }
 
 
 function toMarkedStringArray(
 function toMarkedStringArray(
-	contents:
-		| jsonService.MarkupContent
-		| jsonService.MarkedString
-		| jsonService.MarkedString[]
+	contents: jsonService.MarkupContent | jsonService.MarkedString | jsonService.MarkedString[]
 ): IMarkdownString[] {
 ): IMarkdownString[] {
 	if (!contents) {
 	if (!contents) {
 		return void 0;
 		return void 0;
@@ -556,8 +544,7 @@ function fromFormattingOptions(
 	};
 	};
 }
 }
 
 
-export class DocumentFormattingEditProvider
-	implements languages.DocumentFormattingEditProvider {
+export class DocumentFormattingEditProvider implements languages.DocumentFormattingEditProvider {
 	constructor(private _worker: WorkerAccessor) {}
 	constructor(private _worker: WorkerAccessor) {}
 
 
 	public provideDocumentFormattingEdits(
 	public provideDocumentFormattingEdits(
@@ -594,11 +581,7 @@ export class DocumentRangeFormattingEditProvider
 
 
 		return this._worker(resource).then((worker) => {
 		return this._worker(resource).then((worker) => {
 			return worker
 			return worker
-				.format(
-					resource.toString(),
-					fromRange(range),
-					fromFormattingOptions(options)
-				)
+				.format(resource.toString(), fromRange(range), fromFormattingOptions(options))
 				.then((edits) => {
 				.then((edits) => {
 					if (!edits || edits.length === 0) {
 					if (!edits || edits.length === 0) {
 						return;
 						return;
@@ -640,11 +623,7 @@ export class DocumentColorAdapter implements languages.DocumentColorProvider {
 
 
 		return this._worker(resource)
 		return this._worker(resource)
 			.then((worker) =>
 			.then((worker) =>
-				worker.getColorPresentations(
-					resource.toString(),
-					info.color,
-					fromRange(info.range)
-				)
+				worker.getColorPresentations(resource.toString(), info.color, fromRange(info.range))
 			)
 			)
 			.then((presentations) => {
 			.then((presentations) => {
 				if (!presentations) {
 				if (!presentations) {
@@ -658,9 +637,7 @@ export class DocumentColorAdapter implements languages.DocumentColorProvider {
 						item.textEdit = toTextEdit(presentation.textEdit);
 						item.textEdit = toTextEdit(presentation.textEdit);
 					}
 					}
 					if (presentation.additionalTextEdits) {
 					if (presentation.additionalTextEdits) {
-						item.additionalTextEdits = presentation.additionalTextEdits.map(
-							toTextEdit
-						);
+						item.additionalTextEdits = presentation.additionalTextEdits.map(toTextEdit);
 					}
 					}
 					return item;
 					return item;
 				});
 				});
@@ -690,9 +667,7 @@ export class FoldingRangeAdapter implements languages.FoldingRangeProvider {
 						end: range.endLine + 1
 						end: range.endLine + 1
 					};
 					};
 					if (typeof range.kind !== 'undefined') {
 					if (typeof range.kind !== 'undefined') {
-						result.kind = toFoldingRangeKind(
-							<jsonService.FoldingRangeKind>range.kind
-						);
+						result.kind = toFoldingRangeKind(<jsonService.FoldingRangeKind>range.kind);
 					}
 					}
 					return result;
 					return result;
 				});
 				});
@@ -700,9 +675,7 @@ export class FoldingRangeAdapter implements languages.FoldingRangeProvider {
 	}
 	}
 }
 }
 
 
-function toFoldingRangeKind(
-	kind: jsonService.FoldingRangeKind
-): languages.FoldingRangeKind {
+function toFoldingRangeKind(kind: jsonService.FoldingRangeKind): languages.FoldingRangeKind {
 	switch (kind) {
 	switch (kind) {
 		case jsonService.FoldingRangeKind.Comment:
 		case jsonService.FoldingRangeKind.Comment:
 			return languages.FoldingRangeKind.Comment;
 			return languages.FoldingRangeKind.Comment;
@@ -725,12 +698,7 @@ export class SelectionRangeAdapter implements languages.SelectionRangeProvider {
 		const resource = model.uri;
 		const resource = model.uri;
 
 
 		return this._worker(resource)
 		return this._worker(resource)
-			.then((worker) =>
-				worker.getSelectionRanges(
-					resource.toString(),
-					positions.map(fromPosition)
-				)
-			)
+			.then((worker) => worker.getSelectionRanges(resource.toString(), positions.map(fromPosition)))
 			.then((selectionRanges) => {
 			.then((selectionRanges) => {
 				if (!selectionRanges) {
 				if (!selectionRanges) {
 					return;
 					return;

+ 1 - 9
src/monaco.contribution.ts

@@ -181,15 +181,7 @@ function getMode(): Promise<typeof mode> {
 
 
 languages.register({
 languages.register({
 	id: 'json',
 	id: 'json',
-	extensions: [
-		'.json',
-		'.bowerrc',
-		'.jshintrc',
-		'.jscsrc',
-		'.eslintrc',
-		'.babelrc',
-		'.har'
-	],
+	extensions: ['.json', '.bowerrc', '.jshintrc', '.jscsrc', '.eslintrc', '.babelrc', '.har'],
 	aliases: ['JSON', 'json'],
 	aliases: ['JSON', 'json'],
 	mimetypes: ['application/json']
 	mimetypes: ['application/json']
 });
 });

+ 3 - 12
src/tokenization.ts

@@ -6,19 +6,11 @@
 import * as json from 'jsonc-parser';
 import * as json from 'jsonc-parser';
 import { languages } from './fillers/monaco-editor-core';
 import { languages } from './fillers/monaco-editor-core';
 
 
-export function createTokenizationSupport(
-	supportComments: boolean
-): languages.TokensProvider {
+export function createTokenizationSupport(supportComments: boolean): languages.TokensProvider {
 	return {
 	return {
 		getInitialState: () => new JSONState(null, null),
 		getInitialState: () => new JSONState(null, null),
 		tokenize: (line, state, offsetDelta?, stopAtOffset?) =>
 		tokenize: (line, state, offsetDelta?, stopAtOffset?) =>
-			tokenize(
-				supportComments,
-				line,
-				<JSONState>state,
-				offsetDelta,
-				stopAtOffset
-			)
+			tokenize(supportComments, line, <JSONState>state, offsetDelta, stopAtOffset)
 	};
 	};
 }
 }
 
 
@@ -108,8 +100,7 @@ function tokenize(
 		// Check that the scanner has advanced
 		// Check that the scanner has advanced
 		if (offset === offsetDelta + scanner.getPosition()) {
 		if (offset === offsetDelta + scanner.getPosition()) {
 			throw new Error(
 			throw new Error(
-				'Scanner did not advance, next 3 characters are: ' +
-					line.substr(scanner.getPosition(), 3)
+				'Scanner did not advance, next 3 characters are: ' + line.substr(scanner.getPosition(), 3)
 			);
 			);
 		}
 		}
 
 

+ 1 - 7
src/tsconfig.esm.json

@@ -5,12 +5,6 @@
 		"moduleResolution": "node",
 		"moduleResolution": "node",
 		"outDir": "../out/esm",
 		"outDir": "../out/esm",
 		"target": "es5",
 		"target": "es5",
-		"lib": [
-			"dom",
-			"es5",
-			"es2015.collection",
-			"es2015.promise",
-			"es2015.iterable"
-		]
+		"lib": ["dom", "es5", "es2015.collection", "es2015.promise", "es2015.iterable"]
 	}
 	}
 }
 }

+ 1 - 7
src/tsconfig.json

@@ -5,12 +5,6 @@
 		"outDir": "../out/amd",
 		"outDir": "../out/amd",
 		"declaration": true,
 		"declaration": true,
 		"target": "es5",
 		"target": "es5",
-		"lib": [
-			"dom",
-			"es5",
-			"es2015.collection",
-			"es2015.promise",
-			"es2015.iterable"
-		]
+		"lib": ["dom", "es5", "es2015.collection", "es2015.promise", "es2015.iterable"]
 	}
 	}
 }
 }

+ 2 - 5
src/workerManager.ts

@@ -23,9 +23,7 @@ export class WorkerManager {
 		this._worker = null;
 		this._worker = null;
 		this._idleCheckInterval = setInterval(() => this._checkIfIdle(), 30 * 1000);
 		this._idleCheckInterval = setInterval(() => this._checkIfIdle(), 30 * 1000);
 		this._lastUsedTime = 0;
 		this._lastUsedTime = 0;
-		this._configChangeListener = this._defaults.onDidChange(() =>
-			this._stopWorker()
-		);
+		this._configChangeListener = this._defaults.onDidChange(() => this._stopWorker());
 	}
 	}
 
 
 	private _stopWorker(): void {
 	private _stopWorker(): void {
@@ -66,8 +64,7 @@ export class WorkerManager {
 				createData: {
 				createData: {
 					languageSettings: this._defaults.diagnosticsOptions,
 					languageSettings: this._defaults.diagnosticsOptions,
 					languageId: this._defaults.languageId,
 					languageId: this._defaults.languageId,
-					enableSchemaRequest: this._defaults.diagnosticsOptions
-						.enableSchemaRequest
+					enableSchemaRequest: this._defaults.diagnosticsOptions.enableSchemaRequest
 				}
 				}
 			});
 			});
 
 

+ 74 - 80
test/index.html

@@ -11,10 +11,7 @@
 	</head>
 	</head>
 	<body>
 	<body>
 		<h2>Monaco Editor JSON test page</h2>
 		<h2>Monaco Editor JSON test page</h2>
-		<div
-			id="container"
-			style="width: 800px; height: 600px; border: 1px solid grey"
-		></div>
+		<div id="container" style="width: 800px; height: 600px; border: 1px solid grey"></div>
 
 
 		<script>
 		<script>
 			// Loading basic-languages to get the json language definition
 			// Loading basic-languages to get the json language definition
@@ -44,82 +41,79 @@
 				'vs/basic-languages/monaco.contribution',
 				'vs/basic-languages/monaco.contribution',
 				'vs/language/json/monaco.contribution'
 				'vs/language/json/monaco.contribution'
 			], function () {
 			], function () {
-				var editor = monaco.editor.create(
-					document.getElementById('container'),
-					{
-						value: [
-							'{',
-							'	"type": "team",',
-							'	"test": {',
-							'		"testPage": "tools/testing/run-tests.htm",',
-							'		"enabled": true',
-							'	},',
-							'	"search": {',
-							'		"excludeFolders": [',
-							'			".git",',
-							'			"node_modules",',
-							'			"tools/bin",',
-							'			"tools/counts",',
-							'			"tools/policheck",',
-							'			"tools/tfs_build_extensions",',
-							'			"tools/testing/jscoverage",',
-							'			"tools/testing/qunit",',
-							'			"tools/testing/chutzpah",',
-							'			"server.net"',
-							'		]',
-							'	},',
-							'	"languages": {',
-							'		"vs.languages.typescript": {',
-							'			"validationSettings": [{',
-							'				"scope":"/",',
-							'				"noImplicitAny":true,',
-							'				"noLib":false,',
-							'				"extraLibs":[],',
-							'				"semanticValidation":true,',
-							'				"syntaxValidation":true,',
-							'				"codeGenTarget":"ES5",',
-							'				"moduleGenTarget":"",',
-							'				"lint": {',
-							'					"emptyBlocksWithoutComment": "warning",',
-							'					"curlyBracketsMustNotBeOmitted": "warning",',
-							'					"comparisonOperatorsNotStrict": "warning",',
-							'					"missingSemicolon": "warning",',
-							'					"unknownTypeOfResults": "warning",',
-							'					"semicolonsInsteadOfBlocks": "warning",',
-							'					"functionsInsideLoops": "warning",',
-							'					"functionsWithoutReturnType": "warning",',
-							'					"tripleSlashReferenceAlike": "warning",',
-							'					"unusedImports": "warning",',
-							'					"unusedVariables": "warning",',
-							'					"unusedFunctions": "warning",',
-							'					"unusedMembers": "warning"',
-							'				}',
-							'			},',
-							'			{',
-							'				"scope":"/client",',
-							'				"baseUrl":"/client",',
-							'				"moduleGenTarget":"amd"',
-							'			},',
-							'			{',
-							'				"scope":"/server",',
-							'				"moduleGenTarget":"commonjs"',
-							'			},',
-							'			{',
-							'				"scope":"/build",',
-							'				"moduleGenTarget":"commonjs"',
-							'			},',
-							'			{',
-							'				"scope":"/node_modules/nake",',
-							'				"moduleGenTarget":"commonjs"',
-							'			}],',
-							'			"allowMultipleWorkers": true',
-							'		}',
-							'	}',
-							'}'
-						].join('\n'),
-						language: 'json'
-					}
-				);
+				var editor = monaco.editor.create(document.getElementById('container'), {
+					value: [
+						'{',
+						'	"type": "team",',
+						'	"test": {',
+						'		"testPage": "tools/testing/run-tests.htm",',
+						'		"enabled": true',
+						'	},',
+						'	"search": {',
+						'		"excludeFolders": [',
+						'			".git",',
+						'			"node_modules",',
+						'			"tools/bin",',
+						'			"tools/counts",',
+						'			"tools/policheck",',
+						'			"tools/tfs_build_extensions",',
+						'			"tools/testing/jscoverage",',
+						'			"tools/testing/qunit",',
+						'			"tools/testing/chutzpah",',
+						'			"server.net"',
+						'		]',
+						'	},',
+						'	"languages": {',
+						'		"vs.languages.typescript": {',
+						'			"validationSettings": [{',
+						'				"scope":"/",',
+						'				"noImplicitAny":true,',
+						'				"noLib":false,',
+						'				"extraLibs":[],',
+						'				"semanticValidation":true,',
+						'				"syntaxValidation":true,',
+						'				"codeGenTarget":"ES5",',
+						'				"moduleGenTarget":"",',
+						'				"lint": {',
+						'					"emptyBlocksWithoutComment": "warning",',
+						'					"curlyBracketsMustNotBeOmitted": "warning",',
+						'					"comparisonOperatorsNotStrict": "warning",',
+						'					"missingSemicolon": "warning",',
+						'					"unknownTypeOfResults": "warning",',
+						'					"semicolonsInsteadOfBlocks": "warning",',
+						'					"functionsInsideLoops": "warning",',
+						'					"functionsWithoutReturnType": "warning",',
+						'					"tripleSlashReferenceAlike": "warning",',
+						'					"unusedImports": "warning",',
+						'					"unusedVariables": "warning",',
+						'					"unusedFunctions": "warning",',
+						'					"unusedMembers": "warning"',
+						'				}',
+						'			},',
+						'			{',
+						'				"scope":"/client",',
+						'				"baseUrl":"/client",',
+						'				"moduleGenTarget":"amd"',
+						'			},',
+						'			{',
+						'				"scope":"/server",',
+						'				"moduleGenTarget":"commonjs"',
+						'			},',
+						'			{',
+						'				"scope":"/build",',
+						'				"moduleGenTarget":"commonjs"',
+						'			},',
+						'			{',
+						'				"scope":"/node_modules/nake",',
+						'				"moduleGenTarget":"commonjs"',
+						'			}],',
+						'			"allowMultipleWorkers": true',
+						'		}',
+						'	}',
+						'}'
+					].join('\n'),
+					language: 'json'
+				});
 			});
 			});
 		</script>
 		</script>
 	</body>
 	</body>