Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Commit 85c07dd

Browse files
committed
chore: replace all mentions of the master branch with main
1 parent 8ba0e01 commit 85c07dd

File tree

15 files changed

+41
-40
lines changed

15 files changed

+41
-40
lines changed

.github/CONTRIBUTING.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Feel free to open issues or PRs! We welcome all contributions, even from beginne
33
## Prereqs
44

55
1. Check out the [VS Code Extension Docs](https://code.visualstudio.com/docs/extensions/overview), especially [Running and Debugging Extensions](https://code.visualstudio.com/docs/extensions/debugging-extensions).
6-
1. Read the [development docs](https://github.com/rubyide/vscode-ruby/blob/master/docs/developing.md)
6+
1. Read the [development docs](https://github.com/rubyide/vscode-ruby/blob/main/docs/developing.md)
77

88
## Contributing
99

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
11
# Visual Studio Code Ruby Extensions
22

33
[![CI](https://img.shields.io/github/workflow/status/rubyide/vscode-ruby/CI.svg?logo=github)](https://github.com/rubyide/vscode-ruby/actions?query=workflow%3ACI)
4-
[![codecov](https://codecov.io/gh/rubyide/vscode-ruby/branch/master/graph/badge.svg)](https://codecov.io/gh/rubyide/vscode-ruby)
4+
[![codecov](https://codecov.io/gh/rubyide/vscode-ruby/branch/main/graph/badge.svg)](https://codecov.io/gh/rubyide/vscode-ruby)
55

66
This is the monorepo for the Visual Studio Code Ruby extensions.
77

8-
Head on over to the [Ruby extension README](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby-client/README.md) to get started!
8+
Head on over to the [Ruby extension README](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby-client/README.md) to get started!
99

1010
## Packages
1111

12-
- [`vscode-ruby`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby) - extension providing syntax highlighting, language configuration, and snippets for Ruby
13-
- [`vscode-ruby-client`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby-client) - extension logic including the language server client
14-
- [`vscode-ruby-common`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby-common) - common utilities that are shared among several other packages (eg environment detection)
15-
- [`vscode-ruby-debugger`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby-debugger) - implementation of the debugger
16-
- [`language-server-ruby`](https://github.com/rubyide/vscode-ruby/blob/master/packages/language-server-ruby) - language server implementation
17-
<!-- - [`ruby-debug-ide-protocol`](https://github.com/rubyide/vscode-ruby/blob/master/packages/ruby-debug-ide-protocol) - implementation of the [ruby-debug-ide protocol](https://github.com/ruby-debug/ruby-debug-ide/blob/master/protocol-spec.md)r -->
12+
- [`vscode-ruby`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby) - extension providing syntax highlighting, language configuration, and snippets for Ruby
13+
- [`vscode-ruby-client`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby-client) - extension logic including the language server client
14+
- [`vscode-ruby-common`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby-common) - common utilities that are shared among several other packages (eg environment detection)
15+
- [`vscode-ruby-debugger`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby-debugger) - implementation of the debugger
16+
- [`language-server-ruby`](https://github.com/rubyide/vscode-ruby/blob/main/packages/language-server-ruby) - language server implementation
17+
<!-- - [`ruby-debug-ide-protocol`](https://github.com/rubyide/vscode-ruby/blob/main/packages/ruby-debug-ide-protocol) - implementation of the [ruby-debug-ide protocol](https://github.com/ruby-debug/ruby-debug-ide/blob/main/protocol-spec.md)r -->
1818

1919
## Docs
2020

21-
Documentation is available in the [docs](https://github.com/rubyide/vscode-ruby/tree/master/docs) folder
21+
Documentation is available in the [docs](https://github.com/rubyide/vscode-ruby/tree/main/docs) folder
2222

2323
## Troubleshooting
2424

25-
Troubleshooting documentation is available [here](https://github.com/rubyide/vscode-ruby/tree/master/docs/troubleshooting.md) folder
25+
Troubleshooting documentation is available [here](https://github.com/rubyide/vscode-ruby/tree/main/docs/troubleshooting.md) folder
2626

2727
## Developing
2828

29-
See the [developing](https://github.com/rubyide/vscode-ruby/blob/master/docs/developing.md) docs
29+
See the [developing](https://github.com/rubyide/vscode-ruby/blob/main/docs/developing.md) docs

docs/debugger.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Install Ruby Dependencies
44

5-
In this extension, we implement [ruby debug ide protocol](https://github.com/ruby-debug/ruby-debug-ide/blob/master/doc/protocol-spec.texi) to allow VS Code to communicate with ruby debug, it requires `ruby-debug-ide` to be installed on your machine. This is also how RubyMine/NetBeans does by default.
5+
In this extension, we implement [ruby debug ide protocol](https://github.com/ruby-debug/ruby-debug-ide/blob/main/doc/protocol-spec.texi) to allow VS Code to communicate with ruby debug, it requires `ruby-debug-ide` to be installed on your machine. This is also how RubyMine/NetBeans does by default.
66

77
- If you are using JRuby or Ruby v1.8.x (`jruby`, `ruby_18`, `mingw_18`), run `gem install ruby-debug-ide`.
88
- If you are using Ruby v1.9.x (`ruby_19`, `mingw_19`), run `gem install ruby-debug-ide`. Make sure `ruby-debug-base19x` is installed together with `ruby-debug-ide`.

docs/developing.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ This repository uses [`lerna`](https://github.com/lerna/lerna) combined with [ya
66

77
The overall extension is broken out into several packages within the `packages` directory:
88

9-
- [`vscode-ruby`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby) - extension providing syntax highlighting, language configuration, and snippets for Ruby
10-
- [`vscode-ruby-client`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby-client) - extension logic including the language server client
11-
- [`vscode-ruby-common`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby-common) - common utilities that are shared among several other packages (eg environment detection)
12-
- [`vscode-ruby-debugger`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby-debugger) - implementation of the debugger
13-
- [`language-server-ruby`](https://github.com/rubyide/vscode-ruby/blob/master/packages/language-server-ruby) - language server implementation
14-
<!-- - [`ruby-debug-ide-protocol`](https://github.com/rubyide/vscode-ruby/blob/master/packages/ruby-debug-ide-protocol) - implementation of the [ruby-debug-ide protocol](https://github.com/ruby-debug/ruby-debug-ide/blob/master/protocol-spec.md) -->
9+
- [`vscode-ruby`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby) - extension providing syntax highlighting, language configuration, and snippets for Ruby
10+
- [`vscode-ruby-client`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby-client) - extension logic including the language server client
11+
- [`vscode-ruby-common`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby-common) - common utilities that are shared among several other packages (eg environment detection)
12+
- [`vscode-ruby-debugger`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby-debugger) - implementation of the debugger
13+
- [`language-server-ruby`](https://github.com/rubyide/vscode-ruby/blob/main/packages/language-server-ruby) - language server implementation
14+
<!-- - [`ruby-debug-ide-protocol`](https://github.com/rubyide/vscode-ruby/blob/main/packages/ruby-debug-ide-protocol) - implementation of the [ruby-debug-ide protocol](https://github.com/ruby-debug/ruby-debug-ide/blob/main/protocol-spec.md) -->
1515

1616
Each package utilizes `esbuild` or `tsc` to build the `dist` directory.
1717

docs/language-server.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ Due to limitations in how node's internal `spawn` function works, a shim file ne
3838

3939
### More Information
4040

41-
The [`vscode-ruby-common`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby-common) package contains the utilities and shims that facilitate this functionality. See [`environment.ts`](https://github.com/rubyide/vscode-ruby/blob/master/packages/vscode-ruby-common/src/environment.ts)
41+
The [`vscode-ruby-common`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby-common) package contains the utilities and shims that facilitate this functionality. See [`environment.ts`](https://github.com/rubyide/vscode-ruby/blob/main/packages/vscode-ruby-common/src/environment.ts)
4242

4343
## Logs
4444

docs/legacy.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ Relevant configuration files:
6565
- ruby: _none_
6666
- reek: [\*.reek](https://github.com/troessner/reek)
6767
- fasterer: [.fasterer.yml](https://github.com/DamirSvrtan/fasterer)
68-
- ruby-lint: [ruby-lint.yml](https://github.com/YorickPeterse/ruby-lint/blob/master/doc/configuration.md)
68+
- ruby-lint: [ruby-lint.yml](https://github.com/YorickPeterse/ruby-lint/blob/main/doc/configuration.md)
6969
- rubocop: [.rubocop.yml](http://rubocop.readthedocs.io/en/latest/configuration/)
7070

7171
Settings available (in your VSCode workspace) for each of the linters:

docs/troubleshooting.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ If you believe the extension is incorrectly assigning TextMate Scopes, please fi
1717

1818
## Environment is incorrectly detected
1919

20-
Please read over the [documentation](https://github.com/rubyide/vscode-ruby/blob/master/docs/language-server.md) on Environment Detection in the language server to ensure you understand its features and limitations.
20+
Please read over the [documentation](https://github.com/rubyide/vscode-ruby/blob/main/docs/language-server.md) on Environment Detection in the language server to ensure you understand its features and limitations.
2121

2222
## Linting or Formatting is incorrect
2323

packages/language-server-ruby/src/formatters/BaseFormatter.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export default abstract class BaseFormatter implements IFormatter {
154154
}
155155
}
156156

157-
// Modified from https://github.com/Microsoft/vscode/blob/master/src/vs/editor/common/core/range.ts#L90
157+
// Modified from https://github.com/Microsoft/vscode/blob/main/src/vs/editor/common/core/range.ts#L90
158158
private checkPositionInRange(position: Position): boolean {
159159
const { start, end } = this.range;
160160

packages/vscode-ruby-client/README.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![CircleCI](https://img.shields.io/circleci/build/github/rubyide/vscode-ruby?label=circleci&token=c9eaf03305b3fe24e8bc819f3f48060431e8e78f)](https://circleci.com/gh/rubyide/vscode-ruby)
44
[![Build status](https://ci.appveyor.com/api/projects/status/vlgs2y7tsc4xpj4c?svg=true)](https://ci.appveyor.com/project/rebornix/vscode-ruby)
5-
[![codecov](https://codecov.io/gh/rubyide/vscode-ruby/branch/master/graph/badge.svg)](https://codecov.io/gh/rubyide/vscode-ruby)
5+
[![codecov](https://codecov.io/gh/rubyide/vscode-ruby/branch/main/graph/badge.svg)](https://codecov.io/gh/rubyide/vscode-ruby)
66

77
This extension provides enhanced Ruby language and debugging support for Visual Studio Code.
88

@@ -25,7 +25,7 @@ By default, the extension provides sensible defaults for developers to get a bet
2525

2626
### Using the Language Server
2727

28-
It is **highly recommended** that you enable the Ruby language server (via the Use Language Server setting or `ruby.useLanguageServer` config option). The server does not default to enabled while it is under development but it provides a significantly better experience than the legacy extension functionality. See [docs/language-server.md](https://github.com/rubyide/vscode-ruby/blob/master/docs/language-server.md) for more information on the language server.
28+
It is **highly recommended** that you enable the Ruby language server (via the Use Language Server setting or `ruby.useLanguageServer` config option). The server does not default to enabled while it is under development but it provides a significantly better experience than the legacy extension functionality. See [docs/language-server.md](https://github.com/rubyide/vscode-ruby/blob/main/docs/language-server.md) for more information on the language server.
2929

3030
Legacy functionality will most likely not receive additional improvements and will be fully removed when the extension hits v1.0
3131

@@ -45,21 +45,21 @@ Legacy functionality will most likely not receive additional improvements and wi
4545
"ruby.format": "rubocop" // use rubocop for formatting
4646
```
4747

48-
Reviewing the [linting](https://github.com/rubyide/vscode-ruby/blob/master/docs/linting.md), [formatting](https://github.com/rubyide/vscode-ruby/blob/master/docs/formatting.md), and [environment detection](https://github.com/rubyide/vscode-ruby/blob/master/docs/language-server.md) docs is recommended
48+
Reviewing the [linting](https://github.com/rubyide/vscode-ruby/blob/main/docs/linting.md), [formatting](https://github.com/rubyide/vscode-ruby/blob/main/docs/formatting.md), and [environment detection](https://github.com/rubyide/vscode-ruby/blob/main/docs/language-server.md) docs is recommended
4949

5050
For full details on configuration options, please take a look at the `Ruby` section in the VS Code settings UI. Each option is associated with a name and description.
5151

5252
### Debug Configuration
5353

54-
See [docs/debugger.md](https://github.com/rubyide/vscode-ruby/blob/master/docs/debugger.md).
54+
See [docs/debugger.md](https://github.com/rubyide/vscode-ruby/blob/main/docs/debugger.md).
5555

5656
### Legacy Configuration
5757

58-
[docs/legacy.md](https://github.com/rubyide/vscode-ruby/blob/master/docs/legacy.md) contains the documentation around the legacy functionality
58+
[docs/legacy.md](https://github.com/rubyide/vscode-ruby/blob/main/docs/legacy.md) contains the documentation around the legacy functionality
5959

6060
## Troubleshooting
6161

62-
See [docs/troubleshooting.md](https://github.com/rubyide/vscode-ruby/blob/master/docs/troubleshooting.md)
62+
See [docs/troubleshooting.md](https://github.com/rubyide/vscode-ruby/blob/main/docs/troubleshooting.md)
6363

6464
## Other Notable Extensions
6565

packages/vscode-ruby-client/src/format/RuboCop.ts

+6-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class AutoCorrect {
3535

3636
// What's the exe name for rubocop?
3737
get exe(): string[] {
38-
const opts:any = this.opts;
38+
const opts: any = this.opts;
3939
if (opts.exe) {
4040
return [opts.exe];
4141
}
@@ -90,16 +90,17 @@ export class AutoCorrect {
9090

9191
private spawn = (args: string[], options?: cp.SpawnOptions): cp.ChildProcess => {
9292
const exe: string[] = this.exe;
93-
const spawnOpt: cp.SpawnOptions = options ? options : {}
93+
const spawnOpt: cp.SpawnOptions = options ? options : {};
9494

95-
if (!spawnOpt.cwd) { spawnOpt.cwd = vscode.workspace.rootPath }
95+
if (!spawnOpt.cwd) {
96+
spawnOpt.cwd = vscode.workspace.rootPath;
97+
}
9698

9799
return cp.spawn(exe.shift(), exe.concat(args), spawnOpt);
98100
};
99101

100102
public test(): Promise<any> {
101103
return new Promise((resolve, reject) => {
102-
103104
const rubo = this.spawn(['-v']);
104105

105106
rubo.on('error', err => {
@@ -172,7 +173,7 @@ export class AutoCorrect {
172173
});
173174

174175
rubo.on('exit', code => {
175-
// https://github.com/bbatsov/rubocop/blob/master/manual/basic_usage.md
176+
// https://github.com/bbatsov/rubocop/blob/main/manual/basic_usage.md
176177
if (code && code !== 1) {
177178
vscode.window.showErrorMessage(`rubocop failed with code=${code}`);
178179
return reject();

packages/vscode-ruby-client/src/util/env.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ function getShim(): string {
5151
}
5252

5353
// Based on the dotenv parse function:
54-
// https://github.com/motdotla/dotenv/blob/master/lib/main.js#L32
54+
// https://github.com/motdotla/dotenv/blob/main/lib/main.js#L32
5555
// modified to not have to deal with Buffers and to handle stuff
5656
// like export and declare -x at the start of the line
5757
function processExportLine(line: string): string[] {

packages/vscode-ruby-common/src/environment.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function getShim(shell: string, shimDir: string): string {
8282
}
8383

8484
// Based on the dotenv parse function:
85-
// https://github.com/motdotla/dotenv/blob/master/lib/main.js#L32
85+
// https://github.com/motdotla/dotenv/blob/main/lib/main.js#L32
8686
// modified to not have to deal with Buffers and to handle stuff
8787
// like export and declare -x at the start of the line
8888
function processExportLine(line: string): string[] {

packages/vscode-ruby/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ This extension provides improved syntax highlighting, language configuration, an
55
## Syntax Highlighting
66

77
Before:
8-
![syntax_before](https://raw.githubusercontent.com/rubyide/vscode-ruby/master/images/syntax_before.png)
8+
![syntax_before](https://raw.githubusercontent.com/rubyide/vscode-ruby/main/images/syntax_before.png)
99

1010
After:
11-
![syntax_after](https://raw.githubusercontent.com/rubyide/vscode-ruby/master/images/syntax_after.png)
11+
![syntax_after](https://raw.githubusercontent.com/rubyide/vscode-ruby/main/images/syntax_after.png)
1212

1313
## Using with the Ruby extension
1414

packages/vscode-ruby/syntaxes/gemfile.cson.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"information_for_contributors": [
3-
"This file has been converted from https://github.com/atom/language-ruby/blob/master/grammars/gemfile.cson",
3+
"This file has been converted from https://github.com/atom/language-ruby/blob/main/grammars/gemfile.cson",
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],

packages/vscode-ruby/syntaxes/ruby.cson.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"information_for_contributors": [
3-
"This file has been converted from https://github.com/atom/language-ruby/blob/master/grammars/ruby.cson",
3+
"This file has been converted from https://github.com/atom/language-ruby/blob/main/grammars/ruby.cson",
44
"If you want to provide a fix or improvement, please create a pull request against the original repository.",
55
"Once accepted there, we are happy to receive an update request."
66
],

0 commit comments

Comments
 (0)