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
3
votes
1 answer

Implementing Find References in Visual Studio 2010 Language Service

I'm implementing a Visual Studio Language Service for a custom scripting language. I've managed to implement syntax highlighting, error checking, code completion, and "Go To Definition". I am having trouble figuring out how to hook in to the…
3
votes
1 answer

Visual Studio 2008 & Override LanguageService for Existing File Extension

I write simple LanguageService for JavaScript language. Target IDE is Visual Studio 2008. I want to run my LanguageService for .js extension file(default extension for JavaScript language). But for this extension my LanguageService don't working.…
Michał Ziober
  • 37,175
  • 18
  • 99
  • 146
3
votes
2 answers

Visual Studio Custom Language Service

I am attempting to implement a Language Service in a VSPackage using the MPF, and it's not working quite as I understand it should. I have several implementations already, such as ParseSource parsing the input file with a ParseRequest. However, when…
2
votes
2 answers

Language Service: Is there a way to force parsing?

I am working on a language service and would like the parsing after the user types code to be faster. Right now I rely on the ParseReason.Check and OnIdle mechanism that's documented on MSDN, but its often called a long time after the user has typed…
Anthony Brien
  • 6,106
  • 7
  • 43
  • 56
2
votes
0 answers

How to start creating a language extension for VS Code?

Pursuant to the discussion in Add XHTML support, I'd like to start creating an extension for Visual Studio Code which would implement support for XHTML. Which is HTML with XML syntax, so the the desired functionality is already (mostly?) implemented…
2
votes
1 answer

vscode: TypeScript Language Service on Remote Server

I currently am in an environment where my TypeScript source code lives on a remote server. I can access the code via a network share in vscode, but latency in language service features (intellisense, goto definition, etc) is slow. Is there a way to…
bingles
  • 11,582
  • 10
  • 82
  • 93
2
votes
1 answer

Does the monaco editor support the use of Typescript language service plugins?

I'd like to create a Typescript language service plugin (e.g. https://github.com/Microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin) and integrate this plugin with the Monaco editor, running in a browser. Is it possible to integrate…
2
votes
1 answer

How does a server-side command in vscode-languageserver-node know which is the current document?

I'm developing an language extension for vscode for a DSL. The architecture uses the vscode-languageserver-node infrastructure from microsoft's github, with a REST back-end that can evaluate the DSL. I have a command called Evaluate, which should…
Maxm007
  • 1,190
  • 2
  • 13
  • 21
2
votes
2 answers

Installing a Custom Visual Studio Language Service

I've written a new Visual Studio language service for my software studio's internal scripting language following the directions from a very useful article Writing Your First Visual Studio Language Service. I've got my grammar working great, some…
ColinCren
  • 595
  • 3
  • 13
2
votes
1 answer

Add Syntax Highlighting to IElisonBuffer

I'm working on a project where we've split up C# code into functions and stored these functions within IElisonBuffers. I've got Intellisense hooked up, and the buffers interact with other extensions fine as shown below: However, I cannot get…
JoshVarty
  • 9,066
  • 4
  • 52
  • 80
1
vote
0 answers

How to set TsServer's syntax analysis line terminator type?

I am using Tsserver for grammatical analysis, and by calling the semantic token service to complete some code coloring tasks.This way I can get an array containing offset, length and token type. However, this offset is different from the calculation…
Sunshine
  • 11
  • 1
1
vote
2 answers

Visual Studio 2008: Why Doesn't my Language Service Add-In Work? ("Sorry, parsing could not recover")

I'm trying to create my own language service in Visual Studio 2008 SP1, but when I run the program (which starts the Visual Studio Experimental Hive) and try to open a source file, I get this error: Any ideas how to fix it? (I already tried…
user541686
  • 205,094
  • 128
  • 528
  • 886
1
vote
1 answer

How to determine the ProjectItem language type without opening the document in vsx?

When a file is open in the visual studio editor, through the EnvDTE.Document.Language property a string result such as "CSharp", "C/C++", "HTML", "JScript", etc. is returned specifying the language of a file. I'd like to be able to access that same…
Steve Cadwallader
  • 2,656
  • 4
  • 28
  • 37
1
vote
1 answer

VSCode TypeScript Plugin and workspaces API

I am writing a TypeScript language plugin for GraphQL and I need to access the project root at some places. I want to use the workspaces API to make this workspace ready. I tried including vscode directly and that doesn't work I get the error…
divyenduz
  • 2,037
  • 19
  • 38
1
vote
1 answer

How does vscode handle file path when executing a language server remotely

I'm running a remote language server on with vscode via an extension I'm developping. Both client and server have access to the code via a mounted shared folder. The issue is that this folder is located on different places on the client and on the…