Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
57 changed files
with
2,394 additions
and
435 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
try { | ||
module.exports = require('./out/nodeClientMain'); | ||
module.exports = require('./out/nodeClientMain'); | ||
} | ||
catch { | ||
module.exports = require('./dist/node/client'); | ||
module.exports = require('./dist/node/client'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
extensions/vscode-vue-language-features/scripts/process-shim.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
// https://esbuild.github.io/api/#inject | ||
|
||
let _cwd = '/' | ||
|
||
export let process = { | ||
cwd: () => _cwd, | ||
chdir: newCwd => _cwd = newCwd, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
try { | ||
module.exports = require('./node_modules/@volar/vue-language-server/out/node'); | ||
module.exports = require('@volar/vue-language-server/bin/vue-language-server'); | ||
} | ||
catch { | ||
module.exports = require('./dist/node/server'); | ||
module.exports = require('./dist/node/server'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
extensions/vscode-vue-language-features/src/features/activeSelection.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
extensions/vscode-vue-language-features/src/features/callGraph.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
extensions/vscode-vue-language-features/src/features/documentContent.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
...e-features/src/features/tsVersionEmpty.ts → ...e-language-features/src/features/empty.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export function activate() { } | ||
export function getCurrentTsPaths() { } | ||
export function register() { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
extensions/vscode-vue-language-features/src/features/reloadProject.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
extensions/vscode-vue-language-features/src/features/serverSys.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as vscode from 'vscode'; | ||
import type { BaseLanguageClient } from 'vscode-languageclient'; | ||
import { FsReadDirectoryRequest, FsReadFileRequest, FsStatRequest } from '@volar/vue-language-server'; | ||
|
||
export async function activate(context: vscode.ExtensionContext, languageClient: BaseLanguageClient) { | ||
|
||
context.subscriptions.push(languageClient.onRequest(FsStatRequest.type, async uri => { | ||
try { | ||
return await vscode.workspace.fs.stat(languageClient.protocol2CodeConverter.asUri(uri)); | ||
} | ||
catch { | ||
return undefined; | ||
} | ||
})); | ||
|
||
context.subscriptions.push(languageClient.onRequest(FsReadFileRequest.type, async uri => { | ||
try { | ||
const data = await vscode.workspace.fs.readFile(languageClient.protocol2CodeConverter.asUri(uri)); | ||
return new TextDecoder('utf8').decode(data); | ||
} | ||
catch { | ||
return undefined; | ||
} | ||
})); | ||
|
||
context.subscriptions.push(languageClient.onRequest(FsReadDirectoryRequest.type, async uri => { | ||
try { | ||
return await vscode.workspace.fs.readDirectory(languageClient.protocol2CodeConverter.asUri(uri)); | ||
} | ||
catch { | ||
return []; | ||
} | ||
})); | ||
} |
4 changes: 2 additions & 2 deletions
4
extensions/vscode-vue-language-features/src/features/showReferences.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.