-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Full vscode extension #1405
Full vscode extension #1405
Conversation
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Without a LICENSE we get a warning.
"name": "nls", | ||
"description": "Nickel Language Server", | ||
"name": "vscode-nickel", | ||
"description": "Nickel Language", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will be the title (name) and description in the vscode marketplace.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a quick look at the VSCode market place, many extensions (not necessarily languages) seem to follow the vscode-xxx
naming scheme, many language extensions don't, but that name sounds reasonable 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, there's also displayName
as name
can't contain spaces. Do we want something like "Nickel Language" instead? And add some more details in "description“?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, that could be a good idea. But this can be done is a subsequent PR as well, so I'm in for merging this one first, as it's self-contained and in good shape 🙂
args: traceFile ? ["--trace", traceFile.toString()] : [], | ||
transport: TransportKind.stdio, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this as it was trying to pass --stdin
to nls
.
src = pkgs.lib.cleanSource ./lsp/client-extension; | ||
|
||
buildPhase = '' | ||
export HOME="$TMPDIR" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's trying to create .yarn
in HOME
. There's probably a better way to fix this but this works for now.
f75b67d
to
606f243
Compare
606f243
to
436df70
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many thanks for this @szlend ! It's fine by me, I just don't approve yet so that you can take a look at the review comments and decide what to do with them. When it's done, please ping me or re-request my review and I'll merge it.
"name": "nls", | ||
"description": "Nickel Language Server", | ||
"name": "vscode-nickel", | ||
"description": "Nickel Language", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After a quick look at the VSCode market place, many extensions (not necessarily languages) seem to follow the vscode-xxx
naming scheme, many language extensions don't, but that name sounds reasonable 👍
}, | ||
"strings_interpolation": { | ||
"name": "string.interpolated", | ||
"begin": "m%\"$", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As a note, this won't work with variable length string delimiters: m%%\" some string "%%
, but honestly we can add this in a second step. To do that properly we need to share some state between begin
, end
, and patterns
, which would be set by begin
(and is the number of %
in the opening delimiter).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah I'm not too familiar with the tmLanguage
spec. I added a fix that should at least handle the start and end of variable length string delimiters.
436df70
to
4b779cd
Compare
4b779cd
to
5ece996
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! Before publishing we'll take a look at the name/description first, but otherwise this should be a reasonable first version.
Ported from: https://github.com/szlend/vscode-nickel