Skip to content

Commit

Permalink
fix: snippets moved to src/snippets
Browse files Browse the repository at this point in the history
  • Loading branch information
ndonfris committed May 23, 2024
1 parent 8897e82 commit 47403f0
Show file tree
Hide file tree
Showing 20 changed files with 1,038 additions and 239 deletions.
59 changes: 0 additions & 59 deletions .github/workflows/build.yml

This file was deleted.

31 changes: 0 additions & 31 deletions .github/workflows/compile-and-link.yml

This file was deleted.

54 changes: 0 additions & 54 deletions .github/workflows/debug.yml

This file was deleted.

7 changes: 3 additions & 4 deletions .github/workflows/eslint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
steps:
- name: fish-actions/install-fish
# You may pin to the exact commit or the version.
# uses: fish-actions/install-fish@d6d9d26231a15f8d9a6b3e74b3db45512440e3e8
# You may pin to the exact commit or the version.
# uses: fish-actions/install-fish@d6d9d26231a15f8d9a6b3e74b3db45512440e3e8
uses: fish-actions/install-fish@v1.1.0
- uses: actions/checkout@v3

Expand All @@ -40,7 +40,6 @@ jobs:
# with:
# cmd: test-hook # will run `yarn build:prod` command
- name: Build production bundle
uses: borales/actions-yarn@v5
uses: borales/actions-yarn@v4
with:
cmd: lint # will run `yarn build:prod` command

26 changes: 0 additions & 26 deletions .github/workflows/install.yml

This file was deleted.

41 changes: 0 additions & 41 deletions .github/workflows/lint-testing.yml

This file was deleted.

