-
Notifications
You must be signed in to change notification settings - Fork 11
Add Apple Silicon support, update dependencies #63
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
base: master
Are you sure you want to change the base?
Changes from all commits
7a74b20
1a618bf
600574e
383370f
0e97513
484a57d
e8f20aa
4482d48
7d54bc8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ import { | |
ExtensionContext, | ||
commands, | ||
workspace, | ||
window, | ||
LanguageClient, | ||
LanguageClientOptions | ||
} from 'coc.nvim'; | ||
|
@@ -21,19 +22,21 @@ import { | |
sleep | ||
} from 'coc-utils' | ||
|
||
const logger = workspace.createOutputChannel("coc-omnisharp") | ||
const omnisharpLogger = workspace.createOutputChannel("omnisharp") | ||
const logger = window.createOutputChannel("coc-omnisharp") | ||
const omnisharpLogger = window.createOutputChannel("omnisharp") | ||
const omnisharpVersion = workspace.getConfiguration('omnisharp').get<string>('version').toLowerCase(); | ||
const omnisharpRepo: LanguageServerRepository = { | ||
kind: "github", | ||
repo: "omnisharp/omnisharp-roslyn", | ||
channel: omnisharpVersion === "latest" ? omnisharpVersion : `tags/${omnisharpVersion}` | ||
} | ||
|
||
|
||
const omnisharpPacks: ILanguageServerPackages = { | ||
"win-x64": { platformPath: "omnisharp-win-x64.zip", executable: "Omnisharp.exe" }, | ||
"linux-x64": { platformPath: "omnisharp-linux-x64.zip", executable: "run" }, | ||
"osx-x64": { platformPath: "omnisharp-osx.zip", executable: "run" }, | ||
"osx-arm64": { platformPath: "omnisharp-osx.zip", executable: "run" }, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this a universal package? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it runs on my M1 MacBook so i believe it is |
||
} | ||
|
||
export async function activate(context: ExtensionContext) { | ||
|
@@ -87,12 +90,14 @@ export async function activate(context: ExtensionContext) { | |
logger.appendLine("omnisharp debug mode activated") | ||
} | ||
|
||
|
||
let serverOptions = { | ||
command: omnisharpExe, | ||
args: args, | ||
options: {cwd: workspace.rootPath} | ||
} | ||
|
||
|
||
// Create the language client and start the client. | ||
let client = new LanguageClient('cs', 'OmniSharp Language Server', serverOptions, clientOptions); | ||
let client_dispose = client.start(); | ||
|
@@ -109,7 +114,7 @@ export async function activate(context: ExtensionContext) { | |
} | ||
await omnisharpProvider.downloadLanguageServer() | ||
if (useCustomPath) { | ||
workspace.showMessage(`coc-omnisharp: Using custom executable (${omnisharpCustomPath}) so the downloaded bundle will have no effect`, 'warning') | ||
window.showMessage(`coc-omnisharp: Using custom executable (${omnisharpCustomPath}) so the downloaded bundle will have no effect`, 'warning') | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. so this "window dot" thing will show that little popup window? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i believe so yes, check out this commit |
||
} | ||
client_dispose = client.start() | ||
context.subscriptions.push(client_dispose) | ||
|
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.
can we keep node version to 12?
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.
i can try and downgrade it but may i ask why?