Skip to content

Commit 59102dc

Browse files
committed
add docs (2)
1 parent 2daba7b commit 59102dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

docs/content/interactive.fsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ First, we need to reference the libraries that contain F# interactive service:
3131
*)
3232

3333
#r "FSharp.Compiler.Service.dll"
34+
open Microsoft.FSharp.Compiler.SourceCodeServices
3435
open Microsoft.FSharp.Compiler.Interactive.Shell
3536

3637
(**
@@ -172,8 +173,8 @@ You can also request declaration list information, tooltip text and symbol resol
172173
*)
173174
open Microsoft.FSharp.Compiler
174175

175-
let identToken = Parser.tagOfToken(Parser.token.IDENT(""))
176-
checkResults.GetToolTipTextAlternate(1, 2, "xxx + xx", ["xxx"], identToken) // a tooltip
176+
// get a tooltip
177+
checkResults.GetToolTipTextAlternate(1, 2, "xxx + xx", ["xxx"], FSharpTokenTag.IDENT)
177178

178179
checkResults.GetSymbolUseAtLocation(1, 2, "xxx + xx", ["xxx"]) // symbol xxx
179180

0 commit comments

Comments
 (0)