Skip to content

Commit 90eb74e

Browse files
committed
Delete code that was extracted to other repos
1 parent 31bcb5a commit 90eb74e

73 files changed

Lines changed: 3 additions & 110010 deletions

Some content is hidden

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

build/gulpfile.editor.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ var headerVersion = semver + '(' + sha1 + ')';
2121
var editorEntryPoints = _.flatten([
2222
buildfile.entrypoint('vs/editor/editor.main'),
2323
buildfile.base,
24-
buildfile.standaloneLanguages,
2524
buildfile.standaloneLanguages2,
2625
buildfile.editor,
2726
buildfile.languages

build/gulpfile.hygiene.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,6 @@ var copyrightFilter = [
7474
'!**/*.sh',
7575
'!**/*.txt',
7676
'!**/*.xpm',
77-
'!src/vs/editor/standalone-languages/swift.ts',
7877
];
7978

8079
var tslintFilter = [

gulpfile.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ function createCompile(build, emitError) {
5151
return function (token) {
5252
var utf8Filter = filter('**/test/**/*utf8*', { restore: true });
5353
var tsFilter = filter([
54-
'**/*.ts',
55-
'!vs/languages/typescript/common/lib/lib.**.ts'
54+
'**/*.ts'
5655
], { restore: true });
5756

5857
var input = es.through();

src/buildfile.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ exports.editor = require('./vs/editor/buildfile').collectModules();
88
exports.languages = require('./vs/languages/buildfile').collectModules();
99
exports.workbench = require('./vs/workbench/buildfile').collectModules(['vs/workbench/workbench.main']);
1010
exports.code = require('./vs/code/buildfile').collectModules();
11-
exports.standaloneLanguages = require('./vs/editor/standalone-languages/buildfile').collectModules();
1211
exports.standaloneLanguages2 = require('./vs/languages/buildfile-editor-languages').collectModules();
1312

1413
exports.entrypoint = function (name) {

src/tsconfig.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,5 @@
77
"target": "es5",
88
"sourceMap": false,
99
"experimentalDecorators": true
10-
},
11-
"exclude": [
12-
"vs/languages/typescript/common/lib/lib.es6.d.ts",
13-
"vs/languages/typescript/common/lib/lib.d.ts"
14-
]
10+
}
1511
}

src/vs/editor/browser/standalone/standaloneEditor.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
*--------------------------------------------------------------------------------------------*/
55
'use strict';
66

7-
// import 'vs/editor/standalone-languages/all';
87
import './standaloneSchemas';
98
import 'vs/css!./media/standalone-tokens';
109
import * as editorCommon from 'vs/editor/common/editorCommon';

src/vs/editor/browser/standalone/standaloneLanguages.ts

Lines changed: 0 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -300,60 +300,6 @@ export function registerLinkProvider(languageId:string, support:modes.LinkProvid
300300
return modes.LinkProviderRegistry.register(languageId, support);
301301
}
302302

303-
/**
304-
* @internal
305-
*/
306-
export function registerMonarchStandaloneLanguage(language:ILanguageExtensionPoint, defModule:string): void {
307-
ModesRegistry.registerLanguage(language);
308-
309-
ExtensionsRegistry.registerOneTimeActivationEventListener('onLanguage:' + language.id, () => {
310-
require([defModule], (value:{language:IMonarchLanguage;conf:IRichLanguageConfiguration}) => {
311-
if (!value.language) {
312-
console.error('Expected ' + defModule + ' to export a `language`');
313-
return;
314-
}
315-
316-
startup.initStaticServicesIfNecessary();
317-
let staticPlatformServices = ensureStaticPlatformServices(null);
318-
let modeService = staticPlatformServices.modeService;
319-
320-
let lexer = compile(language.id, value.language);
321-
322-
modeService.registerTokenizationSupport(language.id, (mode) => {
323-
return createTokenizationSupport(modeService, mode, lexer);
324-
});
325-
326-
LanguageConfigurationRegistry.register(language.id, value.conf);
327-
}, (err) => {
328-
console.error('Cannot find module ' + defModule, err);
329-
});
330-
});
331-
}
332-
333-
/**
334-
* @internal
335-
*/
336-
export function registerStandaloneLanguage(language:ILanguageExtensionPoint, defModule:string): void {
337-
ModesRegistry.registerLanguage(language);
338-
339-
ExtensionsRegistry.registerOneTimeActivationEventListener('onLanguage:' + language.id, () => {
340-
require([defModule], (value:{activate:()=>void}) => {
341-
if (!value.activate) {
342-
console.error('Expected ' + defModule + ' to export an `activate` function');
343-
return;
344-
}
345-
346-
startup.initStaticServicesIfNecessary();
347-
let staticPlatformServices = ensureStaticPlatformServices(null);
348-
let instantiationService = staticPlatformServices.instantiationService;
349-
350-
instantiationService.invokeFunction(value.activate);
351-
}, (err) => {
352-
console.error('Cannot find module ' + defModule, err);
353-
});
354-
});
355-
}
356-
357303
/**
358304
* @internal
359305
*/

src/vs/editor/editor.main.ts

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,13 @@ import 'vs/editor/contrib/quickOpen/browser/quickOutline.contribution';
1010
import 'vs/editor/contrib/quickOpen/browser/gotoLine.contribution';
1111
import 'vs/editor/contrib/quickOpen/browser/quickCommand.contribution';
1212
import 'vs/languages/languages.main';
13-
// import 'vs/languages/typescript/common/typescript.contribution';
1413
import 'vs/languages/php/common/php.contribution';
1514
import 'vs/languages/json/common/json.contribution';
1615

1716
import {createMonacoBaseAPI} from 'vs/editor/common/standalone/standaloneBase';
1817
import {createMonacoEditorAPI} from 'vs/editor/browser/standalone/standaloneEditor';
19-
import {createMonacoLanguagesAPI, registerMonarchStandaloneLanguage, registerStandaloneSchema} from 'vs/editor/browser/standalone/standaloneLanguages';
18+
import {createMonacoLanguagesAPI, registerStandaloneSchema} from 'vs/editor/browser/standalone/standaloneLanguages';
2019
import {DefaultConfig} from 'vs/editor/common/config/defaultConfig';
21-
import {ILanguageDef} from 'vs/editor/standalone-languages/types';
2220
import {IJSONSchema} from 'vs/base/common/jsonSchema';
2321

2422
// Set defaults for standalone editor
@@ -30,12 +28,6 @@ global.monaco = createMonacoBaseAPI();
3028
global.monaco.editor = createMonacoEditorAPI();
3129
global.monaco.languages = createMonacoLanguagesAPI();
3230

33-
// Register all built-in standalone languages
34-
let MonacoEditorLanguages: ILanguageDef[] = global.MonacoEditorLanguages || [];
35-
MonacoEditorLanguages.forEach((language) => {
36-
registerMonarchStandaloneLanguage(language, language.defModule);
37-
});
38-
3931
// Register all built-in standalone JSON schemas
4032
let MonacoEditorSchemas: { [url:string]: IJSONSchema } = global.MonacoEditorSchemas || {};
4133
for (var uri in MonacoEditorSchemas) {

src/vs/editor/standalone-languages/OSSREADME.json

Lines changed: 0 additions & 31 deletions
This file was deleted.

src/vs/editor/standalone-languages/all.ts

Lines changed: 0 additions & 148 deletions
This file was deleted.

0 commit comments

Comments
 (0)