Questions tagged [languageservice]

Visual Studio Language Services are useful extensions that can bring a vast array of functionality for a new language into the Visual Studio IDE.

Questions on developing and debugging Visual Studio Language Services should have this tag.

A good place to start for creating your own Language Service is Ben Morrison's Code Project Article which provides a framework and instructions on getting started.

Microsoft's Deployment Article goes into more details in deploying Language Services.

48 questions
1
vote
1 answer

Registering an HTML-derived content type with the HTML editor without a package?

I'm trying to register a custom content type, similar to this question on MSDN forums: I want to register a custom extension that is essentially an HTML file, e.g.: [Export] [DisplayName("My Custom…
1
vote
0 answers

How do I automate code-formatting in my Visual Studio language pack?

I have a language package that I'm working on, and I've gotten some code-formatting into the package. I know how to get it to work by going into EDIT>ADVANCED>FORMAT DOCUMENT, but the documentation says that it's possible to make this happen…
Stanislav P
  • 113
  • 7
1
vote
1 answer

Add Simple Language Support to Visual Studio 2010

I'm developing some VBScript using Visual Studio 2010. The native support for this language isn't great, so going forwards I'm hoping to look into taking advantage of language services / VS Extensions to allow me to improve support for these…
JohnLBevan
  • 22,735
  • 13
  • 96
  • 178
0
votes
3 answers

Language Service: ParseReason.Check never called after migrating to VS2010

I just migrated my language service from VS2008 to VS2010. Everything works fine except for one important thing: I no longer get LanguageService.ParseSource invoked for ParseReason.Check. It do get a single invoke after opening a file. But after…
Anthony Brien
  • 6,106
  • 7
  • 43
  • 56
0
votes
2 answers

Duplicate of first entry in navigation bar in custom Visual Studio Language Service

I'm implementing a Visual Studio Language Service for a custom scripting language used internally at my company, and I've run into an issue with the navigation bar implemented as a subclass of TypeAndMemberDropdownBars. The subclass is created by my…
PfhorSlayer
  • 1,337
  • 9
  • 14
0
votes
0 answers

Popup (hover) with Markdown from a Language Service Protocol (LSP)

I'm building a language server in C# (with VS2022) that implements the Language Server Protocol (LSP) 17.2.8 (https://www.nuget.org/packages/Microsoft.VisualStudio.LanguageServer.Protocol.Extensions) I'm new to the Language service protocol, and…
HJLebbink
  • 719
  • 1
  • 11
  • 32
0
votes
0 answers

Language Service is not returning correct results for plural words

If I queried Language Service with 'determining budgetary units' and 'determining budgetary unit' for both input Language Service is responding with different results If I queried the Language Service with 'determining budgetary units' it returned…
0
votes
0 answers

How does "top" work in "Generate Answer" in Azure QnA maker service

I referred Generate Answer API. My KB has around 2600 QnA pairs and I observed that when I used "top 10", queried using "question", it provided different top results compared to when I used "top 100". My assumption is when "top 10" is used, this API…
0
votes
0 answers

Completions in special .json files?

What is the completion support in special files like launch.json powered by in VS Code? Is it only the JSON schema, or is there a more complex completion service behind it? I'm particularly interested in completions like the one below (I did not see…
0
votes
1 answer

Running a language server in a Dockerfile: Binary file of the Language Server

I built a simple language server following this tutorial: http://www.eclipse.org/Xtext/documentation/102_domainmodelwalkthrough.html In this server, I have 5 folders,…
SharkJ
  • 49
  • 1
  • 12
0
votes
1 answer

VS 2017 Intellisense for parameters of closures with javascript

My TypeScript produces a .d.ts file. Which is perfect for TS projects: declare function myGlobal(html: string): string; declare module myHmi { class bla { static myStatic(bla: string): string; } } But other teams are on JS and…
0
votes
1 answer

TypeScript settings not picked up by editor, but works on command line/terminal

I'm trying to work on this TypeScript project. I've written a tsconfig.json, and when I try running from the command line, everything works fine. However, when I try editing the project's files in Visual Studio Code, Visual Studio, Sublime, or…
Daniel Rosenwasser
  • 21,855
  • 13
  • 48
  • 61
0
votes
1 answer

Getting an IVsTextLines from file path

I've written a basic LanguageService extension for Visual Studio 2008 for my studio's proprietary scripting language. It works perfectly fine, and I've implemented a basic symbol table to keep track of script definitions and calls allowing for goto…
ColinCren
  • 595
  • 3
  • 13
0
votes
0 answers

SetLanguageServiceID does not enable syntax highlighting for the C# and VB files in VS 2015

I was investigating this example and found the problem: the syntax highlighting did not work for a C# file after calling the method _BufferAdapter.GetLanguageServiceID("694dd9b6-b865-4c5b-ad85-86356e9c88dc") This problem reproduces in VS 2015 and…
0
votes
0 answers

Visual Studio Extension, Passing objects from VSPackage to IOleCommandTarget

I have created an object that uses the DTE to access files in a Visual Studio Solution and parse them to extract information to drive new features I am implementing. This object also uses DTE Events to detect when the contents of the Solution…