Пример #1
0
def main():
    for build in (1, 2):
        ret = os.system('make -C cpp-test/build-{}'.format(build))
        if ret != 0:
            return ret

    ls.run(interact,
           initialize_params={
               'rootUri': 'file://' + os.getcwd() + '/cpp-test/src',
           })
Пример #2
0
def main():
    if not os.path.exists('./cpp-test/build/compile_commands.json'):
        print(
            'Could not find compile_commands.json, please run make in ./cpp-test/build.'
        )
        return

    ls.run(interact, {
        'rootUri': 'file:///home/emaisin/src/theia',
    })
Пример #3
0
def main():
    if not os.path.exists('./cpp-test/build/compile_commands.json'):
        print(
            'Could not find compile_commands.json, please run make in ./cpp-test/build.'
        )
        return

    ls.run(
        interact, {
            'initializationOptions': {
                'cacheDirectory': '/tmp/cquery-cache'
            },
            'rootUri': 'file://' + os.getcwd() + '/cpp-test/build',
        })
def main():
    ret = os.system('cd multi-project && ./setup.sh')
    if ret != 0:
        return ret

    ls.run(interact,
           cmdline_args='--background-index',
           initialize_params={
               'rootUri': 'file://' + root + 'source',
               'initializationOptions': {
                   'compilationDatabaseMap': [{
                       'sourceDir': root + 'source/libfoo',
                       'dbPath': root + 'build/libfoo'
                   }, {
                       'sourceDir': root + 'source/bar',
                       'dbPath': root + 'build/bar'
                   }]
               }
           })
def main():
    ls.run(interact)
Пример #6
0
def main():
    ls.run(interact, {'rootUri': 'file:///home/emaisin/src/ls-interact/calc'})