src/Tools/VSCode/extension/src/extension.ts
changeset 66096 6187612e83c1
parent 66072 fd26cf23e9b2
child 66097 ee4c2d5b650e
equal deleted inserted replaced
66095:78a1aedd1761 66096:6187612e83c1
     4 import * as fs from 'fs';
     4 import * as fs from 'fs';
     5 import * as library from './library'
     5 import * as library from './library'
     6 import * as decorations from './decorations';
     6 import * as decorations from './decorations';
     7 import * as preview from './preview';
     7 import * as preview from './preview';
     8 import * as protocol from './protocol';
     8 import * as protocol from './protocol';
       
     9 import * as state from './state';
     9 import * as symbol from './symbol';
    10 import * as symbol from './symbol';
    10 import * as completion from './completion';
    11 import * as completion from './completion';
    11 import { ExtensionContext, workspace, window, commands, languages } from 'vscode';
    12 import { ExtensionContext, workspace, window, commands, languages } from 'vscode';
    12 import { LanguageClient, LanguageClientOptions, SettingMonitor, ServerOptions, TransportKind, NotificationType }
    13 import { LanguageClient, LanguageClientOptions, SettingMonitor, ServerOptions, TransportKind, NotificationType }
    13   from 'vscode-languageclient';
    14   from 'vscode-languageclient';
    99       language_client.onNotification(protocol.dynamic_output_type,
   100       language_client.onNotification(protocol.dynamic_output_type,
   100         params => { dynamic_output.clear(); dynamic_output.appendLine(params.content) })
   101         params => { dynamic_output.clear(); dynamic_output.appendLine(params.content) })
   101     })
   102     })
   102 
   103 
   103 
   104 
       
   105     /* state */
       
   106 
       
   107     context.subscriptions.push(
       
   108       commands.registerCommand("isabelle.state", uri => state.init(uri)),
       
   109       commands.registerCommand("_isabelle.state-locate", state.locate),
       
   110       commands.registerCommand("_isabelle.state-update", state.update))
       
   111 
       
   112     language_client.onReady().then(() => state.setup(context, language_client))
       
   113 
       
   114 
   104     /* preview */
   115     /* preview */
   105 
   116 
   106     context.subscriptions.push(
   117     context.subscriptions.push(
   107       commands.registerCommand("isabelle.preview", uri => preview.request(uri, false)),
   118       commands.registerCommand("isabelle.preview", uri => preview.request(uri, false)),
   108       commands.registerCommand("isabelle.preview-split", uri => preview.request(uri, true)),
   119       commands.registerCommand("isabelle.preview-split", uri => preview.request(uri, true)),