11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,15 @@ Introducing the [fish-lsp](https://fish-lsp.dev), a [Language Server Protocol (L
## Why? 🐟

- 🦈 __Efficiency__: enhances the shell experience with an extensive suite of intelligent text-editing [features](#features)

- 🐡 __Flexibility__: allows for a highly customizable [configuration](#server-configuration-optional)

- 🐚 __Guidance__: [friendly hints](https://github.com/ndonfris/fish-lsp/?tab=readme-ov-file#) and [documentation](#installation) to comfortably explore command line tooling

- 🐬 __Community__: improved by a [vibrant user base](#contributors), with [supportive and insightful feedback](https://github.com/ndonfris/fish-lsp/discussions)

- 🐙 __Compatibility__: integrates with a wide variety of [tooling and language clients](#client-configuration-required)

- 🌊 __Reliability__: produces an [editor agnostic developer environment](https://en.wikipedia.org/wiki/Language_Server_Protocol),
ensuring __all__ fish user's have access to a consistent set of features

Expand Down Expand Up @@ -257,17 +262,11 @@ Here is a diagram to visualize a hypothetical `fish-lsp` process:
## Additional Resources

- [Contributing](./docs/CONTRIBUTING.md) - documentation describing how to contribute to the fish-lsp project.

- [Roadmap](./docs/ROADMAP.md) - goals for future project releases.

- [Wiki](https://github.com/ndonfris/fish-lsp/wiki) - further documentation and knowledge relevant to the project

- [Discussions](https://github.com/ndonfris/fish-lsp/discussions) - interact with maintainers

- [Site](https://fish-lsp.dev/) - website homepage

- [Client Examples](https://github.com/ndonfris/fish-lsp/wiki/Client-Configurations) - testable language client configurations

- [Sources](https://github.com/ndonfris/fish-lsp/wiki/Sources) - major influences for the project

## Contributors
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"main": "./out/out.js",
"directories": { "man": "./docs/man/fish-lsp.1", "bin": "./bin/fish-lsp" },
"typings": "./out/server.d.ts",
"files": [ "src", "snippets", "package.json"],
"scripts": {
"setup": "yarn run sh:setup",
"postinstall": "yarn run sh:build-wasm && yarn run sh:build-time && yarn run compile && yarn run sh:relink && yarn run sh:build-completions",
Expand Down
2 changes: 0 additions & 2 deletions scripts/build-completions.fish
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#!/usr/bin/env fish

if not test -d $HOME/.config/fish/completions
mkdir -p $HOME/.config/fish/completions
end
Expand Down
2 changes: 1 addition & 1 deletion src/config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import os from 'os';
import { z } from 'zod';
import { ServerLogsPath } from './logger';
import fishLspEnvVariables from '../snippets/fishlspEnvVariables.json';
import fishLspEnvVariables from './snippets/fishlspEnvVariables.json';
import { InitializeResult, TextDocumentSyncKind } from 'vscode-languageserver';
import { CodeActionKind } from './code-action';

Expand Down
94 changes: 94 additions & 0 deletions src/snippets/envVariables.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
[
{
"name": "_",
"description": "the name of the currently running command (though this is deprecated, and the use of status current-command is preferred)."
},
{
"name": "argv",
"description": "a list of arguments to the shell or function. argv is only defined when inside a function call, or if fish was invoked with a list of arguments, like fish myscript.fish foo bar. This variable can be changed."
},
{
"name": "CMD_DURATION",
"description": "the runtime of the last command in milliseconds."
},
{
"name": "COLUMNS",
"description": "the current size of the terminal in width. These values are only used by fish if the operating system does not report the size of the terminal. Both variables must be set in that case otherwise a default of 80x24 will be used. They are updated when the window size changes."
},
{
"name": "LINES",
"description": "the current size of the terminal in height. These values are only used by fish if the operating system does not report the size of the terminal. Both variables must be set in that case otherwise a default of 80x24 will be used. They are updated when the window size changes."
},
{
"name": "fish_kill_signal",
"description": "the signal that terminated the last foreground job, or 0 if the job exited normally."
},
{
"name": "fish_killring",
"description": "a list of entries in fish’s kill ring of cut text."
},
{
"name": "fish_read_limit",
"description": "how many bytes fish will process with read or in a command substitution."
},
{
"name": "fish_pid",
"description": "the process ID (PID) of the shell."
},
{
"name": "history",
"description": "a list containing the last commands that were entered."
},
{
"name": "HOME",
"description": "the user’s home directory. This variable can be changed."
},
{
"name": "hostname",
"description": "the machine’s hostname."
},
{
"name": "IFS",
"description": "the internal field separator that is used for word splitting with the read builtin. Setting this to the empty string will also disable line splitting in command substitution. This variable can be changed."
},
{
"name": "last_pid",
"description": "the process ID (PID) of the last background process."
},
{
"name": "PWD",
"description": "the current working directory."
},
{
"name": "pipestatus",
"description": "a list of exit statuses of all processes that made up the last executed pipe. See exit status."
},
{
"name": "SHLVL",
"description": "the level of nesting of shells. Fish increments this in interactive shells, otherwise it simply passes it along."
},
{
"name": "status",
"description": "the exit status of the last foreground job to exit. If the job was terminated through a signal, the exit status will be 128 plus the signal number."
},
{
"name": "status_generation",
"description": "the “generation” count of $status. This will be incremented only when the previous command produced an explicit status. (For example, background jobs will not increment this)."
},
{
"name": "TERM",
"description": "the type of the current terminal. When fish tries to determine how the terminal works - how many colors it supports, what sequences it sends for keys and other things - it looks at this variable and the corresponding information in the terminfo database (see man terminfo). Note: Typically this should not be changed as the terminal sets it to the correct value."
},
{
"name": "USER",
"description": "the current username. This variable can be changed."
},
{
"name": "EUID",
"description": "the current effective user id, set by fish at startup. This variable can be changed."
},
{
"name": "version",
"description": "the version of the currently running fish (also available as FISH_VERSION for backward compatibility)."
}
]
Loading

0 comments on commit 47403f0

Please sign in to comment.