Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
87 changes: 39 additions & 48 deletions package-lock.json

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

17 changes: 7 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1326,11 +1326,11 @@
"default": false,
"scope": "window"
},
"java.codeGeneration.generateCommentsInMarkdown": {
"type": "boolean",
"description": "Generate Javadoc comments in Markdown style (requires source compliance >= 23).",
"default": false
},
"java.codeGeneration.generateCommentsInMarkdown": {
"type": "boolean",
"description": "Generate Javadoc comments in Markdown style (requires source compliance >= 23).",
"default": false
},
"java.codeGeneration.toString.template": {
"type": "string",
"description": "The template for generating the toString method.",
Expand Down Expand Up @@ -2166,7 +2166,7 @@
"sinon": "^14.0.0",
"tar": "^7.5.11",
"ts-loader": "^9.4.2",
"typescript": "^4.6.4",
"typescript": "^6.0.3",
"typescript-eslint": "^8.65.0",
"webpack": "^5.105.0",
"webpack-cli": "^7.2.1"
Expand All @@ -2185,15 +2185,12 @@
"react": "^17.0.2",
"react-dom": "^17.0.2",
"semver": "^7.5.2",
"vscode-languageclient": "8.2.0-next.3",
"vscode-languageclient": "^10.1.0",
"vscode-variables": "^1.0.1",
"winreg-utf8": "^0.1.1",
"winston": "^3.2.1",
"winston-daily-rotate-file": "^4.7.1"
},
"overrides": {
"vscode-languageserver-protocol": "3.17.6-next.1"
},
"segmentWriteKey": "Y7Y5Xk8dKEhVZHTmAkFZkqgdN4d7c4lt",
"segmentWriteKeyDebug": "BflPll7uuKOCm3y0g7JpfXLVBVFBivDE"
}
6 changes: 3 additions & 3 deletions src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,9 +285,9 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
},
resolveCompletionItem: async (item, token, next): Promise<CompletionItem> => {
const completionItem = await next(item, token);
if (completionItem?.documentation instanceof MarkdownString) {
completionItem.documentation = fixJdtLinksInDocumentation(completionItem.documentation);
}
// if (completionItem?.documentation instanceof MarkdownString) {
// completionItem.documentation = fixJdtLinksInDocumentation(completionItem.documentation);
// }
return completionItem;
},
// https://github.com/redhat-developer/vscode-java/issues/2130
Expand Down
2 changes: 1 addition & 1 deletion src/log.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createLogger, format, transports } from 'winston';
import * as DailyRotateFile from 'winston-daily-rotate-file';
import DailyRotateFile from 'winston-daily-rotate-file';

export function initializeLogFile(filename: string) {
logger.add(new DailyRotateFile({
Expand Down
25 changes: 21 additions & 4 deletions src/outputInfoCollector.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,28 @@
import { OutputChannel, window, ViewColumn } from "vscode";
import { Event, LogLevel, LogOutputChannel, ViewColumn, window } from "vscode";
import { logger } from "./log";

export class OutputInfoCollector implements OutputChannel {
private channel: OutputChannel = null;
export class OutputInfoCollector implements LogOutputChannel {
private channel: LogOutputChannel = null;

constructor(public name: string) {
this.channel = window.createOutputChannel(this.name);
this.channel = window.createOutputChannel(this.name, { log:true });
}
get logLevel(): LogLevel { return this.channel.logLevel; }
get onDidChangeLogLevel(): Event<LogLevel> { return this.channel.onDidChangeLogLevel; };
trace(message: string, ...args: any[]): void {
this.channel.trace(message, args);
}
debug(message: string, ...args: any[]): void {
this.channel.debug(message, args);
}
info(message: string, ...args: any[]): void {
this.channel.info(message, args);
}
warn(message: string, ...args: any[]): void {
this.channel.warn(message, args);
}
error(error: string | Error, ...args: any[]): void {
this.channel.error(error, args);
}

append(value: string): void {
Expand Down
5 changes: 1 addition & 4 deletions src/providerDispatcher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,13 @@ export function registerClientProviders(context: ExtensionContext, options: Prov
const symbolProvider = createDocumentSymbolProvider();
context.subscriptions.push(languages.registerDocumentSymbolProvider('java', symbolProvider));

const jdtProvider = createJDTContentProvider(options);
context.subscriptions.push(workspace.registerTextDocumentContentProvider('jdt', jdtProvider));

const classProvider = createClassContentProvider(options);
context.subscriptions.push(workspace.registerTextDocumentContentProvider('class', classProvider));

overwriteWorkspaceSymbolProvider(context);

return {
handles: [hoverProvider, symbolProvider, jdtProvider, classProvider]
handles: [hoverProvider, symbolProvider, classProvider]
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/requirements.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

import * as expandHomeDir from 'expand-home-dir';
import expandHomeDir from 'expand-home-dir';
import * as fse from 'fs-extra';
import { getRuntime, getSources, JAVAC_FILENAME, JAVA_FILENAME } from 'jdk-utils';
import * as path from 'path';
Expand Down
2 changes: 2 additions & 0 deletions src/webview/globals.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/* silence warnings from typescript about not being able to analyse sideeffects of css imports */
declare module "*.css" {}
2 changes: 1 addition & 1 deletion test/lightweight-mode-suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// a possible error to the callback or null if none.

import * as path from 'path';
import * as Mocha from 'mocha';
import Mocha from 'mocha';
import { glob } from 'glob';

export async function run(testsRoot: string): Promise<void> {
Expand Down
2 changes: 1 addition & 1 deletion test/standard-mode-suite/extension.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as assert from 'assert';
import assert from 'assert';
import * as fs from 'fs';
import * as path from 'path';
import { env } from 'process';
Expand Down
2 changes: 1 addition & 1 deletion test/standard-mode-suite/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
// a possible error to the callback or null if none.

import * as path from 'path';
import * as Mocha from 'mocha';
import Mocha from 'mocha';
import { glob } from 'glob';

export async function run(testsRoot: string): Promise<void> {
Expand Down
10 changes: 8 additions & 2 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,20 @@
{
"compilerOptions": {
"target": "es6",
"moduleResolution": "node",
"target": "es2020",
"module": "nodenext",
"outDir": "out",
"sourceMap": true,
"skipLibCheck": true,
"strictFunctionTypes": false,
"strictNullChecks": false,
"noImplicitAny": false,
"noImplicitThis": false,
"useUnknownInCatchVariables": false,
"plugins": [
{
"name": "eslint"
}
],
"types": ["node", "vscode", "mocha"]
}
}
1 change: 1 addition & 0 deletions tsconfig.webview.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"jsx": "react-jsx",
"esModuleInterop": true,
"allowSyntheticDefaultImports": true,
"rootDir": "./src"
},
"include": [
"src/webview",
Expand Down
Loading