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
103
votes
7 answers

How to create a new language for use in Visual Studio

I want to write a new templating language, and I want Visual Studio to "support" it. What I need to know is: How do I parse my new language? Given some code in my new template language, how do I translate it into HTML? Right now I'm using regular…
mpen
  • 272,448
  • 266
  • 850
  • 1,236
13
votes
4 answers

How do you use a projection buffer to support embedded languages in the Visual Studio editor

At the end of the first paragraph in this link it states: The Visual Studio text outlining feature is implemented by using a projection buffer to hide the collapsed text, and the Visual Studio editor for ASP.NET pages uses projection to support…
Frank
  • 2,178
  • 2
  • 17
  • 24
10
votes
3 answers

Stop intellisense session from closing prematurely

I've created a Visual Studio extension that provides intellisense for my domain specific language by inheriting from Microsoft.VisualStudio.Language.Intellisense.ICompletionSource. This works ok, except that a valid character in the keywords of my…
Scott Langham
  • 58,735
  • 39
  • 131
  • 204
8
votes
2 answers

Visual Studio 2010 Extensibility, MPF and language services

I am trying to extend Visual Studio 2010 RC to be able to use a custom programming language. The first two things I've tried to do is a syntax highlight/Intellisense feature (easily done, thanks to "Ook!" sample from PDC09) and a possibility to…
Arseni Mourzenko
  • 50,338
  • 35
  • 112
  • 199
8
votes
1 answer

Supporting user-specified file extensions in custom Visual Studio language service

I'm working on a custom Visual Studio language service, and have several questions regarding the way file extensions are bound to a particular language service. Source files for the language "Example Language" has two primary file extensions: .e1…
Sam Harwell
  • 97,721
  • 20
  • 209
  • 280
6
votes
2 answers

Typescript compiler as a service: how to test if one type is assignable to another?

I'm making a command line nodejs tool that automates renaming symbols in Typescript files, using the Typescript language services. You tell the tool: rename all symbols of this type to this symbol. Just like resharper, it will also rename local…
5
votes
0 answers

How to use projection buffers in Visual Studio to edit languages embedded in C#?

The projection technique can be used to customize the Visual Studio editor for supporting embedded languages. The examples available online, such as the editor customization for Django support scripting languages embedded in HTML. The…
ineag
  • 51
  • 2
4
votes
1 answer

JSDoc/JavaScript Language Service: how to annotate an expression? (how to cast)

I'm using Visual Studio Code with JavaScript Language Service configured as: { "compilerOptions": { "checkJs": true } } And I can't find a way to cast something, like here: The example above should work in Closure Compiler…
Fabio Iotti
  • 1,480
  • 1
  • 16
  • 20
4
votes
1 answer

Does Visual Studio 2017 use the Language Server Protocol?

Language Server Protocol was created for VS-Code (not the Visual Studio IDE). It is a rather sensible idea about providing language services like various linting and code-completion (intillisense). It is by no means the first-time that idea has been…
4
votes
1 answer

Integrate language service (MPF) and editor extension (MEF)

Does anybody the correct way to integrate a languageService (MPF) with an editor extension (MEF) in Visual Studio 2010. Where to implement the member completion, syntax highlight, quick info, etc.? Any example avaliable? Thanks!
Morvader
  • 2,317
  • 3
  • 31
  • 44
4
votes
1 answer

How to get property info by using the Typescript language service

How to get the type of a property of an object with Typescript 1.4.0. I'm searching for something similar to C# it has the possibility to look up the properties of an object. var properties = typeof(T).GetProperties(); foreach( var property in…
chrisber
  • 730
  • 1
  • 12
  • 27
4
votes
1 answer

How to create a VS2010 extension that uses Language Services

Creating extensions got much easier with Vs2010, but this seems not to be the case for everything... My aim: I wnat to make method calls and property uses of STATIC classes ITALIC. (Just like Eclipse and Java) I think I need to talk to the C#…
Hades32
  • 914
  • 2
  • 9
  • 12
4
votes
1 answer

Implementing a host of a language service

After reading the src\services code, it seems this is the interface any host of a language service must satisfy: // // Public interface of the host of a language service instance. // export interface ILanguageServiceHost extends TypeScript.ILogger…
guillermooo
  • 7,915
  • 15
  • 55
  • 58
3
votes
1 answer

Implementing a Language Service By Using the Managed Package Framework

I've followed the steps listed in the walk through (http://msdn.microsoft.com/en-us/library/bb166360.aspx) for implementing and registering a LanguageService and I simply can't get it to work. My package loads correctly, I can add functioning menu…
BSharp
  • 91
  • 8
3
votes
1 answer

Language server creation in Monaco Editor

I have gone through the docs and found out that in order to provide diagnostics for a custom language in Monaco editor, we need to write our own language server/client. In example [1], it is written in Typescript. Can we write the server in…
user2894296
  • 590
  • 1
  • 10
  • 20
1
2 3 4