microsoft / microsoft/TypeScript-Sublime-Plugin

What would be the effort needed for having type completion in html files.

Open
#326 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Question
Dominant language
JavaScript
Stars
1.7k
Forks
236
Avg merge
21d 13h
Merged PRs (30d)
1

Description

I understand that this question is related to specific frameworks used in the editor in conjunction with typescript (e.g. angular2, aurelia, ...)
So, let's focus on a case where a viewModel (a .ts) goes together with a view (a .html).
the viewModel is a typescript class and contains a definition for 'Customer' having firstName and lastName props.
When creating the view, I would like to have type completion on the specific bind statement (so, in the example here on the string inside value.bind.

///////here some magic to 'bind' the view to the viewModel with respect to type completion
<div class="col-sm-10">
<input type="text" placeholder="First Name"  class="form-control"
value.bind="customer.firstName" />
</div>

The above example is aurelia, but similar stuff can happen in other frameworks.
I think I saw similar things in visual studio in asp.net MVC.
How realistically would it be to make this happen also for sublimeText ?
Thanks.
paul.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by defining the supported HTML binding syntax and framework scope, then assess how a TypeScript viewModel could be associated with an HTML view; done would be a documented feasibility decision and implementation scope.

Written by the indexing model from the issue text.

Assessment

Tech stack
html, typescript
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
18/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.