Skip to content

Commit

Permalink
Get definitions and navigation by jar-files
Browse files Browse the repository at this point in the history
  • Loading branch information
abogoyavlensky authored and avli committed Jan 11, 2020
1 parent 02f2b41 commit 2155705
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/clojureMain.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -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() { }
7 changes: 5 additions & 2 deletions src/clojureMode.ts
Original file line number Diff line number Diff line change
@@ -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' }
];

0 comments on commit 2155705

Please sign in to comment.