Skip to content

Commit

Permalink
Merge pull request #3488 from remcohaszing/export-typescript-worker-m…
Browse files Browse the repository at this point in the history
…embers

Export custom TypeScript worker variables
  • Loading branch information
hediet authored Jul 7, 2023
2 parents 0365f0e + c4e3037 commit f191382
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/language/typescript/ts.worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/

import * as edworker from 'monaco-editor-core/esm/vs/editor/editor.worker';
import { ICreateData, create } from './tsWorker';
import { initialize } from 'monaco-editor-core/esm/vs/editor/editor.worker';
import * as ts from './lib/typescriptServices';
import { ICreateData, TypeScriptWorker, create } from './tsWorker';
import { worker } from '../../fillers/monaco-editor-core';
import { libFileMap } from './lib/lib';

self.onmessage = () => {
// ignore the first message
edworker.initialize((ctx: worker.IWorkerContext, createData: ICreateData) => {
initialize((ctx: worker.IWorkerContext, createData: ICreateData) => {
return create(ctx, createData);
});
};

export { create } from './tsWorker';
export { TypeScriptWorker, create, initialize, libFileMap, ts };

0 comments on commit f191382

Please sign in to comment.