import { CancellationToken , TextDocument , Position , Hover } from 'vscode' ; import { isIntrinsic , loadDocString } from '../lib/helper' ; import { LoggingService } from '../services/logging-service' ; export default class FortranHoverProvider { constructor ( private loggingService ) { } public provideHover ( document , position , token ) { const wordRange = document . getWordRangeAtPosition ( position ) ; const word = document . getText ( wordRange ) ; if ( isIntrinsic ( word ) ) { return new Hover ( loadDocString ( word ) ) ; } } }