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

Actually save the file this time :'(

上级 4ce3a1e6
......@@ -90,7 +90,6 @@ const standardLanguageDescriptions: LanguageDescription[] = [
export function activate(context: ExtensionContext): void {
const plugins = getContributedTypeScriptServerPlugins();
<<<<<<< HEAD
const lazyClientHost = (() => {
let clientHost: TypeScriptServiceClientHost | undefined;
return () => {
......@@ -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', () => {
lazyClientHost().reloadProjects();
......@@ -150,7 +145,6 @@ export function activate(context: ExtensionContext): void {
const jsDocCompletionCommand = new TryCompleteJsDocCommand(() => lazyClientHost().serviceClient);
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)));
function didOpenTextDocument(textDocument: TextDocument): boolean {
if (supportedLanguage.indexOf(textDocument.languageId) >= 0) {
......@@ -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 });
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册