From d102082f433abb26b3390080324c977488df2e25 Mon Sep 17 00:00:00 2001 From: Andrey Bogoyavlensky Date: Wed, 8 Jan 2020 23:57:16 +0300 Subject: [PATCH] Get definitions and navigation by jar-files --- package-lock.json | 2 +- src/clojureMain.ts | 4 ++-- src/clojureMode.ts | 7 +++++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index b982cd9..190de62 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "clojure", - "version": "0.10.5", + "version": "0.11.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/src/clojureMain.ts b/src/clojureMain.ts index a981908..496c1ac 100644 --- a/src/clojureMain.ts +++ b/src/clojureMain.ts @@ -1,6 +1,6 @@ import * as vscode from 'vscode'; -import { CLOJURE_MODE } from './clojureMode'; +import { CLOJURE_MODE, LANGUAGE } from './clojureMode'; import { ClojureCompletionItemProvider } from './clojureSuggest'; import { clojureEval, clojureEvalAndShowResult, testNamespace, runAllTests } from './clojureEval'; import { ClojureDefinitionProvider } from './clojureDefinition'; @@ -47,7 +47,7 @@ export function activate(context: vscode.ExtensionContext) { context.subscriptions.push(vscode.languages.registerSignatureHelpProvider(CLOJURE_MODE, new ClojureSignatureProvider(), ' ', '\n')); vscode.workspace.registerTextDocumentContentProvider('jar', new JarContentProvider()); - vscode.languages.setLanguageConfiguration(CLOJURE_MODE.language, ClojureLanguageConfiguration); + vscode.languages.setLanguageConfiguration(LANGUAGE, ClojureLanguageConfiguration); } export function deactivate() { } diff --git a/src/clojureMode.ts b/src/clojureMode.ts index 67b9de2..3fc0a19 100644 --- a/src/clojureMode.ts +++ b/src/clojureMode.ts @@ -1,3 +1,6 @@ -import vscode = require('vscode'); +export const LANGUAGE = 'clojure'; -export const CLOJURE_MODE = { language: 'clojure', scheme: 'file' }; +export const CLOJURE_MODE = [ + { language: LANGUAGE, scheme: 'file' }, + { language: LANGUAGE, scheme: 'jar' } +];