Skip to content

Commit 63fcfaf

Browse files
authored
update grammar to nushell 0.98.0, version and changelog (#188)
1 parent c854eb1 commit 63fcfaf

16 files changed

+3804
-1177
lines changed

.eslintignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.eslintrc.js

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,11 @@
1-
/**@type {import('eslint').Linter.Config} */
2-
// eslint-disable-next-line no-undef
1+
// .eslintrc.js
32
module.exports = {
4-
root: true,
5-
parser: '@typescript-eslint/parser',
6-
plugins: ['@typescript-eslint'],
7-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended'],
8-
rules: {
9-
semi: [2, 'always'],
10-
'@typescript-eslint/no-unused-vars': 0,
11-
'@typescript-eslint/no-explicit-any': 0,
12-
'@typescript-eslint/explicit-module-boundary-types': 0,
13-
'@typescript-eslint/no-non-null-assertion': 0,
14-
},
3+
// ...other config
4+
ignorePatterns: [
5+
'node_modules/**',
6+
'client/node_modules/**',
7+
'client/out/**',
8+
'server/node_modules/**',
9+
'server/out/**',
10+
],
1511
};

.eslintrc.json

Whitespace-only changes.

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,3 +167,7 @@ All notable changes to the "vscode-nushell-lang" extension will be documented in
167167
- Add spread to syntax highlighting [#174](https://github.com/nushell/vscode-nushell-lang/pull/174)
168168
- fix markdown formatting for hover lsp [#175](https://github.com/nushell/vscode-nushell-lang/pull/175)
169169
- update grammar for nushell 0.91.0 [#177](https://github.com/nushell/vscode-nushell-lang/pull/177)
170+
- 1.10.0
171+
- Remove / and \ from wordPattern [#186](https://github.com/nushell/vscode-nushell-lang/pull/186)
172+
- Add support for def my-function syntax highlighting and add tests to it [#182](https://github.com/nushell/vscode-nushell-lang/pull/182)
173+
- add prettier to dev deps [#181](https://github.com/nushell/vscode-nushell-lang/pull/181)

building.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,8 @@ TIL - VSCode uses regexes for language syntax highlighting in \*.tmLanguage.json
4444
glcraft wrote a fancy program to create regexes for the extension. Here's the steps to use it.
4545

4646
1. clone and cargo install the tool. https://github.com/glcraft/list-to-tree
47-
2. on windows create a set of commands. `scope commands | where is_builtin == true and is_custom == false | get name | to text | save win-cmds_20230919.txt`
48-
3. on linux create a set of commands. `scope commands | where is_builtin == true and is_custom == false | get name | to text | save lin-cmds_20230919.txt`
47+
2. on windows create a set of commands. `scope commands | where type == built-in or type == keyword or type == plugin | get name | to text | save win-cmds_20240923.txt`
48+
3. on linux create a set of commands. `scope commands | where type == built-in or type == keyword or type == plugin | get name | to text | save lin-cmds_20240923.txt`
4949
4. combine these two files, sort, and uniq them. `open win-cmds_20230919.txt | lines | append (open lin-cmds_20230919.txt | lines) | sort | uniq | save cmds_20230919.txt`
5050
5. run list-to-tree `list-to-tree --input cmds_20230919.txt --format regex`
5151
6. copy-n-paste the results to the `nushell.tmLanguage.json` file in the appropriate place (search for "list-to-tree"). Be careful, this can be tricky.

client/src/extension.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
import * as path from 'path';
88
// import { workspace, ExtensionContext } from "vscode";
99
import * as vscode from 'vscode';
10+
import * as which from 'which';
1011

1112
import {
1213
LanguageClient,
@@ -24,8 +25,8 @@ export function activate(context: vscode.ExtensionContext) {
2425
provideTerminalProfile(
2526
token: vscode.CancellationToken,
2627
): vscode.ProviderResult<vscode.TerminalProfile> {
27-
const which = require('which');
28-
const path = require('path');
28+
// const which = require('which');
29+
// const path = require('path');
2930

3031
const PATH_FROM_ENV = process.env['PATH'];
3132
const pathsToCheck = [

0 commit comments

Comments
 (0)