@@ -4,7 +4,7 @@ import * as path from 'path';
44import * as os from 'os' ;
55import * as fs from 'fs' ;
66import * as fse from 'fs-extra' ;
7- import { workspace , extensions , ExtensionContext , window , commands , ViewColumn , Uri , languages , IndentAction , InputBoxOptions , EventEmitter , OutputChannel , TextDocument , RelativePattern , ConfigurationTarget , WorkspaceConfiguration , env , UIKind , CodeActionContext , Diagnostic } from 'vscode' ;
7+ import { workspace , extensions , ExtensionContext , window , commands , ViewColumn , Uri , languages , IndentAction , InputBoxOptions , EventEmitter , OutputChannel , TextDocument , RelativePattern , ConfigurationTarget , WorkspaceConfiguration , env , UIKind , CodeActionContext , Diagnostic , CodeActionTriggerKind } from 'vscode' ;
88import { ExecuteCommandParams , ExecuteCommandRequest , LanguageClientOptions , RevealOutputChannelOn , ErrorHandler , Message , ErrorAction , CloseAction , DidChangeConfigurationNotification , CancellationToken , CodeActionRequest , CodeActionParams , Command } from 'vscode-languageclient' ;
99import { LanguageClient } from 'vscode-languageclient/node' ;
1010import { collectJavaExtensions , isContributedPartUpdated } from './plugin' ;
@@ -134,6 +134,11 @@ export class OutputInfoCollector implements OutputChannel {
134134 this . channel . appendLine ( value ) ;
135135 }
136136
137+ replace ( value : string ) : void {
138+ this . clear ( ) ;
139+ this . append ( value ) ;
140+ }
141+
137142 clear ( ) : void {
138143 this . channel . clear ( ) ;
139144 }
@@ -239,7 +244,8 @@ export function activate(context: ExtensionContext): Promise<ExtensionAPI> {
239244 resolveAdditionalTextEditsSupport : true ,
240245 advancedIntroduceParameterRefactoringSupport : true ,
241246 actionableRuntimeNotificationSupport : true ,
242- shouldLanguageServerExitOnShutdown : true
247+ shouldLanguageServerExitOnShutdown : true ,
248+ inlayHintsSupport : true ,
243249 } ,
244250 triggerFiles,
245251 } ,
@@ -279,6 +285,7 @@ export function activate(context: ExtensionContext): Promise<ExtensionAPI> {
279285 const codeActionContext : CodeActionContext = {
280286 diagnostics : allDiagnostics ,
281287 only : context . only ,
288+ triggerKind : CodeActionTriggerKind . Invoke ,
282289 } ;
283290 params . context = client . code2ProtocolConverter . asCodeActionContext ( codeActionContext ) ;
284291 }
0 commit comments