@@ -9,7 +9,7 @@ import * as path from 'path';
99import * as semver from 'semver' ;
1010import {
1111 CodeActionContext , commands , CompletionItem , ConfigurationTarget , Diagnostic , env , EventEmitter , ExtensionContext , extensions ,
12- IndentAction , InputBoxOptions , languages , Location , MarkdownString , RelativePattern ,
12+ InputBoxOptions , Location , MarkdownString , RelativePattern ,
1313 SnippetString , SnippetTextEdit , TextDocument , TextEditorRevealType , UIKind , Uri , version , ViewColumn , window , workspace , WorkspaceConfiguration
1414} from 'vscode' ;
1515import { CancellationToken , CodeActionParams , CodeActionRequest , CodeActionResolveRequest , Command , CompletionRequest , DidChangeConfigurationNotification , ExecuteCommandParams , ExecuteCommandRequest , LanguageClientOptions , RevealOutputChannelOn } from 'vscode-languageclient' ;
@@ -169,8 +169,6 @@ export async function activate(context: ExtensionContext): Promise<ExtensionAPI>
169169
170170 Telemetry . startTelemetry ( context ) ;
171171
172- enableJavadocSymbols ( ) ;
173-
174172 registerOutOfMemoryDetection ( storagePath ) ;
175173
176174 cleanJavaWorkspaceStorage ( ) ;
@@ -814,52 +812,6 @@ export async function getActiveLanguageClient(): Promise<LanguageClient | undefi
814812 return languageClient ;
815813}
816814
817- function enableJavadocSymbols ( ) {
818- // Let's enable Javadoc symbols autocompletion, shamelessly copied from MIT licensed code at
819- // https://github.com/Microsoft/vscode/blob/9d611d4dfd5a4a101b5201b8c9e21af97f06e7a7/extensions/typescript/src/typescriptMain.ts#L186
820- languages . setLanguageConfiguration ( 'java' , {
821- indentationRules : {
822- // ^(.*\*/)?\s*\ }.*$
823- decreaseIndentPattern : / ^ ( .* \* \/ ) ? \s * \} .* $ / ,
824- // ^.*\{[^}"']*$
825- increaseIndentPattern : / ^ .* \{ [ ^ } " ' ] * $ /
826- } ,
827- wordPattern : / ( - ? \d * \. \d \w * ) | ( [ ^ \` \~ \! \@ \# \% \^ \& \* \( \) \- \= \+ \[ \{ \] \} \\ \| \; \: \' \" \, \. \< \> \/ \? \s ] + ) / g,
828- onEnterRules : [
829- {
830- // e.g. /** | */ or /* | */
831- beforeText : / ^ \s * \/ \* \* ? (? ! \/ ) ( [ ^ \* ] | \* (? ! \/ ) ) * $ / ,
832- afterText : / ^ \s * \* \/ $ / ,
833- action : { indentAction : IndentAction . IndentOutdent , appendText : ' * ' }
834- } ,
835- {
836- // e.g. /** ...|
837- beforeText : / ^ \s * \/ \* \* (? ! \/ ) ( [ ^ \* ] | \* (? ! \/ ) ) * $ / ,
838- action : { indentAction : IndentAction . None , appendText : ' * ' }
839- } ,
840- {
841- // e.g. * ...|
842- beforeText : / ^ ( \t | ( \ \ ) ) * \ \* ( \ ( [ ^ \* ] | \* (? ! \/ ) ) * ) ? $ / ,
843- action : { indentAction : IndentAction . None , appendText : '* ' }
844- } ,
845- {
846- // e.g. */|
847- beforeText : / ^ ( \t | ( \ \ ) ) * \ \* \/ \s * $ / ,
848- action : { indentAction : IndentAction . None , removeText : 1 }
849- } ,
850- {
851- // e.g. *-----*/|
852- beforeText : / ^ ( \t | ( \ \ ) ) * \ \* [ ^ / ] * \* \/ \s * $ / ,
853- action : { indentAction : IndentAction . None , removeText : 1 }
854- } ,
855- {
856- // e.g. /// ...| (Markdown javadoc)
857- beforeText : / ^ \s * \/ \/ \/ ( .* ) ? $ / ,
858- action : { indentAction : IndentAction . None , appendText : '/// ' }
859- }
860- ]
861- } ) ;
862- }
863815
864816export function getTempWorkspace ( ) {
865817 return path . resolve ( os . tmpdir ( ) , `vscodesws_${ makeRandomHexString ( 5 ) } ` ) ;
0 commit comments