提交 fe69f9ac 编写于 作者: M Matt Bierner

Actually save the file this time :'(

上级 4ce3a1e6
...@@ -90,7 +90,6 @@ const standardLanguageDescriptions: LanguageDescription[] = [ ...@@ -90,7 +90,6 @@ const standardLanguageDescriptions: LanguageDescription[] = [
export function activate(context: ExtensionContext): void { export function activate(context: ExtensionContext): void {
const plugins = getContributedTypeScriptServerPlugins(); const plugins = getContributedTypeScriptServerPlugins();
<<<<<<< HEAD
const lazyClientHost = (() => { const lazyClientHost = (() => {
let clientHost: TypeScriptServiceClientHost | undefined; let clientHost: TypeScriptServiceClientHost | undefined;
return () => { return () => {
...@@ -111,10 +110,6 @@ export function activate(context: ExtensionContext): void { ...@@ -111,10 +110,6 @@ export function activate(context: ExtensionContext): void {
}; };
})(); })();
=======
const clientHost = new TypeScriptServiceClientHost(standardLanguageDescriptions, context.storagePath, context.globalState, context.workspaceState, plugins);
context.subscriptions.push(clientHost);
>>>>>>> a0b779f... Move VersionStatus into a class
context.subscriptions.push(commands.registerCommand('typescript.reloadProjects', () => { context.subscriptions.push(commands.registerCommand('typescript.reloadProjects', () => {
lazyClientHost().reloadProjects(); lazyClientHost().reloadProjects();
...@@ -150,7 +145,6 @@ export function activate(context: ExtensionContext): void { ...@@ -150,7 +145,6 @@ export function activate(context: ExtensionContext): void {
const jsDocCompletionCommand = new TryCompleteJsDocCommand(() => lazyClientHost().serviceClient); const jsDocCompletionCommand = new TryCompleteJsDocCommand(() => lazyClientHost().serviceClient);
context.subscriptions.push(commands.registerCommand(TryCompleteJsDocCommand.COMMAND_NAME, jsDocCompletionCommand.tryCompleteJsDoc, jsDocCompletionCommand)); context.subscriptions.push(commands.registerCommand(TryCompleteJsDocCommand.COMMAND_NAME, jsDocCompletionCommand.tryCompleteJsDoc, jsDocCompletionCommand));
<<<<<<< HEAD
const supportedLanguage = [].concat.apply([], standardLanguageDescriptions.map(x => x.modeIds).concat(plugins.map(x => x.languages))); const supportedLanguage = [].concat.apply([], standardLanguageDescriptions.map(x => x.modeIds).concat(plugins.map(x => x.languages)));
function didOpenTextDocument(textDocument: TextDocument): boolean { function didOpenTextDocument(textDocument: TextDocument): boolean {
if (supportedLanguage.indexOf(textDocument.languageId) >= 0) { if (supportedLanguage.indexOf(textDocument.languageId) >= 0) {
...@@ -168,15 +162,6 @@ export function activate(context: ExtensionContext): void { ...@@ -168,15 +162,6 @@ export function activate(context: ExtensionContext): void {
} }
} }
=======
clientHost.serviceClient.onReady().then(() => {
context.subscriptions.push(ProjectStatus.create(clientHost.serviceClient,
path => new Promise<boolean>(resolve => setTimeout(() => resolve(clientHost.handles(path)), 750)),
context.workspaceState));
}, () => {
// Nothing to do here. The client did show a message;
});
>>>>>>> a0b779f... Move VersionStatus into a class
BuildStatus.update({ queueLength: 0 }); BuildStatus.update({ queueLength: 0 });
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册